Fibered rails

8
Fibered Rails - Amit Kumar

Transcript of Fibered rails

Page 1: Fibered rails

Fibered Rails

- Amit Kumar

Page 2: Fibered rails

Many Scalable Options

Cache Memcached Redis MongoDB

Message Queues AMQP Resque Delayed Job

Asynchronous +Concurrency

Frameworks that implement Reactor Pattern – EventMachine, Twisted, Node.js

Page 3: Fibered rails

What are Fibers?

Traditional threads: preempted by OS

Page 4: Fibered rails

What are Fibers?

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

Page 5: Fibered rails

Fibers + EventMachine

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

Page 6: Fibered rails

Fibers + EventMachine

Row 1 Row 2 Row 3 Row 40

2

4

6

8

10

12

Column 1Column 2Column 3

Page 7: Fibered rails

Concurrency

Page 8: Fibered rails

Questions

THANK YOU !