8

I was wondering if there is any documentation/guidance on using Saga's and the EventStore. Part of my confusion is that when you look at using a Service Bus like NServiceBus or MassTransit the too have the concept of a Saga. I know the EventStore itself does not have the Saga in the code but the CommonDomain project does and they work together. Do I use the Saga infrastructure in the CommonDomain/EventStore or rely on ServiceBus Saga support? Or could both be used together?

Ruben Bartelink
  • 59,778
  • 26
  • 187
  • 249
Michael
  • 83
  • 1
  • 3

1 Answers1

9

Your best bet for a saga example is on my blog: Part I and Part II

You're more than welcome to use MassTransit or NServiceBus for sagas. I have a simple implementation using CommonDomain because I was trying to avoid a dependency on those frameworks and because I wanted to leverage event sourcing to facilitate sagas.

MetaFight
  • 1,295
  • 14
  • 30
Jonathan Oliver
  • 5,207
  • 32
  • 31
  • Thanks @Jonathan, your blog raised some further questions however - would the dispatch of Commands not be lost in the event of a system crash as they are being sent seperately from the write transation? I am trying to have the EventStore send commands for me after commit of the saga by combining the Event and Commands in to one stream but not sure of this is a good idea http://stackoverflow.com/questions/33429626/eventsourced-saga-implementation – morleyc Nov 01 '15 at 18:37