artiso-solutions / adsd-hotel

MIT License
3 stars 0 forks source link

Timing and Exceptions #98

Open tziemek opened 3 years ago

tziemek commented 3 years ago

We were taking another round going through the reservation saga yesterday and found some timing issues. At the time our purple consumer is sending commands to the yellow and purple service, some other events from the saga may not have arrived and the order is not present in the corresponding services. This throws an exception and will be retried via NServiceBus conventions and we are publishing some event together with a reply. We should only do that if it is really failing (Validation or after some amount of retries).

tommasobertoni commented 3 years ago

On which services did you see the order-not-found exception coming from?

tziemek commented 3 years ago

On the yellow service.

tziemek commented 3 years ago

See fixes in #100