AnyEvent and Plack

6,701 views

Published on

AnyEventとPlackの社内勉強会用の資料。

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
6,701
On SlideShare
0
From Embeds
0
Number of Embeds
453
Actions
Shares
0
Downloads
16
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

AnyEvent and Plack

  1. 1. AnyEvent Plack 2009 11 30 hiratara
  2. 2. AnyEvent ( Coro ) PSGI Plack
  3. 3. AnyEvent ( )
  4. 4. GUI
  5. 5. Perl EV Irssi API Event rxvt-unicode Glib IO::Async Tk Qt Perl POE Event::Lib
  6. 6. AnyEvent
  7. 7. AnyEvent AE::cv → recv : send : recv
  8. 8. AnyEvent (JavaScript ) AE::timer : cb AE::io : cb
  9. 9. AnyEvent → : http://hogehoge.com/ http://foofoo.com/
  10. 10. Coro Perl 1 ( ) (schedule cede )
  11. 11. Coro
  12. 12. Coro schedule : ( ) ready : schedule ready : Coro::Timer::sleep (schedule ready)
  13. 13. Coro AnyEvent Coro AnyEvent : Coro AnyEvent schedule ready ready
  14. 14. PSGI Perl WSGI Rack WEB Perl PSGI WEB Perl
  15. 15. PSGI CGI PSGI Apache Plack::Server::CGI Perl mod_perl PSGI Plack::Server::Apache2 PSGI lighttpd PSGI Apache + mod_psgi Plack::Server::Standalone
  16. 16. PSGI Hello World
  17. 17. Middleware PSGI
  18. 18. Plack PSGI ( ) PSGI PSGI
  19. 19. Plack CGI::Emulate::PSGI PSGI CGI::PSGI Plack::Server::CGI Perl Plack::Server::Apache2 Plack::Request plackup Plack::Middleware::XXX Plack::Server::Standalone Plack::App::URLMap Plack::App::Builder Plack::Server::AnyEvent Plack::Server::Coro
  20. 20. psgi.streaming PSGI
  21. 21. Tatsumaki Your Application PSGI Plack::Server::AnyEvent Tatsumaki AnyEvent Plack AnyEvent Plack::Server::Coro Coro AnyEvent

×