Questions tagged [saga]

8 questions
5
votes
1 answer

Redux LOADING/SUCCESS/ERROR pattern - when using redux-saga

On a typical web app, we commonly have to deal the LOADING/SUCCESS/ERROR problem - which is that: When I make a backend request I want to display a loading cursor, perhaps disable some buttons. When the request finishes successfully, I want to…
dwjohnston
  • 2,543
  • 6
  • 29
  • 49
3
votes
2 answers

Microservices: Is the Saga Pattern correctly applied here?

I'm trying to understand and learn how to build microservice messages the best and came up with this task for myself: Services given: Accounts Service Token Service Email Service When a user registers the account needs a token for the verification…
2
votes
0 answers

SAGA pattern - how to handle situation when some message is not received by orchestrator

Recently I'm studying Saga pattern, but I'm struggling to imagine how it will work in real system. Standard example is making an order, which consist of reserving flight, hotel and a car. We can assume that we have following services: ordering…
0
votes
1 answer

Consistency of data between microservices & monoliths

Let's say there is a user table and has field called coins to represent the coins available for that user in the system. At this stage a certain user has 50 coins in his account. Same user do the following requests almost instantly, but in the…
Ramesh-X
  • 109
  • 4
0
votes
1 answer

Options for modeling nested/related workflows?

I am working on an application for awarding organizations by the CEO based on a somewhat complex criteria of multiple dimensions. The process consists of 3 nested workflows: Award workflow (opened → closed → endorsed → approved →…
geeko
  • 236
  • 1
  • 11
0
votes
0 answers

Converting monolithic application to microservice architecture with sagas

I'm looking for architectural guidance. I've got this monolithic application. It has a payment platform functionality, where payments are made, scheduled or on demand, via some banking API. Payments used to be stored in DB, along with all relevant…
kosmakoff
  • 109
  • 1
0
votes
2 answers

How to handle command line parameters

I am writing a gui that is supposed to replace a fairly large shellscript in order to make the usage easier for not-so-technical people. The script calls a certain program (saga_cmd) multiple times with different parameters, i.e. saga_cmd…
Turtle10000
  • 129
  • 6
-2
votes
1 answer

Unexpected shutdown before a saga completion

Suppose we have some microservices and a saga will run to do a transaction in 6 microservices. What if the whole system dies(unexpected shutdown), on middle of saga process in the step number 4?(System died, So state is lost)