#Can someone help me structure onboarding step tracking properly in my NestJS backend?

3 messages · Page 1 of 1 (latest)

stiff summit
#

The super short answer is, use the saga pattern. (You'll need to do more research as the docs only tell a small part of the story).

The much longer and much more complicated answer is use Temporal workflows.

Workflows are code execution patterns, not data patterns per se. That being said, what you store as data from each step of the process/ workflow is up to you. So, in other words, what progression tracking you want is what you set up for yourself. I hope that makes sense. 😊

surreal current
#

Yes, this is definitely a prime use-case for the Saga pattern, but not the "Saga pattern" implementation of @nestjs/cqrs, because you need persistence and not necessarily all the complexities of Observables.

stiff summit