Questions tagged [saga]

A pattern that enables a service bus to deal with long-running processes, fault tolerance and scalability.

Long-running business processes exist in many systems. Whether the steps are automated, manual, or a combination, effective handling of these processes is critical.

NServiceBus employs event-driven architectural principles to bake fault-tolerance and scalability into these processes.

The Saga is a pattern that addresses these challenges uncovered by the relational database community years ago, packaged in NServiceBus for ease of use by developers.

MassTransit supports sagas, and Automatonymous is a saga implementation built on top of MassTransit.

497 questions
0
votes
1 answer

Making Automatonymous sagas multitenant

We have successfully integrated our multitenancy strategy with MassTransit due to some help from Chris Patterson. However we are stumbling over getting our (Automatonymous) sagas multitenant. I have something that works but I am not at all…
Keith Pinson
  • 7,835
  • 7
  • 61
  • 104
0
votes
1 answer

Correlating aggregates by Saga ID instead of an additional aggregate root

That's my first question ever, so excuse me if it's unclear or incomplete, and let me know how I can provide more info. I'm trying to build an email ticketing system using CQRS + ES. So emails are joined into conversations (sort of a la outlook…
hsen
  • 435
  • 5
  • 13
0
votes
0 answers

Why is my RequestTimeout broken by the following configuration?

I have set up a Saga in NServiceBus to encompass some logical progression of events. Any of the events are picked up fine, and almost all of the Saga functionality is working perfectly, this includes marking a Saga as complete, retrieving Saga Data…
mike
  • 1,318
  • 3
  • 21
  • 41
0
votes
1 answer

NServiceBus saga Unique attribute

I have a saga data class with one property marked by Unique attribute. However, this didn't prevent NServiceBus from creating several sagas with identical values in this field. Here is my data class: public class ModuleAliveSagaData :…
Alexey Zimarev
  • 17,944
  • 2
  • 55
  • 83
0
votes
1 answer

NServiceBus AzureSagaPersistence schema issue

I have updated my saga data class by adding one more DateTime property and everything went to hell. The schema wasn't updated and I started to get exceptions on each saga message, but I had no important data there so I removed the table. Since then,…
Alexey Zimarev
  • 17,944
  • 2
  • 55
  • 83
0
votes
2 answers

NServiceBus: How to archive completed or terminated sagas

NServiceBus removes Saga data at least in the RavenDB persistens store when this.MarkAsComplete(); is called from the Saga itself. Is there a built-in way to archive the Saga data when the Saga becomes completed or terminated? We need such a feature…
0
votes
1 answer

NServicebus saga performance

I have a trouble with NSB saga performance. We have one single saga that orchestrate long running session. Saga sends a lot of messages to different processors and than gets its replies. I see that sagas queue contains tons of incoming messages.…
Sim
  • 45
  • 5
0
votes
1 answer

Replacement for NServiceBus.Sagas.Impl.Configure.SagasWereFound

Upgrading NServiceBus from version 3 to 4 and get this error while compiling: error CS0234: The type or namespace name 'Impl' does not exist in the namespace 'NServiceBus.Sagas' (are you missing an assembly reference?) if…
Miguel Domingos
  • 345
  • 1
  • 3
  • 17
0
votes
1 answer

NServiceBus saga spread on several servers

I have a complex business logic process that includes 4 different servers (each performs different part of the process). I used WCF web service to every server. Now I want to use NServiceBus in this process. The saga feature sounds exactly what I…
Dennis Nerush
  • 5,473
  • 5
  • 25
  • 33
0
votes
1 answer

NServiceBus 4.0 Oracle Persistence without nHibernate

Is it possible to swap out the default RavenDB implementation for Saga, Subscription and timeouts with an Oracle implementation that isn't dependent on NHibernate. I'm trying to introduce NSB into an environment where NHibernate isn't already used,…
cdarrigo
  • 964
  • 1
  • 8
  • 26
0
votes
1 answer

NServiceBus Use 4.0 Handler in 2.6 saga

we have a saga that calls numerous handlers. I want to start the migration from 2.6 to 4.0 so I have upgraded one of the handlers to 4.0. If I deploy this handler alongside the other 2.6 handlers and with a 2.6 saga that calls both types of…
Raif
  • 8,641
  • 13
  • 45
  • 56
0
votes
2 answers

Nservice bus saga ordering

I have two saga's namely a client saga and a client billing saga. public class ClientSagaState:IContainSagaData { #region NserviceBus public Guid Id { get; set; } public string Originator { get; set; } public…
sagar
  • 177
  • 3
  • 19
0
votes
1 answer

NServiceBus saga not handling messages on azure

I'm getting strange behavior of working NServiceBus sagas deployed on azure cloud service. They never get replied message, never wake up... although if it's deployed locally everything works fine, also sagas works correctly when it's on WebApi cloud…
0
votes
1 answer

Can i implement timetolive on nservicebus sagas?

I have got a saga which touches 6 different endpoints and saga is sort of workflow. Is there anyway i can setup some timeout which gets executed and if the process is not over I will like to end that saga and do something???
Miral
  • 5,968
  • 16
  • 57
  • 85
0
votes
1 answer

NserviceBus not loading existing saga data

I have implemented a my connector using nservice bus saga. Below is the code public class ClientSaga : Saga, IAmStartedByMessages, IAmStartedByMessages, …
sagar
  • 177
  • 3
  • 19