[zeromq-dev] how to get it to run faster?
Paul Colomiets
paul at colomiets.name
Mon Apr 2 09:54:30 CEST 2012
Hi Sean,
On Mon, Apr 2, 2012 at 10:34 AM, Sean Ochoa <sean.m.ochoa at gmail.com> wrote:
> Hey all.
>
> In my attempt at trying to create a message queue with a persistence layer,
> I may have slowed things down.
>
> Here's my code so far: http://paste.pound-python.org/show/18411/
>
> I'm wondering if someone could help me tune this thing so that I could put
> the persistence layer back in and still get good performance: 20,000
> messages / sec or more.
>
> Any help is much appreciated! I'm still learning how to use zeromq.
>
Is it slow even without persistence?
For faster persistence you need something a long the lines of (untested):
http://paste.pound-python.org/show/18412/
You also need to rotate log, error handling, etc, that I've skipped for brevity
--
Paul
More information about the zeromq-dev
mailing list