Questions tagged [nservicebus-sagas]

Out of the box support for long running processes in NServiceBus

NServiceBus Sagas is a mechanism for allowing the modelling and runtime execution of long running business processes.

64 questions
7
votes
1 answer

nservicebus sagas - stuck trying to understand the purpose and benefit

I have read multiple times the documentation on the website. I am reading again and again the same articles and I cannot understand what they are trying to achieve with sagas. Besides, there are almost no resources in internet related to this…
monstro
  • 6,254
  • 10
  • 65
  • 111
4
votes
1 answer

NServiceBus: Increasing number of messages in storage-queues after saga-timeouts

First Some info about the setup: We are running NServiceBus v4.6.3 Distributors are running on clustered machines with clustered queues. The TimeoutManager is disabled on the workers and enabled on the distributor. What we are experiencing When…
3
votes
1 answer

NServiceBus saga design issue

I am encountering an "optimistic concurrency violation" exception when using NServiceBus saga. My saga covers a relatively simple flow: when any message arrives it makes few external requests and after some time gathers replies. Below you can find…
alex.dev
  • 170
  • 11
3
votes
2 answers

How should we handle a long running process using nservicebus

I know this seems quite obvious for a lot of people but my client is using a pattern that I am not really convenient with. Case is, that a customer of theirs sends a deposit or withdrawal that through nservicebus is sent to a third party system.…
Per
  • 1,393
  • 16
  • 28
2
votes
1 answer

Is there a preferred way to list sagadata in a web application?

I have a saga containing a timeout that will trigger a business process in the future. This saga can be ended early either based on a "cancelled"-event from a core system or manually by a customer handler. The customer handler needs to be able to…
2
votes
1 answer

Max IEndpointInstances per process

Is there an upper limit to the number of unique IEndpointInstances that be hosted within in a single process? I'm considering a design that will see up to a 100 unique IEndpointInstances, all listening on separate queues, be active…
Philip Pittle
  • 11,821
  • 8
  • 59
  • 123
2
votes
2 answers

NServiceBus - queue up sagas with the same key

Scenario: I have build a saga with 10 steps. It's updating various systems, and the entire saga could take a few minutes to complete. The saga is started with data from another system where users type in informations on a customer. I am not able to…
Ole Gade
  • 83
  • 3
2
votes
2 answers

NServiceBus saga data not created

I was wondering if anybody can provide some insight into why in the mysterious world of NServiceBus my saga data isn't created. Behind all the configuration and XML hell that comes with NBus (by default) I can't seem to get my saga data working. The…
Dr Schizo
  • 4,045
  • 7
  • 38
  • 77
2
votes
0 answers

Implementing Generic Nservicebus Saga

public class MySaga : Saga>, IAmStartedByMessages, IHandleMessages, …
2
votes
1 answer

Saga Wait for Status value

I have a Saga which should wait for a specific Database-Value to be changed. How do I achieve this? Example: public partial class OrderSaga : Saga, IHandleMessages { public void Handle(FinishOrder message) { …
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
2
votes
1 answer

NServiceBus Saga handle a message-type multiple times gives concurrency exception

We have a NServiceBus implementation that handles multiple message-types: public class StateCoordinator : Saga, IAmStartedByMessages, …
EagleBP
  • 131
  • 8
2
votes
0 answers

NServicebus Sagas: SagaNotFound warning even though it finds it

I hope someone can help me with my problem as I have googled it like crazy with no result. I am trying to implement a saga in NServicebus. The handle method in the saga calls two different handlers through the bus using the bus.Send() method (see…
1
vote
2 answers

How to query Sagas stored in SQL Persistence table

I need to query a property of Saga Data class to get a list. It is stored on SqlPersistance table [Data] column as a serialized object. Think about a scenario that my SagaData has a property called UserName, so I want to query every saga related to…
Arthur Cam
  • 549
  • 6
  • 18
1
vote
0 answers

Handler multiple time execution issue

Facing issues in handler of Nservicebus. Handler executing multiple times. please find the code below. Facing problem after running this code the handler in letthandler class is getting executed multiple time. Lett handler class public Task…
1
vote
1 answer

NServiceBus doesn't automatically create schema (SQL Server)

I want my NServiceBus sagas to live in a separate SQL Server schema. The autogenerated SQL scripts creating the tables for sagas do use the custom schema name but do not create the schema if it does not exist, so one has to manually create the…
AunAun
  • 1,423
  • 2
  • 14
  • 25
1
2 3 4 5