Re:V8 Engine in PostgreSQL
by y0ghur7_xxx on Saturday February 25, 2012 @08:02AM
(#3632848)
Are you suggesting you allow the client-side JS app to call directly against the Postgres DB or is there another approach you had in mind?
Almost directly. The JS frontend calls something like mod_libpq¹, or a very simple node.js "proxy". Something that just gets incoming http requests, executes stored procedures and sends back the response. A reverse proxy between the JS client and Postgres. That proxy can be very generic and reused between applications. All logic would live in the db.
Almost directly. The JS frontend calls something like mod_libpq¹, or a very simple node.js "proxy". Something that just gets incoming http requests, executes stored procedures and sends back the response. A reverse proxy between the JS client and Postgres. That proxy can be very generic and reused between applications. All logic would live in the db.
¹http://asmith.id.au/mod_libpq.html