Closed ChristianSauer closed 6 years ago
Hello,
It sounds like you are using v 2.x of RawRabbit. You could try to use the RawRabbit.Enrichers.QueueSuffix
, that allows you to add application suffixes (poor support for all .NET Core hosting scenarios), server name suffix or custom prefixes. See the tests here for more information!
Hope this helps!
Hi we had recently a problem where build a base nuget package for a very common message in our infrastructure. This message is send and consumed by multiple services, but since the intent is totally different not every service can consume every message.
When RawRabbit generates the Queue Names, the names are just the class names (which is just SomethingMessage in every service, since they share the same nuget package), and now multiple subscribers share the same queue and hilarity ensues. We have just inherited the class in our services and thus created different names, but we feel that there should be a mechanism to add the service name to the Queue Name.
I have traced it to the method CreateShortAfqn and would propose that we add an option to use a generic prefix, e.g. a configurable service name from the configuration.