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

The Reactor Pattern

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

The Reactor Pattern

Avatar for Luram Archanjo

Luram Archanjo

October 02, 2019
Tweet

More Decks by Luram Archanjo

Other Decks in Technology

Transcript

  1. Thread-based(pool) Pattern CLIENT 1 CLIENT 2 CLIENT 3 CLIENT 4

    CLIENT 5 CLIENT 6 THREAD POOL THREAD 1 THREAD 2 THREAD 3 THREAD 4 THREAD 5
  2. The reactor pattern describes that a single thread runs in

    a loop to deliver the events to the handlers