While trying to run the booking sample, the decider gets invoked 4 times (i.e. the makeBooking method), but only a single call gets sent to the activity task exposed by ActivityHost.java. Can someone explain what is happening here?
Asked
Active
Viewed 742 times
1 Answers
2
Activity tasks suppose to be long/heavy operations. SWF sees that activity was executed in Workflow history and skip it.
Decider on the other hand suppose to be fast. SWF will run it multiple times, injecting results of Activities when they are available. This is called Replay in flow framework.

Ivan Nevostruev
- 28,143
- 8
- 66
- 82