I'm building a cloud stream application using Spring with Azure Event Hub and Service bus. In my use case I'm trying to achieve the following functionality :
- Application that receives messages from a single binder (event hub)
- Process the messages in a few steps, step A, B, C for example
- Each step in the process creates objects
- Stream the objects which were created in each step to different binders. If sending messages failed in any step, don't proceed
The question is, does the message sending is sync or async? Will it wait until all messages sent in step A before executing the next steps?