Custom Routing

178 views
Skip to first unread message

Etienne Tremblay

unread,
May 2, 2013, 4:59:53 PM5/2/13
to masstrans...@googlegroups.com
I am fairly new to mass transit and RabbitMQ, but I was wondering if I could add a little bit of custom routing to my messages.  Here is my scenario:

I have a central server and I also have multiple stores.  Each stores can have multiple stations.  I want the central serveur to contain all the things to do for each station in each store.  When I publish a message in MassTransit, routing is based on type.  Would it be possible to add some routing keys so that the message is not broadcasted to all stations in all stores listening for this type of message?

I though I could implement Consumes<T>.Selected to be able to filter out messages I didn't want, but this doesn't seem to work like that.  If Accept returns false, then it retries until the message goes to the error queue.

Thanks,

Etienne Tremblay

unread,
May 3, 2013, 2:09:13 PM5/3/13
to masstrans...@googlegroups.com
Is it possible to use topics exchange from RabbitMQ from MassTransit?

If we could use topics exchange from MassTransit, we could easily add our own routing keys to it right?  It is possible, or is there any other way to add my own routing keys for more fine grained routing?

Thanks a lot!

Chris Patterson

unread,
May 3, 2013, 10:47:08 PM5/3/13
to masstrans...@googlegroups.com
You can send to any exchange by using GetEndpoint("rabbitmq://server/vhost/exchange").Send(...);

So if you setup and bound the topics yourself you could send to them.


--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/84an7PXNSmwJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages