Hacker News new | ask | show | jobs
by ahvetm 2534 days ago
Backend services are about more than serving data, wouldn't you say?
2 comments

Most are, but I have definitely worked on projects that weren't
With front-end development getting increasingly popular, I think backend is starting to become just a thin wrapper around database. If database can be securely locked down enough, a lot of business logic can be shifted to the front-end.

    If database can be securely locked down enough, a lot of
    business logic can be shifted to the front-end.
Unless "locked down enough" includes "with all the business logic embedded in the DB", this is going to fail in exciting ways with technically-savvy users...
Then you can't use it across apps, though.

Say for example you have a web front end, a mobile app, and a service receiving web hooks that all want to execute the same action. If you have that in a client layer, you'll be writing it 3 times.

Moving logic to the client comes with pros, too (like being easier to work offline), but it definitely has downsides as well.