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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:22:23+00:00 2026-05-15T16:22:23+00:00

Consider a tier of N-many subscribers, all connected to a direct exchange using identical

  • 0

Consider a tier of N-many subscribers, all connected to a direct exchange using identical queue name and routing key values. This creates a load-balanced system where an inbound message is send round-robin to 1 of the subscribers. This works very well for dealing with scale-out issues as more subscribers can be added as load increases and can later be withdrawn if necessary.

Now consider the requirement of being able to send messages to ALL subscribers in that tier, without knowing how many there are (for example a “reset your state” or “shutdown now please” administrative message). Is there any way to do this in rabbitmq? If this isn’t possible, is there a better approach?

My environment is Python using amqplib.

  • 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-15T16:22:24+00:00Added an answer on May 15, 2026 at 4:22 pm

    If I understand correctly, this is your setup:

    • you have a producer publishing to a direct exchange;
    • you have a queue bound to that exchange;
    • you have many subscribers, all consuming from the above queue.

    This works perfectly for sending a message to an arbitrary subscriber (thus sort-of load balancing), but you want to be able to send some messages to ALL the subscribers.

    You could do this with a fanout exchange and an extra queue for each subscriber:

    • your producer publishes system-wide messages to a fanout exchange;
    • there’s a queue for each subscriber bound to that exchange;
    • each subscriber first attempts to consume from this queue; if it doesn’t succeed, it tries to consume from the common queue you currently use.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While architecting any n-tier intranet applications, do I have to consider anything about firewalls
Consider the following Mechanize form object #<Mechanize::Form {name f1} {method POST} {action f.php} {fields
I know that there are many different architectures exist. In this question I consider
Consider this typical disconnected scenario: load a Customer object from SQL Server using LINQ
Consider the following simple DAG: 1->2->3->4 And a table, #bar, describing this (I'm using
Consider the following (rather complicated) query expressed in this JSON object: { name: Kindle
I’m trying to write a web app using 4-tier design pattern ( Data Store,
Consider I have an Array, int[] i = {1,2,3,4,5}; Here I have assigned values
Consider this folder structure in repository Root |----Plugins |----|-----Plugin1 |----Themes |-----|----Theme1 I have all
Consider the collection List<Person> people = new List<Person> { new Person{Name = A, SSN=1,

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.