Engineering walkthrough package

You build a five-minute technical walkthrough and a rehearsal log that explain the backend's architecture, correctness guarantees, load limits, and rider assignment. The script gives the largest time budget to idempotency and outbox, and both recorded rehearsals must finish within five minutes.

Ticket

Build an engineering walkthrough package with two files: docs/walkthrough.md and docs/rehearsals.md. The walkthrough is a five-minute spoken explanation of the food-delivery backend, covering the problem, architecture, idempotency and outbox, load testing, and rider claims. It must also explain what breaks first at 10x traffic.

Your README and demo already present the project. The walkthrough turns that material into an interview narrative backed by your final k6 results and your capacity estimate from the capacity lesson. The rehearsal log records two actual practice runs so you can verify that you can explain the system within the time limit.

Acceptance criteria

  • docs/walkthrough.md contains exactly five timed sections, in this order: ## Problem (N s), ## Architecture (N s), ## Idempotency and outbox (N s), ## Load test (N s), and ## Rider claim (N s). Each section contains at least 20 words of spoken script.
  • The five timed budgets total between 240 and 300 seconds, inclusive. Idempotency and outbox has a strictly larger budget than each of the other four sections.
  • docs/walkthrough.md contains an untimed section with a heading containing 10x. Its content has at least 30 words and includes at least one number.
  • docs/rehearsals.md contains at least two rehearsal records matching - run N: MmSSs. Every matched duration is no more than 300 seconds.

Constraints

  • Keep the five timed sections in the required order. Do not add another timed section or give the 10x section a time budget.
  • Keep each timed section at 20 words or more and the 10x section at 30 words or more.
  • Use a total timed budget between 240 and 300 seconds, with Idempotency and outbox receiving more time than every other section.
  • Record rehearsal durations in minutes and exactly two digits for seconds. Use actual measurements, not estimated or invented timings.
  • Do not modify the provided tests.

Design direction

Keep the spoken script in docs/walkthrough.md and the measurements in docs/rehearsals.md. Use the required headings as the structure of the script. Write in the first person so you can deliver it naturally in an interview.

A useful starting allocation is 45 seconds for Problem, 45 for Architecture, 100 for Idempotency and outbox, 45 for Load test, and 50 for Rider claim. This totals 285 seconds and gives the correctness story the largest share. Adjust the wording to fit your speaking pace while keeping the tested budget requirements.

Give each section one job. Explain the product problem before describing the components. In Architecture, explain which responsibility belongs to Go, MySQL, Redis, and Redpanda. In Idempotency and outbox, explain the failure a retry can cause, why saving an event with an order matters, and how consumers handle repeated delivery. In Load test, report your actual final k6 measurements and the hardware used. In Rider claim, explain how Redis prevents multiple riders from claiming the same READY order. When several riders compete, Redis SET NX with an expiry lets exactly one win. The 30-second expiry releases the order if that rider never accepts it.

Keep the untimed 10x section separate from the five-minute script. Use your own estimate from the capacity lesson and your own final k6 numbers to explain what breaks first and what your safe operating limit is. In the lesson's example, API CPU during browse is the first bottleneck at 7.5 times today's traffic, and planning for 70 percent of that limit gives 5.25 times today's traffic. That means planning for no more than 70 percent of the measured limit, keeping 30 percent headroom. Treat those figures as the lesson's worked example, not measurements from your system.

For docs/rehearsals.md, record the first run after practising aloud with your script available. Record the second after practising without looking at your notes or script. Use a phone timer and write down the actual elapsed time after each run. You can add a short observation beneath each record, such as where you hesitated or which explanation needs work.

Use the rehearsals to practise answering follow-up questions without reading prepared sentences. Be ready to explain why MySQL owns transactional data, why publishing directly to Kafka inside an order transaction can lose or misrepresent events, what happens when multiple riders compete to claim the same READY order, and why a winning rider's unaccepted claim expires after 30 seconds.

How to check your work

Run the documentation tests from backend:

bash
cd backend
make test W=8B7

Read the first failing assertion before changing anything. It identifies the earliest contract mismatch, such as a missing timed section, an incorrect time allocation, an incomplete 10x explanation, or a rehearsal record outside the time limit.

After the automated tests pass, complete both manual checks:

  • Rehearse the complete walkthrough aloud with a timer and record the actual duration as run 1.
  • Rehearse again without looking at your notes or written script. Record the actual duration as run 2.
  • Practise answering the four interview follow-ups independently, without reading your walkthrough:
    • Why did you choose MySQL for the transactional parts of the system?
    • Why is an outbox necessary instead of publishing directly to Kafka inside an order transaction?
    • What happens when multiple riders race to claim the same READY order, and what happens if the winning rider never accepts it?
    • What breaks first at 10x traffic according to your capacity estimate, and what is the safe operating limit based on your final k6 numbers?
Finished Exercise 8.12?

Project documentation

5 items

  • 8.8Mermaid architecture diagramsnot completed
  • 8.9ADRs, postmortems and retrosnot completed
  • 8.10Project documentation packagenot completed
  • 8.11Two-minute project demo packagenot completed
  • 8.12Engineering walkthrough packagenot completed

Optional extensions

Up next · Module 5 · 3 items · about 2 h 45 min

Start module 5

Implementation

Run locally

Write the code in your editor inside zomato-prep, then work through this list.

  1. Create docs/walkthrough.md with the five timed sections in the required order.
  2. Give Idempotency and outbox the largest time allocation.
  3. Explain 10x traffic using your own capacity estimate and final k6 numbers.
  4. Record two actual rehearsal durations in docs/rehearsals.md.
  5. Complete both rehearsals within five minutes.
  6. Run make test W=8B7 successfully.

Commands

terminal
cd backend && make test W=8B7

Tests

  • TestW8B7_WalkthroughHasTheFiveTimedPartsInOrder in backend/internal/docs/docs_test.go
  • TestW8B7_WalkthroughFitsFiveMinutesAndSpendsTheMostOnIdempotency in backend/internal/docs/docs_test.go
  • TestW8B7_WalkthroughAnswersWhatBreaksFirstAtTenTimesTraffic in backend/internal/docs/docs_test.go
  • TestW8B7_TwoTimedRehearsalsAreLoggedUnderFiveMinutes in backend/internal/docs/docs_test.go