HNHacker News
TopNewBestAskShowJobs

agentzh

3 karma · joined April 13, 2010

http://agentzh.org
submissionscomments
agentzh··on agentzh's Nginx Tutorials
Thank you for pointing this out. I've just fixed the lang attribute of the html tag. It is "en" now :)
agentzh··on Crazy cool nginx.conf scripting and modules.
I must add that, the stuffs shown in these slides are just our "level 1 scripting". There will be level 2 and level 3, so as to support more sophisticated business logic in our data platform.

Level 2 will be ngx_lua scripting which provides Erlang-style transparent non-blocking I/O support and access to the whole nginx infrastructure and all the level 1 scripting goodies.

Level 3 will be...well...Perl 6, JavaScript, and PHP scripting atop the ngx_lua VM (by the corresponding X -> Lua compiler). grin We'll eventually get there.

agentzh··on Crazy cool nginx.conf scripting and modules.
Well, we're building our business (some data products in Taobao.com) atop this kind of nginx-based technology ;)

We'll also make extensive use of AJAX, Flash, and Jemplate in this context.

To be clearer, this is not a project just for fun, but rather, a serious company project that is allowed to be opensourced.

agentzh··on Crazy cool nginx.conf scripting and modules.
And...also, to tell the secret, nginx itself is a web framework. And it's a very powerful one and we're still pushing it ahead ;)
agentzh··on Crazy cool nginx.conf scripting and modules.
Why? Just because our db-backed web app have to handle tens of millions of requests each day on one or two plain simple servers ;)

Well, I didn't give any benchmark numbers in my slides. It's by intention. Just go ahead and find out how fast it can be :)

agentzh··on Crazy cool nginx.conf scripting and modules.
Yeah, that statement in my slides is incorrect :) But the ngx_memc module itself does support true REST interface setup. Please take a look at the samples in its documentation: http://wiki.nginx.org/NginxHttpMemcModule

    GET /foo?key=dog
    
    POST /foo?key=cat
    Cat's value...
    
    PUT /foo?key=bird
    Bird's value...
    
    DELETE /foo?key=Tiger
agentzh··on Crazy cool nginx.conf scripting and modules.
Haven't you seen the set_quote_sql_str directive used in my slides?
agentzh··on Crazy cool nginx.conf scripting and modules.
Sorry about that...but arrow keys on your keyboard doesn't work for you?
agentzh··on Crazy cool nginx.conf scripting and modules.
I do understand the risk. And we've been trying pretty hard to keep things clean :)
agentzh··on Crazy cool nginx.conf scripting and modules.
One can do a full-decent REST interface when ngx_lua is ready ;)
agentzh··on Crazy cool nginx.conf scripting and modules.
Sorry for the confusion...I should have added a tip in my tweet.