Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

ZeroMQ talk, Reshef Mann by Mind Map: ZeroMQ talk, Reshef
Mann
0.0 stars - reviews range from 0 to 5

ZeroMQ talk, Reshef Mann

Reshef's requirements

receive many messages

without loosing any

process/transfer them when clients connect

Reshef was impressed by

braintree

billing service

uses redis

Tried to build something similar using Redis

queue using

Eventlet

Redis

Handlers

communicating using redis commands, BLPOP, blocking pop, RPUSH

Then asked:

why not ZeroMQ?

0MQ

socket library acting as concurrency framework

library not a server

supporting multiple transports

supporting multiple communication patterns

Patterns

Request/Reply

startup order doesn't matter

Push/Pull

Pub/Sub

Devices

the queue ("device") is the only stable thing, other components are transient

Mongrel2

HTTP server built on top of 0mq

arch

Mongrel2, Handlers

using, push/pull, pub/sub

choosing handler using round robin

Handlers need follow some spec

there are Wsgi adapters for writing Python handlers, eg, m2wsgi

demo

send request from browser

while python handler is down

browser waits

start python handler

browser receives response