Re:Sqlite to Rest
by dpacmittal on Wednesday July 10, 2019 @12:43PM
(#20403706)
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.
[ Parent
| on HN ]
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.