Content-based routing in MassTransit

530 Views Asked by At

Is it possible to do content-based routing in MassTransit? Is it generally a good practice to use Enterprise Service Bus for content-based routing?

1

There are 1 best solutions below

3
On BEST ANSWER

Generally content-based routing is frowned upon (e.g. http://www.udidahan.com/2011/03/20/careful-with-content-based-routing/) and not considered a good practice. MassTransit does not support content based routing. Routing is normally done on types.

Given that, I have done an implementation for a specific product that had content based routing done as a custom distributor implementation on MSMQ. This was the take some content to a "slow lane" during the load balancing process. This was narrow and scope and deems okay for the specific needs. That is the only time I've used it though - proper use of message types for routing is easier to maintain and manage.