EventMachine
Upcoming SlideShare
Loading in...5
×
 

EventMachine

on

  • 8,088 views

Brief introduction into EventMachine by Jonathan Weiss presented at RailsCamp 4 in Cologne (03.07.2010)

Brief introduction into EventMachine by Jonathan Weiss presented at RailsCamp 4 in Cologne (03.07.2010)

Statistics

Views

Total Views
8,088
Slideshare-icon Views on SlideShare
7,988
Embed Views
100

Actions

Likes
14
Downloads
63
Comments
0

2 Embeds 100

http://francescoagati.wordpress.com 99
http://www.slideshare.net 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    EventMachine EventMachine Presentation Transcript

    • EventMachine Yes, that’s NodeJS in Ruby Jonathan Weiss 02.07.2010
    • EventMachine „Event-driven I/O using the reactor pattern“ http://rubyeventmachine.com/ 2
    • Goals Scalable and performant but low-level I/O library API that removes threaded complexety 3
    • Install $ sudo gem install eventmachine Works with Ruby, Rubinius, and JRuby 4
    • Use EventMachine $ sudo gem install eventmachine Works with Ruby, Rubinius, and JRuby 5
    • Echo Server $ sudo gem install eventmachine Works with Ruby, Rubinius, and JRuby 6
    • Low Level HTTP Client $ sudo gem install eventmachine Works with Ruby, Rubinius, and JRuby 7
    • EM::HttpRequest $ sudo gem install eventmachine Works with Ruby, Rubinius, and JRuby 8
    • Simple Timer $ sudo gem install eventmachine Works with Ruby, Rubinius, and JRuby 9
    • Simple Timer $ sudo gem install eventmachine Works with Ruby, Rubinius, and JRuby 10
    • Protocol Support TCP (+ SSL) FileWatcher HTTP(s) / WebSocket Timer Memcached PeriodicTimer SASLauth ProcessWatch Postgres3 SpawnedProcess SMTP Queue Sock4 Stomp 11
    • Higher Level APIs on top AMQP Nanite MySQL DNS Redis MongoDB HTTPRequest WebSocket Amazon S3 12
    • Happening: S3 + EventMachine $ sudo gem install eventmachine Works with Ruby, Rubinius, and JRuby 13
    • Why you want async: Uploading 100 x 2 MB files: RightAWS vs. Happening 10min vs. 5:40min 14
    • EventMachine vs. NodeJS EventMachine NodeJS Engine Ruby V8 Available Libraries All Ruby libs, gems, … Only NodeJS libs Possibility to block YES NO Coding Style Callbacks, Callbacks Procedural with fibers 15
    • EM::Synchrony – 1.9 Fibers $ sudo gem install eventmachine Works with Ruby, Rubinius, and JRuby 16
    • Q&A Peritor GmbH Blücherstr. 22, Hof III Aufgang 6 10961 Berlin Tel.: +49 (0)30 69 20 09 84 0 Fax: +49 (0)30 69 20 09 84 9 Internet: www.peritor.com E-Mail: info@peritor.com © Peritor GmbH - Alle Rechte vorbehalten