Upgrade to Pro — share decks privately, control downloads, hide ads and more …

eventmachine

 eventmachine

apresentação sobre event machine no tech talk da @_nohup

Avatar for Thiago Barreto

Thiago Barreto

October 05, 2012

Other Decks in Programming

Transcript

  1. "It's time for web servers to handle ten thousand clients

    simultaneously, don't you think? After all, the web is a big place now." http://www.kegel.com/c10k.html the c10k problem
  2. padrão reactor "The reactor design pattern is an event handling

    pattern for handling service requests delivered concurrently to a service handler by one or more inputs." en.wikipedia.org/wiki/Reactor_pattern
  3. performance do hello world (req/s) rack : goliath : node

    : eventmachine : 423 2125 6084 8814 speakerdeck.com/u/andrew/p/em-vs-node?slide=21
  4. encurtador de urls (req/s) goliath : node : eventmachine :

    1048 3660 7943 speakerdeck.com/u/andrew/p/em-vs-node?slide=26
  5. performance (req/s) eventmachine 1 : node 1 : eventmachine 2

    : node 2 : 6229,2 5195,2 9701,9 6227,7 tui8.com/2012/02/11/eventmachine-vs-node-js-performance/
  6. por que node? em node tudo é não-bloqueante. sempre! em

    eventmachine é preciso usar bibliotecas não-bloqueantes e preparar seu código para ser não-bloqueante
  7. ?