Additionally, you can use state machines server side to track stateful processes by simply serializing the “current” state of the machine and storing it somewhere.
With the next request, reload the “current” state of the machine and transition to the next based on the incoming request.
With the next request, reload the “current” state of the machine and transition to the next based on the incoming request.
Rinse/repeat.