Skip to main content

Concepts

  • Workflow - manages all orchestration activities
  • Activity - single well defined action, should be retryable
  • Idempotency Keys
  • Deterministic constraints
    • Replayability
    • Event sourcing
  • Workers

Worker​

A Worker

  • can execute only code that has been registered to it.
  • knows which piece of code to execute from Tasks that it gets from the Task Queue.
  • listens only to the Task Queue that it is registered to.

Sample​

  • Workflow: Transfer Money
    • Activity: Withdraw Money
    • Activity: Deposit Money
      • if fail refund