Step functions Flashcards
1
Q
What are clues in a question that point to using Step functions?
A
Workflow, entire process, tracked, managed, automatically
2
Q
What are the Service integration patterns for Step Functions?
A
- Request response (default) – Call a service and move to the next state immediately after receiving an HTTP response. (for quick API calls)
Run a job (.sync) – Call a service and have Step Functions wait for a job to complete. (for Batch jobs)
Wait for a callback with a task token (.waitForTaskToken) – Call a service with a task token and have Step Functions wait until the task token returns with a callback. (for long running response)
3
Q
How do you keep a task active?
A
- Configure how long a task can wait by setting TimeoutSeconds
- Periodically send a heartbeat from your Activity Worker using SendTaskHeartBeat