News for hackers. Stuff that matters.

agentzh

Re:agentzh's Nginx Tutorials on Friday March 23, 2012 @11:17PM (#3748364)
Thank you for pointing this out. I've just fixed the lang attribute of the html tag. It is "en" now :)
Re:Crazy cool nginx.conf scripting and modules. on Tuesday April 13, 2010 @05:26AM (#1261469)
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.

Re:Crazy cool nginx.conf scripting and modules. on Tuesday April 13, 2010 @05:20AM (#1261461)
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.

Re:Crazy cool nginx.conf scripting and modules. on Tuesday April 13, 2010 @05:15AM (#1261456)
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 ;)
Re:Crazy cool nginx.conf scripting and modules. on Tuesday April 13, 2010 @05:12AM (#1261453)
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 :)

Re:Crazy cool nginx.conf scripting and modules. on Tuesday April 13, 2010 @05:10AM (#1261451)
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
Re:Crazy cool nginx.conf scripting and modules. on Tuesday April 13, 2010 @05:08AM (#1261447)
Haven't you seen the set_quote_sql_str directive used in my slides?
Re:Crazy cool nginx.conf scripting and modules. on Tuesday April 13, 2010 @05:07AM (#1261444)
Sorry about that...but arrow keys on your keyboard doesn't work for you?
Re:Crazy cool nginx.conf scripting and modules. on Tuesday April 13, 2010 @05:06AM (#1261443)
I do understand the risk. And we've been trying pretty hard to keep things clean :)
Re:Crazy cool nginx.conf scripting and modules. on Tuesday April 13, 2010 @05:05AM (#1261441)
One can do a full-decent REST interface when ngx_lua is ready ;)
Re:Crazy cool nginx.conf scripting and modules. on Tuesday April 13, 2010 @05:04AM (#1261439)
Sorry for the confusion...I should have added a tip in my tweet.