3 ms·
Couldn't resist!!! :P Apache? Python? Why!? Nginx maybe? http { upstream database { postgres_server 127.0.0.1 dbname=test user=test password=t
by lewaldman 13y ago
Couldn't resist!!! :P
Apache? Python? Why!?
Nginx maybe?
http {
upstream database {
postgres_server 127.0.0.1 dbname=test user=test password=test;
}
server {
location / {
postgres_pass database;
postgres_query "SELECT * FROM cats";
rds_json on;
}
}
}
I'm actually using it... (and planning to use for much deeper things tho).
https://github.com/FRiCKLE/ngx_postgres/ https://github.com/FRiCKLE/ngx_postgres/
https://github.com/agentzh/rds-json-nginx-module https://github.com/agentzh/rds-json-nginx-module
edit: reformated code block
- jebblue 13y agoBecause software engineering should happen with programming languages plus service engines, the service engine should not be the total replacement for all.
- lewaldman 13y agoShould not be the total replacement for all because? Also, you could use LUA with nginx to increase the flexibility (if the lack of it was what you mean).
- vertex-four 13y agoOpenResty[0] is a web application framework that consists of nginx and a bunch of plugins, including Lua scripting. [0] http://openresty.org/ http://openresty.org/
- rahimnathwani 13y agoWhy not, _if_ you are operating at such scale that the extra performance outweighs any additional development/maintenance cost/complexity? I think this is what Taobao uses/used: https://github.com/alibaba/tengine https://github.com/alibaba/tengine