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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:01:16+00:00 2026-06-11T09:01:16+00:00

I have a Topic exchange from which I’d like to distribute messages to two

  • 0

I have a Topic exchange from which I’d like to distribute messages to two queues on two servers part of a cluster, in order to reduce memory pressure on any particular server. My consumers are periodically slow, and I sometimes run into the high memory watermark.

The way I tried to resolve this is by routing messages using an intermediate direct exchange, with two queues bound to the exchange:

a (topic) -> a1 (direct) -> q1/q2 (bound to routing key "a")

But the messages were routed to both queues, as AMQP intends. Anyone has ideas? What I need is an exchange that routes to one and only one queue, even if the routing key matches many queues. I’d prefer not to change my routing keys, but that could be arranged.

I found Selective routing with RabbitMQ, which may mean I’ll need to implement my own routing logic. Hopefully, this already exists somewhere else.

  • 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-11T09:01:17+00:00Added an answer on June 11, 2026 at 9:01 am

    You could perhaps use the Shovel plugin – http://www.rabbitmq.com/shovel.html – to move messages from your intermediate exchange to the two queues.

    If you set up two shovels, both consuming from a single queue on the direct intermediate exchange, they should be able to fight over the messages coming in (I’m assuming that you don’t care too much if the two recipient queues don’t get the incoming messages in a strict round robin fashion). The shovels then each publish to one of the two end queues, and can send through the ACKs from the end consumer.

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

Sidebar

Related Questions

I have a script which picks up messages from a queue, this does the
I have many Topic objects and each Topic hasMany posts:Post How can I order
I am trying to select questions which have a certain topic id. These matches
We've got an application which will be using RabbitMQ and have several different queues
I would like to know if this scenario is possible: I Have Topic jms
I have a topic branch ( new-http-api ) in git which is based on
I have a class Topic and Group which both have a variable called 'name',
I have two tables: Topic ( TopicID: int, (primary key) TopicName: varchar ); Example
I have topic data looking like this: 010000 <- Top level header 010100 A
I have jms topic, which may have 0,1,2 subscribers (meaning that some of the

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.