Durable Order Fulfilment with Temporal: Sagas, Updates, Versioning and Evidence of Recovery

Take the role of the backend engineer who moves a retailer's order fulfilment from cron jobs and queues to a Temporal workflow: a self-hosted Temporal Service from a configuration you write, a Go workflow with activities, retries and saga compensation, idempotency keys that make effects exactly-once, updates for cancel and review, a version-2 rollout with orders in flight, child workflows and schedules, worker tuning and fault injection, each proven by a drill whose measurement goes into a resilience report.

Backend Engineer. Advanced.

What you will build and explain

  • Run a self-hosted Temporal Service from an authored configuration (server, PostgreSQL persistence and visibility, schema setup, UI, CLI), create a namespace with retention and custom search attributes, and explain what each service process does.
  • Model a multi-step business process as a Temporal workflow with activities, retry policies, timeouts and heartbeats; implement saga compensation and idempotency keys, and prove with drills that a killed worker charges once and a permanent failure undoes every step.
  • Add customer and operator interactions as updates with validators, a review timer and queries; show the race between a cancel and the step it must precede.
  • Change a workflow with executions in flight by patching, prove compatibility by replaying recorded histories in CI, and explain when worker versioning is the better tool.
  • Use child workflows, continue-as-new and schedules with overlap policies for long-running tracking and recurring reconciliation.
  • Read the SDK and server metrics in Prometheus and Grafana, tune worker slots and pollers against schedule-to-start latency below saturation, and inject latency, timeouts and resets with Toxiproxy to read what the policies do.
  • Produce a resilience report from the drills' evidence files and state what each measurement proves and what it does not.

Before you begin

  • Go at the level of a working service (functions, structs, interfaces, errors, goroutines, channels); a terminal, Git, make, curl and jq; Docker and Docker Compose; what an HTTP API, a database transaction, a message queue and a cron job are. Temporal, durable execution, sagas, idempotency, versioning and worker tuning are taught
  • A Linux or macOS machine with Docker Engine 24 or later and Compose v2 (or Docker Desktop 4.30 or later), 4 CPU cores, 8 GB of memory with 6 GB free for containers, 15 GB of free disk; about 1.5 GB of one-time image downloads and the Go modules at build time; no Go toolchain required on the host
  • No cloud account or paid service: the Temporal Service, PostgreSQL, the Go services, Toxiproxy, Prometheus and Grafana all run in containers on your own machine with synthetic data

Who this is for

For backend engineers who write Go at the level of a working service and know HTTP APIs, transactions, queues and cron jobs, and want to run a business process as a durable Temporal workflow: retries and timeouts as policy, sagas and idempotency keys, updates, versioning with orders in flight, schedules, worker tuning and fault injection, each proven by a drill.

Curriculum

