Better HN
topnewbestaskshowjobs
Log inSign up

agentzh

3 karma · joined Apr 13, 2010 (16y ago) · 11 submissions

http://agentzh.org
Submissions

comment 14y ago · link · parent

Thank you for pointing this out. I've just fixed the lang attribute of the html tag. It is "en" now :)

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

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 ;)

comment 16y ago · link · parent

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 :)

comment 16y ago · link · parent

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

comment 16y ago · link · parent

Haven't you seen the set_quote_sql_str directive used in my slides?

comment 16y ago · link · parent

Sorry about that...but arrow keys on your keyboard doesn't work for you?

comment 16y ago · link · parent

I do understand the risk. And we've been trying pretty hard to keep things clean :)

comment 16y ago · link · parent

One can do a full-decent REST interface when ngx_lua is ready ;)

comment 16y ago · link · parent

Sorry for the confusion...I should have added a tip in my tweet.