This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Aug 03 23:51:37 -0700 2008 | |
| |
README | Mon Aug 04 02:44:04 -0700 2008 | |
| |
src/ | Mon Aug 04 03:06:02 -0700 2008 |
README
simple-thrift-queue =================== Phillip Pearson http://www.myelin.co.nz/post/2008/8/4/#200808043 This is a toy in-memory (very much non-durable) queue, with a client and server in Python and a server in C++ -- the results of an evening's hacking with Facebook's Thrift protocol/RPC generator. On my laptop it handles about 4000 RPCs per second, i.e. if you have one producer and three consumers, the producer can push about 2000 messages per second, which are fairly evenly spread across the consumers. The throughput is almost identical with the C++ server. 'top' reports ~80% system time and 'iftop' reports ~300kB/s traffic. Requirements ============ - Thrift - Python Building and running ==================== cd src make python py/server.py python py/timer.py python py/consumer.py python py/producer.py Try starting the server and a few consumers, then a producer. C++ server =========== cd src/cpp make run







