Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6139835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:02:28+00:00 2026-05-23T18:02:28+00:00

I’d like to use python to build an app that is similar to zeroMQ

  • 0

I’d like to use python to build an app that is similar to zeroMQ‘s ventilator / sink scheme

Suppose that we have 10 Workers, all running on the same multi-core server.

Let’s say that every 2[sec] or so, each Worker pushes to the Sink a message of size 5[MB]. So, the Sink has to handle a total of 50[MB] ( = 10 x 5[MB] ) every 2[sec] or so.

Had the 10 Workers been on different machines, I know that the network could have been a potential bottleneck.

Had the 10 Workers had to write their data to disk (I/O), I know that the disk could have been a potential bottleneck.

Given the fact that all the 10 Workers are on the same machine, what bottlenecks should one expect?

For example, can the same 10 Workers each push a message of size 10[MB] every 2[sec] or so?
Can they push a message of size 20[MB] every 2[sec] or so?

What are zmq‘s limitations?

What types of bottlenecks should one expect when using python and zeroMQ in a Linux environment?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:02:29+00:00Added an answer on May 23, 2026 at 6:02 pm

    Using PUSH/PULL on the same server I’ve been been able to max out writing to a raid array @ 400MB/sec (bottle-necked by write speed). There are 10GbE benchmark results here. I’d suggest constructing some simple benchmarks, performance is going to be dependent on a lot of factors like message format, size, etc.

    For example a completely trivial benchmark shows zeromq capable of sending 100 10mb messages in 12.3 ms on my machine:

    # server
    import zmq
    
    context = zmq.Context()
    reciever = context.socket(zmq.PULL)
    reciever.bind('tcp://127.0.0.1:5555')
    
    while True:
        reciever.recv()
    
    # client
    import os, zmq
    
    context = zmq.Context()
    pusher = context.socket(zmq.PUSH)
    pusher.connect('tcp://127.0.0.1:5555')
    
    message = ' ' * 10485760
    
    >>> %timeit pusher.send(message)
    100 loops, best of 3: 12.3 ms per loop
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I have text I am displaying in SIlverlight that is coming from a CMS
I have some data like this: 1 2 3 4 5 9 2 6
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a JSP page retrieving data and when single or double quotes are
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to loop through a bunch of documents I have to put
I have a bunch of posts stored in text files formatted in yaml/textile (from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.