highload 2011-demona
TRANSCRIPT
http-
;
;
;
?
1000 ;
;
;
! ;
;
?
();
;
;
, ;
, C C++. ;
;
;
;
RW-, ;
, ;
wz-httpd
http://github.com/bachan/wz-httpd , 0w;
so-;
;
32;
, ;
, ;
kevent/FreeBSD + epoll/Linux;
;
blizzard
http://github.com/bachan/blizzard , . so-;
;
, ;
;
-
?-
- nginx
;
;
;
;
so-;
.
nginx ;
;
;
ugh
nginx;
http-;
libev;
so-;
;
ugh_subreq_t *r = ugh_subreq_add( c, url, url_size UGH_SUBREQ_WAIT);ugh_subreq_set_body(r, body, body_size);ugh_subreq_set_header(r, ...);ugh_subreq_set_timeout(r, 0.1);ugh_subreq_run(r);ugh_subreq_wait(c); /* switch coroutine */
ugh
:http://github.com/bachan/ugh
ugh
-;
2 : ;
;
nginx (, , .);
, location;
(mysql, pgsql ) (fastcgi);
( .NL :) );
;
!
([email protected]) ([email protected]) Advaction