tag:blogger.com,1999:blog-5602263760491785758.post4399368752336897475..comments2023-06-28T01:39:03.668-07:00Comments on DevArchive.net Blog: Saga vs. Process ManagerKirill Chilingarashvilihttp://www.blogger.com/profile/09906215698720468631noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5602263760491785758.post-66247373134324714102016-07-04T10:00:07.753-07:002016-07-04T10:00:07.753-07:00Would be awesome to actually see your code for you...Would be awesome to actually see your code for your implementation.Sagan Marketinghttp://www.saganmarketing.comnoreply@blogger.comtag:blogger.com,1999:blog-5602263760491785758.post-84810792311710992032015-11-11T09:02:46.279-08:002015-11-11T09:02:46.279-08:00It is implemented in context of what was available...It is implemented in context of what was available to me in terms of infrastructure (I don't have dependency on queueing system).<br /><br />So essentially - it is not different - I can create Saga named CarHotelFlightSaga,<br />create an event named StartBookingEvent<br />Subscribe Saga to two events - StartBookingEvent and SagaProgressEvent<br />SagaProgressEvent can contain complete routing slip<br /><br />StartBookingEvent handler will issue initial SagaProgressEvent with shiny new routing slip<br /><br />SagaProgressEvent handler will inspect message content including routing slip and do compensating or proceed to next step.<br /><br />Sending to queue addresses can be done using message content manipulation right before re-issuing event.<br /><br />Or - another possibility - address of queue channel can be saga stream name which is saga name + correlationid.<br /><br />There could be many small non-correlated sagas (in classic terms - working as single event handlers - aka endpoints) instead of one - and they could have different correlation ids - like having different queue channel addresses, and they could share event with routing slip inside it.Kirill Chilingarashvilihttps://www.blogger.com/profile/09906215698720468631noreply@blogger.comtag:blogger.com,1999:blog-5602263760491785758.post-87890053899738737462015-11-11T07:41:44.294-08:002015-11-11T07:41:44.294-08:00This doesn't really sound like a saga to me.
...This doesn't really sound like a saga to me.<br /><br />See: http://vasters.com/clemensv/2012/09/01/Sagas.aspxTravelling Greghttps://www.blogger.com/profile/12937333845136986760noreply@blogger.com