I have two endpoints.
Endpoint 1:
- HandlerForMessage X
- HandlerForMessage Y
- HandlerForMessage Z
Web endpoint: - No handlers at this time, just sends commands to the bus.
The following happens:
- Web -> Send< MessageX >(..);
- Endpoint 1: Receive MessageX
- Endpoint 1: Handle MessageX and in Handler Bus.Send< MessageY >() and Bus.Send< MessageZ >()
- Endpoint 1: Receive MessageY, handle it (this takes 20 seconds)
- Endpoint 1: 20 seconds later, after handling MessageY, receive MessageZ and handle it.
Since MessageY, MessageZ have different Handlers can't this be done simultaniously?
Creating another endpoint or moving it to an other endpoint is not an option. I just want it to be multithreaded when it comes to different types of messages (and handlers). I don't see why this is not the default behavior.
How do I configure nservicebus to handle multiple messages at the same time from a different type (with different handler)?
NServiceBus 4.6.5 (or if I need to upgrade to 5, fine I don't mind. Just want to have it multithreaded). Transport: SqlServer and for another project Windows Azure Service Bus