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

How to make multiple API requests (for the same endpoint) in a loop Redux Saga?

How can I yield inside a foreach or map? I found this (https://github.com/redux-saga/redux-saga/issues/306) GitHub question. But what I need is I want to make multiple post requests to a single API endpoint. According to the mentioned github…
Thidasa Pankaja
  • 930
  • 8
  • 25
  • 44
0
votes
1 answer

@PrePersist error when saving child entity

I have a parent-child entity set up like this. The AuditEntity simply sets up some common fields for audit purposes (stuff like dateCreated, dateUpdated etc). Parent @Entity @Table(name = "APPLICATION") @Audited() @JsonIgnoreProperties({…
sml485
  • 367
  • 1
  • 6
  • 19
0
votes
1 answer

react-native AWS PUBSUB unable to reconect

I have a network action in my app, that fires fetchUser every time the app reconects to the internet. I have another saga that looks as follows export function* watchNewMessage() { const { id = {} } = yield take(SET_USER_ID) const channel =…
Adam Katz
  • 6,999
  • 11
  • 42
  • 74
0
votes
1 answer

Exception in Masstransit Saga Class which is connected to Mongo DB

Below is the error i am getting on my saga class which is "MassTransitStateMachine". I am not sure why it is giving this error as it is working when i switch to in memory saga repository. Error: MassTransit.Messages Warning: 0 : R-RETRY…
0
votes
2 answers

Why my getRequest() in saga doesn't see data from json.db after postRequest

My saga.ts : export function* postSomething(object:object){ yield postRequest(object); const Objects=yield getRequest(); console.log(Objects); yield put(showObject(Objects)); } **db.json is my little database My…
0
votes
2 answers

No EntityManager with actual transaction when publish event to Saga

I'm using "axon 4.0.3 + Spring Boot 2 + Spring Data (PostgreSQL)" default configuration. Having published event to the EventStore and waiting for it to be catched by @SagaEventHandler I received the following…
Sergey Bulavkin
  • 2,325
  • 2
  • 17
  • 26
0
votes
0 answers

Minified React Error when app is in production mode (built)

Do not know why or what is causing this errors when the app is built. There is no error on development. This occurs when redirecting user to a success page on successful signup (works perfect in dev). And the error is not from the page it is…
AllStackDev
  • 65
  • 1
  • 8
0
votes
1 answer

Async actions with saga js

I am dispatching an action, which is a put call to my api (createNote). After finishes saving, I need to then run another action, which is a fetch call to my api. Is it possible to correctly wait for the first action to finish before calling the…
Rigs
  • 163
  • 2
  • 3
  • 12
0
votes
1 answer

Is it possible to add dynamic data to an MassTransit courier/routing slip custom event?

I have a MassTransit routing slip configured and working. For reference, the routing slip takes in an ID of an item in a MongoDB database and then creates a "version" of that document in a SQL database using EF Core. The activities (as commands)…
Ben Thomson
  • 1,083
  • 13
  • 29
0
votes
0 answers

Dispatch not a function React Redux Typescript

Having trouble accessing redux dispatch method inside of props. When calling handleSubmit from the redux-form, the dispatch method returns "dispatch is not a function". I've tried adding the action to various interfaces that I was passing into the…
Crumblenautjs
  • 169
  • 1
  • 3
  • 24
0
votes
0 answers

When integrating json data from redux saga, am getting type of error landig.Slots is undefined

landing.js: {landing && landing.Slots && landing.Slots.map((slot, index) => { if (slot && !slot.removed) { let fullWidth = "100%"; let maxWidth = 576; …
Johny
  • 1
  • 3
0
votes
1 answer

Redux Saga: loading indicator for a sign in button

We use the following saga to signup the user by phone: function* signup() { while (true) { const {phone} = yield take("APP_SIGNUP"); nav.toCode(); const responseSignup = yield call(fetch.signUp, phone); if…
Guy
  • 12,488
  • 16
  • 79
  • 119
0
votes
2 answers

Deduplicating API calls with Redux Saga

In part of my application I need to save an item state to the server. However sometimes I will trigger a chain of submits each about 10ms away from the other. State A State B State C State D In this case I should really only submit State D.…
Robert Lemiesz
  • 1,026
  • 2
  • 17
  • 29
0
votes
1 answer

Saga not fired by action Redux-Saga

Why will not my saga be fired by my action? I have a wierd situation where it works when I do this: open my application in the browser (and use npm run start to start the application), exit the run of application, and then start the application with…
RMT
  • 942
  • 2
  • 12
  • 32
0
votes
1 answer

Saga association fails because Scope is not active

As described in the docs, I am associating my Saga object with a specific event property. The SagaLifecycle.associateWith method is called from within the starting saga event handler method: @StartSaga @SagaEventHandler(associationProperty =…
Double M
  • 1,449
  • 1
  • 12
  • 29