Saga Correlation vs reponse/request

In a Saga I use SendLocal to let another MessageHandler perform a web service call and return a value. The returning Message-type have the Saga correlation ID. Are there any difference using SendLocal or Reply from this MessageHandler?

It would be better to use Send from the saga, and then in your routing configuration, have that routed back to the same endpoint, and also do a Reply from the handler back to the saga. This gives you better separation of concerns, as the code is focused on the logical flow rather than trying to control the physical routing.

– Udi

Great I understand. These request/response messages would you inherit from IMessage and forget about IEvent/ICommand?

Hi @Stig_Christensen,

the request could still be ICommand and the response would indeed be IMessage.

Cheers,
Tomek