Hacker News new | ask | show | jobs
by twerquie 4019 days ago
But you can't have clients directly connecting to the database, their sockets still need to flow through an application layer where you have your business / application logic. Unless you start putting application logic into the db?
2 comments

Your right about this. Couchbase solves it by putting a sync gateway in front of a couchdb connection. But this makes things hard to manage for the reason you mention: business logic inside your DB. All your rules about access control and users are actually derived from values in your couchdb documents. Its not pleasant to design or maintain.
Shouldn't business logic reside in DB inside stored procedures ?
Only if DB runs JS. ;)
http://developer.marklogic.com/features/javascript

(Full disclosure: I work at MarkLogic)