Check yourself
- Approved by
- Panaversity ·
5 min read
Each question is tagged with the section it tests. An outline answer follows each one.
- [34.1] What are the two kinds of durability, and how do you tell which one a job needs? A durable conversation, where the worker decides, and a durable process, which carries out the work. A job with several steps, long waits, its own retries or a life of its own is a process. A short question with an immediate answer stays in the conversation.
- [34.2] How do you choose the lightest safe mechanism for a piece of work? Go up the list only as far as you need: direct tool call, Pi Durable task, Lifecycle job, queue, Workflow. About 30 seconds is a rough guide. A Workflow earns its place when the job has steps, waits or a life of its own.
- [34.3] How does a web event reach the right place exactly once, and who owns each schedule's clock? The endpoint checks the signature, queues the event and returns fast; the consumer handles it later, once. The whole worker's schedule is a Cron Trigger, one conversation's timers are Lifecycle jobs, and a process waits with its own steps.
- [34.4] How do you spec a business process as steps, and which steps may call a model? As a numbered list of steps, each saved on its own with its own retry rule. In the reconciliation only step 5, the unclear matches, may call a model, with a budget.
- [34.5] Why is the moment between starting a process and recording it dangerous, and what are the four parts of a safe handoff? No transaction covers the worker, the process and the database, so a crash between them can start a second process or lose the first. The parts are a stable process ID, an outbox written with the assignment record, a consumer keyed by event ID, and an hourly check that reports differences.
- [34.6] At which two levels does a person approve, and what five checks make an approval count? One invoice inside a conversation, and a whole report inside a Workflow. Trusted code checks who approved, what exactly they approved, whether they may, whether the approval is still valid, and whether the worker is still allowed to act.
- [34.7] What does the per-worker coordinator hold, and which six guarantees must hold across all conversations? Budget reservations, locks and the stop flag. No overspending, no lost memory updates, no assignment processed twice, no conflicting actions together, one stop for everything, and one release per assignment.
- [34.8] What do Workflows not promise, and what must a step do when an outside call has no idempotency key? Exactly-once effects outside. A step can run again after it has acted. With no key, the step must not retry: it records "unknown", stops the run at that step, and escalates to a person who can check outside.
Flashcards
Chapter 34's words and its operating rules. Each answer is on the back of its card.
1 / 19
- Owner
- Panaversity