- Understand Temporal Workflow and Activity concepts
- Learn how to register workflows and activities with a Worker
- Execute your first Temporal workflow
- Workflows orchestrate activities and contain business logic
- Must be deterministic and use Temporal SDK APIs
- Defined as exported async functions
- Activities handle external interactions (API calls, database operations, etc.)
- Can fail and be retried automatically
- Defined as regular async functions
- Polls task queues for work
- Executes workflow and activity code
- Must register workflow and activity implementations
- Complete the workflow implementation in
src/workflow.ts - Complete the activity implementation in
src/activities.ts - Complete the worker setup in
src/worker/index.ts - Run the workflow
- Start worker:
npx ts-node exercise1/src/worker/index.ts - Execute workflow:
npx ts-node exercise1/src/starter/index.ts - View workflow in Temporal UI: http://localhost:8233/namespaces/default/workflows
"Hello, Temporal!"