Slide 1

Slide 1 text

Fibered Rails - Amit Kumar

Slide 2

Slide 2 text

Many Scalable Options Cache  Memcached  Redis  MongoDB Message Queues  AMQP  Resque  Delayed Job Asynchronous + Concurrency  Frameworks that implement Reactor Pattern – EventMachine, Twisted, Node.js

Slide 3

Slide 3 text

What are Fibers? Traditional threads: preempted by OS

Slide 4

Slide 4 text

What are Fibers? Fibers – are means of creating code blocks which can be paused and resumed by application developer

Slide 5

Slide 5 text

Fibers + EventMachine EventMachine – EventMachine implements a fast, single-threaded engine for arbitrary network communications.

Slide 6

Slide 6 text

Fibers + EventMachine Row 1 Row 2 Row 3 Row 4 0 2 4 6 8 10 12 Column 1 Column 2 Column 3

Slide 7

Slide 7 text

Concurrency

Slide 8

Slide 8 text

Questions THANK YOU !