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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:36:45+00:00 2026-06-18T12:36:45+00:00

Rebus has flexible system that allows me to specify different endpoints for different message

  • 0

Rebus has flexible system that allows me to specify different endpoints for different message types, either in web.config or by implementing a custom IDetermineMessageOwnership.

As far as I can tell, message ownership is represented simply by a string. Using the MSMQ transport, this string points to a queue to which the message is delivered. With RabbitMQ, the string is used as a topic for the message, which is then delivered to a generic exchange named “Rebus”. Rebus is a nice fellow, so he also sets up a queue in the RabbitMQ server, using the same name, and makes a binding from topic to queue within the Rebus exchange.

My question is this: Is it possible to have Rebus not create queues and bindings, but still deliver the messages to an exchange with a relevant topic set for each message?

Declaring the queues and bindings manually will allow me to set up an awesome topic exchange, using bindings with wildcards and what not. Here is a nice illustration of a topic exchange with funky bindings, just to make my question look more sleek and sexy:

Illustration of topic exchange in RabbitMQ

  • 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-18T12:36:46+00:00Added an answer on June 18, 2026 at 12:36 pm

    Sounds to me like you want to do something like this:

    Configure.With(yourFavoriteContainer)
             .Transport(t => t.UseRabbitMq(...)
                              .ManageSubscriptions()) //< BAM!!1
             .(...)
    

    which lets Rebus take advantage of the fact that Rebus’ RabbitMqMessageQueue implements IMulticastTransport, which in turn turns handling of all things multicast over to Rabbit.

    It’s just important that all of your Rabbit-enabled Rebus endpoints agree on letting Rabbit ManageSubscriptions – otherwise, weird stuff might happen 😉

    It means that

    • when you bus.Subscribe<SomeEvent>, you bind a topic with the type name to the subscriber’s input queue – e.g. "SomeEvent.SomeNamespace" -> myInputQueue
    • publishers publish events on a topic that is the type name – e.g. "SomeEvent.SomeNamespace"
    • message ownership is disregarded when subscribing
    • Rabbit will do the heavy lifting when doing multicast (which is what Rabbit users are mostly doing)

    If you require even more flexibility, you can even take responsibility of deciding the topic to publish to for each .NET type, like so:

    Configure.With(yourFavoriteContainer)
             .Transport(t => t.UseRabbitMq(...)
                              .ManageSubscriptions()
                              .AddEventNameResolver(type => DecideTopic(type))
             .(...)
    

    You can add multiple event name resolvers if you want – they will be run in sequence until one of them returns something that is not null.

    Does it make sense?

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

Sidebar

Related Questions

I am writing a web page that has a vertical menu bar on the
I understand that Rebus is perfectly capable of transporting messages from point A to
I find myself in a quandry that I think I know the solution to
I know that i18n -> i nternationalizatio n (18 letters), log4j -> log for
We have a .NET 3.5 Web Service ( not WCF) running under IIS. It
I want to update a single record in a table to reflect that a
I'm using backstretch for the background image so that I don't have problems with
Background: I've wrote a small library that is able to create asp.net controls from
My issue at hand is that I need to remove about 60M records from
I have a div which belongs to the class .stickyNote and within that div

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.