Re:Nginx directly to mysql. 3 - 4 times as fast as php + lib...
by llimllib on Monday June 21, 2010 @10:14AM
(#1448829)
What is the code in this app written in, I don't really follow?
[ Parent
| on HN ]
Re:Nginx directly to mysql. 3 - 4 times as fast as php + lib...
by turtle4 on Monday June 21, 2010 @11:05AM
(#1449003)
You specify a route in the nginx config, and when the route is requested, it serves up the result of the sql query that you specified. Even further, it looks like it will run different queries, depending on the type of request made (GET, PUT, DELETE).
This just makes it a little easier to put together a RESTful app. Alot of those apps are just thin wrappers around the request that check the request type, check authentication, and then perform a simple db statement. This is easier to define, and apparently alot faster.
Re:Nginx directly to mysql. 3 - 4 times as fast as php + lib...
by piotrSikora on Monday June 21, 2010 @04:12PM
(#1449917)
Yup, that's exactly the idea here :)