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

React-boilerplate, reducer sending me a object instead of my default initialState?

I'm not getting my initialState while ajax requests in the pending? Here is the snapshot of both actual data and reducer initialstate. this.props of my application here is my reducercode: /* * * MainPage reducer * */ import { fromJS }…
0
votes
1 answer

How to trigger the execution of the compensation flow for the activities used within an Automatonymous state machine?

My activities throw exceptions from time to time during the execution, so I've implemented the Faulted methods of Activity to handle that, discarding the changes made in the Execute method. I thought that there's some wiring underneath in…
Slowacki
  • 480
  • 7
  • 20
0
votes
1 answer

React spinner when components async content are loaded completely

I have a React Application that is structured in the following way: I have multiple pages - "PageA", "PageB". Each of these pages will render a main component - "PageAComponent", "PageBComponent". Within these main components, I have multiple small…
0
votes
0 answers

MassTransit Saga, Is there possibility of losing events when using UseInMemoryOutbox?

In a masstransit saga when UseInMemoryOutbox is enabled, Is there possibility of losing events? As far as I understand UseInMemoryOutbox, It will postpone publishing events after persisting saga, So what would happen if saga persisted and then…
0
votes
1 answer

Camel Saga: Coordinating a saga across two web-services

I intend to use camel in-memory Saga in an integration project. There is a nice document about Saga with details. Is there some example code for in-memory Saga? I can use that to experiment with, for coordinating a saga across two SOAP-services,…
Espresso
  • 5,378
  • 4
  • 35
  • 66
0
votes
1 answer

How can I pass a value from my root saga to all its forks?

In almost all my sagas I call a selector which gets the organizationId from the state, like so: const organizationId = yield select(getOrganizationId); My rootSaga is set up like so: export function* rootSaga() { yield all([ …
Willy G
  • 1,172
  • 1
  • 12
  • 26
0
votes
0 answers

saga hangs when updating a redux state

I was using redux-saga in my application. And use saga to set the state of my redux. But one thing i am experiencing now is the application will hang if I use saga to update the redux state with a different value from its existing state Lets say, in…
Jake Lam
  • 3,254
  • 3
  • 25
  • 44
0
votes
1 answer

Systems that implement SAGA

Do you know some tool, or systems, or framework, or middleware that provide an implementation for the SAGA pattern for transactions? I found eventuate, are you aware of others? Thank you in advance
affo
  • 453
  • 3
  • 15
0
votes
1 answer

Difference between saga and service bus?

Upgrading skills from Azure Service bus to Rabbit MQ + Mass Transit. Please bear with me. I have convoluted understanding in mind about Saga and State Machine (Automatonymous). Are they synonym of each other. Does the name SAGA originates from…
Abhijeet
  • 13,562
  • 26
  • 94
  • 175
0
votes
2 answers

How to mock http request in sagas (black box testing approach)

I am trying to take a black box approach and use sagaTester to test my sagas. This is the saga.js from react-boilerplate: export function* getRepos() { // Select username from store const username = yield select(makeSelectUsername()); const…
johnwick0831
  • 918
  • 1
  • 12
  • 24
0
votes
0 answers

MassTransit Saga - raise multiple events from a saga

I am a beginner on service bus and trying to understand the concept of Saga and Statemachines using Masstransit and Automatonymous. The situation I have is, a saga to calculate food consumption in a county. The saga will be triggered for a…
Ceemah Four
  • 458
  • 4
  • 11
0
votes
1 answer

NServiceBus Data saved but no saga saved

We’re using NServiceBus 4.6.5, with Oracle database, and for a specific request, intermittently the data is saved into our database, but the corresponding sagaData is not saved to the database. I looked at the logs and can’t find an explanation. If…
Miguel Domingos
  • 345
  • 1
  • 3
  • 17
0
votes
2 answers

Akka: is actor's mailbox recovered after actor system crash / restart?

Im trying to implement Saga (Process Manager) with PersistentActor which updates multiple entities / aggregate roots to achieve (eventual) consistency without ACID transaction. Let's say, in the middle of the process, between Process Manager…
Teimuraz
  • 8,795
  • 5
  • 35
  • 62
0
votes
1 answer

Redux saga channel blocking inconsistently

I have a redux saga setup where for some reason my channel blocks when I'm trying to take from it and I can't work out why. I have a PubSub mechanism which subscribes to an event and when received calls this function: const sendRoundEnd = (msg,…
dougajmcdonald
  • 19,231
  • 12
  • 56
  • 89
0
votes
1 answer

Redux-Saga error in React Native

I've created an application using React Native and want to fetch data from API using redux-saga. Everything works fine before I configured my redux and sagas. Here are the I added and modified : ReactRestoRedux.js import { createReducer,…
kurniawan26
  • 793
  • 4
  • 16
  • 35