Live data from Hacker News

Simple API with Nginx and PostgreSQL

rny.io

11–20 of 74 posts

Re: Simple API with Nginx and PostgreSQL

#18

Is this a "look how cool/flexible nginx is!" article or a real proposal about how to do API's?

Hopefully the former. It would be difficult to build anything non-trivial with it. However, I suppose you could build a basic counter or key-value system over HTTP with it.

Re: Simple API with Nginx and PostgreSQL

#19
post #5

very cool, add in some lua scripting and you can get some pretty solid single purpose endpoints: http://wiki.nginx.org/HttpLuaModule maybe not perfect for a whole app but maybe depending on your goals.

Can you recommend a public repo which demonstrates use of the HttpLuaModule? [Edited to add:] Another comment mentions the Lapis framework which gives [me] a good starting point.

@subs: thanks!

Post reply on HN