Skip to content

Instantly share code, notes, and snippets.

View barryz's full-sized avatar
💰
Focusing

penaldo barryz

💰
Focusing
View GitHub Profile
@barryz
barryz / client.py
Created July 11, 2016 12:30 — forked from mattbennett/client.py
Greenthread worker
import eventlet
eventlet.monkey_patch()
from eventlet.greenpool import GreenPile
from kombu.pools import producers
from kombu import Exchange, Queue
exchange = Exchange('exchange', type='direct')
queue = Queue('queue', exchange, routing_key='queue')