Skip to content

How to configure Rebus to work with one queue per type? #1207

@gufigueiredo

Description

@gufigueiredo

Hello,

Is there any way to configure Rebus to handle messages coming for multiple queues using RabbitMQ?
My scenario is:

  1. I have TypeA and TypeB. Both have separated queues.
  2. When I call bus.Send(TypeA), I would like event TypeA to be sent to queue A (and B to its corresponding queue)

The point here is about separating the Types in different queues (for better scaling and mantaining). Somenthing like:

Image

I've tried:

(...)
.Map<TypeA>(destination)

...and for registering handlers:

services.AutoRegisterHandlersFromAssembly(typeof(RebusStartupConfiguration).Assembly);     

but when I call bus.Send(TypeA), the handler is not called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions