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 7967689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:57:47+00:00 2026-06-04T06:57:47+00:00

First of all, I’m new to ZeroMQ and message queue systems, so what I’m

  • 0

First of all, I’m new to ZeroMQ and message queue systems, so what I’m trying to do may be solved through a different approach. I’m designing a messaging system that does the following:

  • Multiple clients connect to a broker and send the id of an item that needs to be processed. The client disconnects immediately and does not wait for a response.

  • The broker sends items to workers, one item per worker, to perform some processing. Each return returns a signal that the processing was completed.

I have a rudimentary system setup which is processing requests/replies correctly, but I’d also like to be able to do the following:

  • Query the broker to see how many processes are actually running on the workers and how many are simply waiting to be run.

  • Have the broker ensure that only one process per id is running – if a duplicate id arrives and that item is not currently being processed by a worker, do not add it to the queue.

I’m using a poll setup with broker/dealer sockets. The code I’m using is very similar to this example from Ian Barber.

My first inclination (although I’m not sure how to implement it in zmq) is to have the broker keep track of the ids that have been received, and those that are actively being processed by workers. It seems that the broker forwards requests to workers immediately, regardless of whether or not they are available to actually run the processing. The workers then queue up the ids and process them in order. This isn’t ideal since I’m looking to be able to monitor and control what is going on in the system centrally to achieve reliability.

Anyways, any hints, tips or examples of this type of setup would be greatly appreciated.

  • 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-06-04T06:57:48+00:00Added an answer on June 4, 2026 at 6:57 am

    ZeroMQ is, in my opinion, best used in broker-less designs, for which the library is designed. If you want to monitor the number of items in a queue, or throughput, or whatever, you’re going to have to build that into the application/device/producer yourself. Since you’re new to messaging, that could get out of hand real quick. Given this, I’d suggest looking into RabbitMQ (or a similar broker), which would provide these services for you out of the box. If you do adopt RabbitMQ (or rather, AMQP), I’d suggest using a fanout exchange for the scenario you describe above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all, I'm really new to the MVC Asp.Net ideology. I would like
First of all, some background: I'm trying to get in a list of integers
First of all Im new to vb 2010 and so far have enjoyed what
First of all, I'm kinda new to the barcode formats and what I do
First of all, I'm fairly new to jQuery and HTMl5/CSS3, so while there is
first of all, sorry if that question is dumb but I´m a total newbie
First of all, what's the difference between: www.domain.com and domain.com Should I pay attention
First of all, I'm not sure if the title accurately describes what I'm referring
First of all, I found this: Objective C HTML escape/unescape , but it doesn't
First of all, for the sake of clarity: the question is addressed to those

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.