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
2
votes
1 answer

Getting and setting values from Redux Store with Redux Saga

I am trying to return a token without an API but it keeps returning undefined. The purpose at the moment is just to optionally show two elements dependent on whether or not there is a token in the props, preparing it for later when I actually…
Calvin Tiley
  • 177
  • 8
2
votes
1 answer

Is there any inbuilt way to join sagas

I want to run sagas, one after another for any dispatched action. Below is a stream lined version of what I am trying to do function* handleActionSaga(props){ yield validateToken(); yield fetchFeeds() } yield takeLatest('GET_FEEDS',…
Praveen Prasad
  • 31,561
  • 18
  • 73
  • 106
2
votes
1 answer

Saga messaging implementation with RabbitMQ

I'm new to RabbitMQ and want to implement asynchronous messaging of SAGA with RabbitMQ.So I used RPC example of RabbitMQ to do the task. I've one orchestrator ( RPCClient) and multiple microservices ( RPCServer). Orchestrator uses unique queues to…
Nyctanthes
  • 23
  • 3
2
votes
1 answer

Redux/saga: How to fire an action (put) inside a callback without channels (use sagas as normal generator functions)

I'm looking for a way to fire an action from inside a callback. I know this is not possible by default, but I'm looking for a way around. Channels are a bad solution in my case (for so far I see it). The library I use is react-native-ble-plx. In…
Thomas Stubbe
  • 1,945
  • 5
  • 26
  • 40
2
votes
2 answers

POST/PUT response REST in a CQRS/ES system

I'm implementing a CQRS/ES based system with a RESTful interface which is used by a webapp. When performing certain actions e.g. creating a new profile I need to be able to check certain conditions, such as uniqueness of the profile ID, or that the…
Ben Flowers
  • 1,434
  • 7
  • 21
  • 49
2
votes
1 answer

trying to access generator function features inside facebook graph api callback

This code is inside a redux saga file. I'm trying to send the response back to the saga function but I can't. new GraphRequestManager().addRequest(infoRequest).start(); infoRequest = new GraphRequest( '/me', { httpMethod: 'GET', …
2
votes
2 answers

Saga Choreography implementation problems

I am designing and developing a microservice platform based on the specifications of http://microservices.io/ The entire framework integrates through socket thus removing the overhead of multiple HTTP requests (like most REST APIs). A service…
Victor França
  • 306
  • 4
  • 15
2
votes
1 answer

Signing an URL to upload an object with Python Boto3+DjangoRest+React Redux Saga

Im trying to sign a url using boto3 like this: @list_route(methods=['get']) def sign(self, request): key = request.GET.get('key', None) if key: if key.count('.') == 1 and key.count('/') == 1: extension…
Pablo Estrada
  • 3,182
  • 4
  • 30
  • 74
2
votes
1 answer

React Native API implementations causing errors

I'm absolutely new in React Native. So I start learn to create a simple application. I want to use Zomato API for my application. Everything works fine until I try to use an API which causing this error : I really need help for this, so I can…
kurniawan26
  • 793
  • 4
  • 16
  • 35
2
votes
1 answer

Upload form field file using redux saga call

I am uploading a file in the body as form-data. Using ajax it works fine but when I try to do the same in redux-saga, it does not work and fails. What am I doing wrong? In ajax, let upload = ajax.post(PathHelper.apiPath +…
fscore
  • 2,567
  • 7
  • 40
  • 74
2
votes
1 answer

redux-saga - Server-Side rendering with 1 async dependent on another

I am trying to get my app to Server-Side render via the END effect (details on https://github.com/redux-saga/redux-saga/issues/255, with explanations why this is so tricky). My data relies on 2 async requests: getJwtToken -> (with token data)…
Craig Taub
  • 4,169
  • 1
  • 19
  • 25
2
votes
0 answers

How to do Eager loading and Explicit loading in MassTransit Saga Persistence for Object Graph

Automatonymous in MassTransit is one of the best State Machine implementations in .Net and we decided to use it in our internal systems ;however, we are having problem configuring the Saga for loading and updating Saga instance in Entity…
2
votes
1 answer

Masstransit State Machine - Retry Mechanism

In case a message is being "retried" as a result of an exception, is it being returned physically to the queue? to the beginning? to the end? Is it re-processed after the existed messages in queue? Is it being kept in application memory? I have not…
2
votes
1 answer

ReBus: Unable to use sagas with handlers decorator

I use Rebus 3.0.1 with Simpleinjector. I have registered a decorator, for logging, of all the handlers, this way: container.RegisterDecorator(typeof(IHandleMessages<>), typeof(HandlerLogDecorator<>)); Everything works fine, except the Sagas:…
ilcorvo
  • 446
  • 5
  • 18
2
votes
1 answer

Saga, where to store aggregate status

I'm new to saga. Here a simple scenario : User click "Create Order" : an order is created (holding its state = NEW at first) Once the user has finished filling the order, click SAVE --> state is now SUBMITTED When another check the order and…
Archange
  • 397
  • 5
  • 21