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

Actor Model in Ruby

Actor Model in Ruby

Talk in RubyConf Brazil 2016

Celso Crivelaro

September 23, 2016

More Decks by Celso Crivelaro

Other Decks in Technology


  1. Actor 1 Mailbox Actor 2 Mailbox Actor 3 Mailbox Actor

    4 Mailbox A4 is linked to A2 A2 is warned when A4 crashes A2 takes an action (restart A4) Avoid defensive programming
  2. Celluloid Actors Ruby Objects Same structure from classes Runs over

    threads / fibers Futures and Pools Sync / Async Methods
  3. 25

  4. 30

  5. Handler 1 Handler 2 Dispatcher Handler 3 Handles service request

    Delivered concurrently to handlers Demultiplexing Event Event Event