david.newman on Mon, 14 Jan 2013 13:36:44
I am new to using a Message based architecture such as the Azure Service Bus Topic/Subscription feature.
I am wondering how best to work with different message types.
E.g. Say I have two messages. One to create a new customer and another to delete a customer.
1. Create two topics. Each topic will have one subscription. The code that processes the message will deal with its message type independently.
2. Create one topic for customers. Create one subscription to receive all the messages. The code that processes the messages will need to determine the message type before processing it.
3. Create one topic for customers. Create two subscriptions, which filter the on the message type. The code that processes the message will deal with its message type independently.
I'm sure there is no right or wrong, but would appreciate some input from someone with experience in this area.
Qin Dian Tang - MSFT on Tue, 15 Jan 2013 09:03:50
Many points you can think about such as message size (more subscription, more size), filter rules for the subscription or load balancing: