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
0
votes
0 answers

NServiceBus Saga Not Found

I have vs 2015, NServiceBus 4.6.0.0, RavenDb 2.5. I deployed a new release of my software and 1 saga is experiencing saga not found errors on at least two messages associated with the saga. When we rollback the release the messages are reprocessed…
0
votes
1 answer

What are sagas and why are they used event driven architectures?

I came across following code: public class ShippingSaga : Saga, ISagaStartedBy, ISagaStartedBy { public void Handle(CustomerBilledForOrder message) { …
aspxsushil
  • 514
  • 1
  • 5
  • 16
0
votes
2 answers

Custom database name for persisting host sagas

Is it possible to use custom database name (not endpoint) for persisting nservicebus host sagas using ravenDb? I use NServiceBus 3.3 and RavenDB 2.5. and initialize endpoind in such way: public class RavenConfig : IWantCustomInitialization { …
Dzianis Yafimau
  • 2,034
  • 1
  • 27
  • 38
0
votes
2 answers

NserviceBus Sagas Utility

I read this excellent tutorial (http://blogs.planbsoftware.co.nz/?p=247) about NserviceBus Sagas, but still I don't understand what is the advantage of this model (sagas), over using database or business layer transactions?
Miguel
  • 53
  • 7
0
votes
1 answer

NServiceBus Timeoutsdispatcher queue is being flooded with messages during stress tests

I'm doing some stress tests on a saga that uses 2 timeouts. During the test about 21K saga's get created. So that would mean 42K timeouts, but I notice that the timeoutsdispatcher queue of the saga is getting flooded with 100's of thousands of…
Marc Selis
  • 833
  • 12
  • 17
0
votes
1 answer

Optimizing saga lookup

I have a proces that downloads files from a remote location in parallel threads. Each thread sends a message when a download is started, and a second one when the download is completed. Both messages have a download id property (guid) to correlate…
Marc Selis
  • 833
  • 12
  • 17
0
votes
1 answer

Verify that an NServiceBus saga does not reply to originator

What is the best way to test that a saga has not replied to originator? I see that using NServiceBus.Testing I can call Saga.ExpectReplyToOriginator, but I'm not seeing anything like "ExpectNotReplyToOriginator". I tried using .ExpectNotSend() and…
ksigmund
  • 527
  • 1
  • 6
  • 13
0
votes
2 answers

Should NServiceBus handlers always quickly complete?

[Edited for clairty] I'm not sure I understand correctly. Inside the Saga everything should be concise and quick, according to these instructive posts: Jonathan Oliver's summary: blog.jonathanoliver.com/… Udi Dahan's original:…
pashute
  • 3,965
  • 3
  • 38
  • 65
0
votes
1 answer

How to handle compensation inside Saga

I am new to nservice bus and am trying to learn the concepts. I am trying to create an application which would register a customer after taking some payments from them. There are couple of third party integration in the registration process e.g.…
Sarvesh
  • 269
  • 1
  • 2
  • 10
0
votes
3 answers

Why can't i see my response data in my callback?

we're evaluating nservicebus at my company for a rewrite of our sales process. we'll be using sagas and web api. we ran into a block handling responses on the client side. we're using Handling Responses on the Client Side for guidance. from our…
CurlyFro
  • 1,862
  • 4
  • 22
  • 39
0
votes
2 answers

Can i call a dynamic saga by name?

I have a list of products uniquely identified by name. each product has it's own ordering process. I'd like each products ordering process to be defined by a saga. is there a way for me to process each product using a different saga? Can i use…
CurlyFro
  • 1,862
  • 4
  • 22
  • 39
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

How to configure NServiceBus with two RavenDB IDocumentStores?

In NSB 5, how do I correctly configure NSB with autofac container with one IDocumentStore for NSB data and a separate IDocumentStore for application data? I've pasted the relevant part of EndpointConfig below: // Raven DataStore for…
Trygve
  • 2,445
  • 1
  • 19
  • 23
0
votes
1 answer

Exception in RavenDB.SagaPersister.Save, "Guid should contain 32 digits with 4 dashes". Guid is empty in Raven

NServiceBus 5.1, RavenDB persistence, AutoFac container, log4net, all latest versions in NuGet at time of posting. EndpointConfig: log4net.Config.XmlConfigurator.Configure(); LogManager.Use(); // Raven…
Trygve
  • 2,445
  • 1
  • 19
  • 23