Learning topics (17)
  1. Understand the incidents and prepare one machine with Docker

    This project puts you on the platform team of Brindlewick Outfitters, a fictional outdoor-gear retailer whose order fulfilment has produced five incidents in a quarter, and whose platform team has decided to rebuild it as a durable workflow on Temporal. You will not deploy anything to a cloud account. You will build the fulfilment service in Go, run the Temporal Service it depends on from a configuration you can read, prove each promise the platform makes with a drill that wr

  2. Follow one order through the workflow, and one failure through its recovery

    Brindlewick's platform team chose one answer to five incidents: fulfilment becomes a durable workflow on Temporal, and every promise that choice makes is checked by a drill. This page explains how the lab is built around that answer, how one order moves through it, how one failure is turned into a recovery the team can read afterwards, and where the design stops short of production. The eight diagrams are the same ones the lessons use; this page is the connected story.

  3. Workflows, activities, task queues and history: what the Temporal Service persists and what it replays

    Every incident in Brindlewick's log comes from one fact: the progress of an order lived in the process that was fulfilling it, and processes die. This lesson is about the fact that replaces it. By the end you can say what a workflow, an activity, a task queue, a worker and the Service are, read an order's event history and say which line of Go produced each event, and explain why the code you write for a workflow must be deterministic while the code you write for an activity

  4. Call systems that fail: retry policies, timeouts and heartbeats as code

    The carrier outage in Brindlewick's log cost 2,300 orders a manual replay because the consumer had one answer to a failed call: dead-letter it. This lesson is about having better answers and writing none of them in the business code. By the end you can read the activity options of each step, say what each of the three timeouts bounds, explain why the carrier booking heartbeats and the others do not, and tell a failure that should be retried from one that should not.

  5. Undo what cannot be rolled back: compensation, and keys that make a retry safe

    Two of Brindlewick's incidents are the same problem seen from two sides. A card authorised twice is a retry that was not safe; 2,300 orders half-done is a failure that was not undone. There is no transaction across a payment provider, a stock system and a carrier, so the lab does what systems without a shared transaction do: it makes every effect safe to repeat, and it undoes effects in reverse when a later step fails for good. By the end you can read the saga in the workflow

  6. Let people into the process: updates with validators, a review timer and the cancel race

    An order is not a batch job. A customer changes their mind, a fraud analyst approves or declines, and support asks where it is. Each of those is a message to a running execution, and Temporal has three kinds. By the end you can say which kind fits which interaction, read the validator and handler of the lab's cancel update, explain why the review wait holds no worker, and reason about what happens when a cancel and the step it must precede arrive at the same time.

  7. Change the process while orders are in flight: patches, replay tests and deployment versions

    The two-week migration in Brindlewick's log was the cost of changing a process whose progress lived in a table: every in-flight order had to be moved to the new shape. Durable execution makes the opposite mistake possible: change the code, and the in-flight orders break, because their histories no longer match it. This lesson is about changing the code without breaking them. By the end you can explain what a non-determinism error is, read the lab's patch, record a history and

  8. Long-running and recurring work: child workflows, continue-as-new and a schedule with an overlap policy

    Two parts of fulfilment do not fit in one execution. Following a parcel means polling a carrier for days after the customer's order is, for every purpose the customer cares about, finished. And the nightly reconciliation that ran twice one night and not at all the next week is not an order at all: it is a recurring job. This lesson gives each its Temporal shape. By the end you can explain what a child workflow is and what the abandon policy does, say why a polling loop must c

  9. Test a day of business logic in a second: the time-skipping environment, mocks and replays

    A fifteen-minute review wait, a saga with three compensations, a child that continues as new after twenty polls: none of that can be tested by running it, and none of it needs to be. By the end you can write a workflow test in the SDK's test environment with mocked activities, deliver an update to it, make a timer fire without waiting, replay a recorded history, and run the whole suite in a container without a Go installation or a Temporal Service.

  10. Run the Service you depend on: frontend, history, matching, persistence, visibility and schema

    Everything in the previous lessons depends on one component holding the histories, the task queues and the timers. This lesson opens it. By the end you can name the four services inside a Temporal Server process and what each does when a worker dies or a client asks a question, read the lab's configuration file section by section, explain why the schema is applied by a separate job and what the namespace and its search attributes are, and say what the lab's single-process dep

  11. Read the metrics that matter and tune workers below saturation

    A worker is a pool of slots fed by pollers, and the question an operator asks is whether the pool is big enough. This lesson is about the metric that answers it, where the SDK and the Service publish their numbers, and how the lab measures a configuration change so that the measurement means something. By the end you can read the fourteen panels of the provisioned dashboard, explain slots, pollers and the sticky cache, and run the tuning drill knowing why it ramps first.

  12. Break a dependency on purpose: latency, timeouts and resets through Toxiproxy

    Lesson 4 described what the retry policy and the timeouts do. This lesson makes them do it, where you can watch. By the end you can add and remove a toxic with Toxiproxy's API, predict what each of the three fault shapes does to an activity attempt, read the attempt count and last failure of a pending activity, and explain why a proxy is the right place to inject the faults.

  13. Turn drills into a document the incident review can check

    The platform team promised the incident review that the new fulfilment would not repeat the five incidents. A promise is not evidence. This lesson is about the document that is: one section per drill, each a measurement with its limits, generated from files that anyone can open. By the end you can read an evidence file, say how a verdict is computed, explain why the report refuses rather than omits, and present a limits section as the strongest part of the document.

  14. Bring up the lab, run every drill and read the results

    This runbook takes the lab from an empty machine with Docker to a resilience report in ten milestones, then cleanup removes everything it created. Every command runs on your own machine; nothing here touches a cloud account or bills anything. Each milestone says what exists before it, what it creates, where the command runs, what a good result looks like and what to check when yours differs. Output shown here is an example of the shape to expect, not a recording of your run:

  15. Diagnose stuck workflows, failing activities and a Service that will not start

    A durable workflow fails differently from a service: almost nothing crashes, and almost everything waits. An order that has not moved for ten minutes is the symptom of a worker that is not polling, a dependency that is not answering, a timer that has not fired yet, a code change that broke the replay, or an update that nobody sent, and each leaves a different trace. The scenarios are written as an interviewer would pose them: a symptom, what was observed, and "what would you

  16. Explain durable execution and defend every design choice

    A backend engineer who has built this lab can answer two kinds of question: what a mechanism does (a history, a replay, an idempotency key, a patch, a schedule's overlap policy) and why a design was chosen over its alternatives with what evidence. The twenty questions are written for both, with follow-ups that change a constraint.

  17. Remove the lab and verify nothing is left

    The lab is twelve Compose containers, two Docker volumes, one Docker network, the images they run from, and the files it wrote into your checkout. There is no cloud resource and nothing that bills. This page removes the containers, volumes and network completely, says which files it keeps and why, and proves the result with a check that lists nothing when nothing with the lab's labels remains.

Practical build steps (11)
  1. Check the machine, fetch the CLI and generate the lab's secrets

    Nothing runs yet. This milestone makes sure the machine can run the lab and writes the one file every later command reads.

  2. Start the Temporal Service, its database, schema, UI and metrics

    One command brings up the whole stack. This milestone reads the platform half of it: the database, the schema job, the Service, the namespace job, the UI and the metrics.

  3. Deploy the workers and the simulators and place the first orders

    The services started with the platform; this milestone proves the chain works end to end and reads what the Service recorded about one order.

  4. Kill a worker mid-saga and force a compensation

    Two drills, two promises from the incident log: a card is charged once even when the worker dies mid-step, and a step that fails for good undoes the steps before it.

  5. Cancel, review and query running orders

    People enter the process in two ways and read it in one. This milestone sends a customer's cancel and an operator's review as updates, and reads the stage with a query.

  6. Deploy version 2 with orders in flight and replay the old histories

    The change the incident log said took two weeks: a new step in the process, deployed while orders are in flight, with proof of compatibility that runs without a Temporal Service.

  7. Follow shipments with a child workflow and reconcile on a schedule

    Two kinds of work that do not fit one execution: a parcel followed for days, and a nightly job that must run once.

  8. Degrade the payment provider through Toxiproxy and read the retries

    Four shapes of a bad dependency and one dead worker, with nothing in the workflow code written for any of them.

  9. Read the dashboard and tune the workers below saturation

    The metric that sizes a worker, and a measured comparison of two configurations under the same load.

  10. Assemble the resilience report and provoke its refusals

    Eight evidence files become the document the incident review reads, and you make sure the generator cannot be made to lie.

  11. Remove the lab and verify nothing is left

    The lab is twelve containers, two volumes, one network and some files. This milestone removes the first three and proves it.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

There is no cloud cost: every component runs in containers on your own machine, and the only downloads are pinned container images and the Go modules at build time (about 1.5 GB). Electricity is the running cost. If you choose to run the lab on a rented virtual machine you pay that provider's hourly price and must stop the machine afterwards. The retailer, its payment provider, its carrier, its orders and its card numbers are fictional and synthetic. This is a learning reference, not a hosted service, a production deployment or a payments system.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components, such as Temporal, the Temporal Go SDK, PostgreSQL, Toxiproxy, Prometheus, Grafana and Go, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy