Achieving isolation with Sagas

135 views
Skip to first unread message

Sebastian

unread,
Dec 5, 2016, 2:43:18 PM12/5/16
to DDD/CQRS
Hi there, 

Just wanted to know how to achieve isolation using Sagas. Going down to a concrete scenario let's say about a long live transaction having an action for reserving seats. How do I ensure isolation of let's say 2 seats from other transactions and to set a time out for that reservation to expire as well. If any of you have some code sample would be great.

Regards,
Sebastian

Alexander Langer

unread,
Dec 6, 2016, 1:53:37 AM12/6/16
to ddd...@googlegroups.com
The Microsoft CQRS Journey uses this very use case as an example on sagas:
https://msdn.microsoft.com/en-us/library/jj591569.aspx
You can almost literally translate e.g. Fig 3 into code. What's missing
in the timeout, but that's must the matter of an additional (delayed)
event, such as "ReseverationTimedOut".
Reply all
Reply to author
Forward
0 new messages