News for hackers. Stuff that matters.
Re:PostgreSQL 9.5: UPSERT, Row Level Security, and Big Data by terrorblade on Friday January 08, 2016 @12:12PM (#10866414)
noob here .. if the database is in charge of serving rest, where does the business logic go? am i right in thinking that this would eliminate the need for a django/express?
Re:PostgreSQL 9.5: UPSERT, Row Level Security, and Big Data by lkjaero on Saturday January 09, 2016 @01:24AM (#10870326)
The database stores the data, the rest API handles the business logic. Django has multiple plugins for providing a REST API, such as Tastypie. http://tastypieapi.org/ With this, django is the API. A rest API is good for when you want to share data between multiple clients (eg a website and mobile apps) and want to have more complicated business logic than the database can provide by itself.