Deep-Dive Walkthrough of a Shipped Engineering Project

Medium · Behavioral & Leadership · Software Engineer · Technical Screen

Prompt

Select a substantial engineering initiative from your past work and guide me through its full lifecycle from inception to production. Cover the underlying business or user pain point, the exact responsibilities you carried personally, the system design and pivotal technical trade-offs, the technology stack and delivery schedule, and the quantified results after launch. Along the way, explain the hardest obstacles that surfaced mid-flight, how you partnered with adjacent disciplines or teams, and what changes you would make with the benefit of hindsight.

Scope & Expectations

  • Clear personal ownership: Distinguish the components and decisions you drove yourself from work handled by teammates.
  • Deliberate architectural choices: Explain why your chosen design beat plausible alternatives and what engineering costs it introduced.
  • Execution and cross-team alignment: Show how you sequenced delivery milestones, handled unexpected edge cases, and resolved cross-functional disagreements with evidence.
  • Quantified outcomes and reflection: Pair concrete before-and-after metrics with a candid engineering lesson you would apply earlier next time.

Step-by-step walkthrough

  1. Understand what the 8-part prompt is really testing

    This prompt lists eight explicit ingredients, and in a Technical Screen the interviewer treats them like a structured scorecard:

    1. Business pain point: Did you understand who was hurting and how much the failure cost the company before writing code?
    2. Personal ownership boundary: Where does "I designed and built" end and "my teammates delivered" begin?
    3. System design and trade-offs: Can you defend your core architecture against a simpler or faster alternative and state what your choice cost?
    4. Tech stack and delivery schedule: Can you scope, sequence, and ship a multi-month engineering effort safely?
    5. Quantified post-launch results: Do you track concrete before-and-after metrics rather than vague adjectives like "much faster"?
    6. Mid-flight engineering obstacles: How did you debug or re-architect an edge case you did not foresee on day one?
    7. Partnering across disciplines: When engineering and product or adjacent teams disagreed, did you resolve it with data rather than opinions?
    8. Hindsight reflection: Are you self-critical enough to spot sequencing or observability gaps in your own work?

    Plan a 3-minute spoken walkthrough (~350–390 words) that hits all eight points cleanly, leaving the rest of the segment for the interviewer to zoom into your database queries, failure modes, and trade-offs.

  2. Pick a project that maps naturally to marketplace challenges

    Choose a resume project where you owned a meaty slice of the design, faced at least one non-obvious concurrency or reliability edge case, and worked across team boundaries.

    When interviewing at StubHub—a well-known online marketplace where fans buy and resell tickets to live sports, concerts, and theater events—projects involving high-contention traffic spikes, strict inventory consistency (never selling the same seat twice), checkout hold timers, payments, or fraud/trust guardrails resonate immediately. You never need to pretend you worked in ticketing; simply highlight the shared engineering mechanics.

    Before the interview, write down a one-line consistency check on all your numbers (team size, duration, peak requests per second, baseline error rate, post-launch latency) so they never shift under follow-up questioning.

  3. Structure a crisp 3-minute end-to-end walkthrough

    Follow the exact sequence of the prompt so the interviewer can check off every rubric item effortlessly:

    1. Context (25 s)         User pain + business cost + baseline failure rate
    2. Specific role (20 s)   Team composition + exact pieces YOU designed and coded
    3. Architecture (60 s)    Core decision + rejected option + why it stays fast & correct
    4. Tools & timeline (15 s) Tech stack + duration + staged rollout milestones
    5. Impact (20 s)          Before-and-after metrics (oversells, p99 latency)
    6. Challenge (25 s)       Hardest mid-project surprise (e.g., slow bank verification) + fix
    7. Collaboration (20 s)   Product/engineering disagreement settled via experiment
    8. Reflection (15 s)      One concrete sequencing mistake and what it cost
    

    Key technical concepts used in the sample story, defined simply: - Source of truth: The single authoritative database whose record wins whenever caches or downstream copies disagree. - Conditional update: A SQL UPDATE with a WHERE guard (such as WHERE available > 0) that atomically checks a condition and modifies the row in one indivisible step. - p99 latency: The response time that 99% of requests finish within, capturing worst-case slowdowns during traffic bursts. - Shadow mode: Running a new service in parallel on live production events without affecting real users, so you can verify accuracy and latency before switching traffic over. - Reconciliation job: A periodic background check that compares records across separate tables or systems (such as stock counts, holds, and paid orders) to catch silent drift early.

  4. Full first-person sample answer

    Here is a complete first-person walkthrough (~380 words, roughly 3 minutes spoken) from a backend engineer who rebuilt an inventory reservation system for timed product drops:

    At my current company, an online retailer that sells limited-quantity items in timed drops, I led a five-month rebuild of our inventory reservation service last year.

    During major drops, up to 30,000 shoppers hit checkout in the first minute for 3,000 units. Our legacy flow decremented stock only after payment succeeded, so thousands of buyers entered card details for sold-out items, and concurrent payment callbacks caused 3.1% software oversells—each triggering a forced cancellation, refund fees, and support tickets.

    As tech lead alongside two backend engineers and a part-time SRE, I authored the design doc, built the reservation transaction core and expiry worker, and coordinated across product, payments, and customer support.

    Our core architectural decision was reserving stock at checkout entry inside PostgreSQL rather than in a Redis cache. Each reservation runs a short conditional update—decrementing available only when available > 0—in the same transaction that inserts a ten-minute HELD record, while Redis serves read-only product-page counts. Keeping zero external network calls inside that SQL transaction let one row handle 400 updates per second cleanly, and an upstream waiting room capped checkout admission to a load-tested 250 requests per second. We built the service in Kotlin, PostgreSQL, Redis, Kafka, and k6 for traffic-replay load tests, shipping shadow mode in month three and full production in month five.

    Over six months post-launch, software race-condition oversells dropped from 3.1% to zero—leaving under 0.08% cancellations from physical warehouse damage—while peak checkout p99 latency stayed under 750 milliseconds.

    Our hardest technical challenge hit buyers whose banks required 3D Secure verification near the end of their ten-minute hold: holds expired mid-payment and released their unit. Partnering with the payments team, we transitioned holds to an AUTHORIZING state with a short grace window while payment was in flight. When product pushed for five-minute holds instead of ten, we ran an alternating drop-level experiment and kept ten minutes after data showed five-minute holds hurt checkout conversion without improving sell-through.

    Next time, I would build our continuous stock-versus-orders reconciliation job before day one rather than after our first live drop—it caught two edge-case state bugs in its very first week.

  5. Sketch the architecture and SQL transaction for the deep dive

    In a Technical Screen, expect the interviewer to say "Walk me through the exact reservation transaction when two people click checkout on the last unit." Have both the system flow and the row-lock mechanics ready:

    Shopper (30k in 60s)
       |
       v
    [ Waiting Room ] ---> admits <= 250 checkouts/s (protects DB hot row)
       |
       v
    [ Checkout Service ] ---> short SQL tx ---> [ PostgreSQL: `stock` + `reservations` ]
       |                                                |                  |
       |                                                |                  +-> [ Expiry Worker (1 min) ]
       |                                                v                      releases expired HELD rows
       |                                        [ Outbox -> Kafka ] ---------> [ Redis Display Cache ]
       v
    [ Payments Service ] (idempotency_key = reservation_id; transitions HELD -> AUTHORIZING -> PAID)
    
    BEGIN;
    
    -- Conditional update: acquires row lock on this SKU and decrements ONLY if stock remains.
    UPDATE stock
       SET available = available - 1
     WHERE sku = :sku
       AND available > 0;
    
    -- If 0 rows were updated, ROLLBACK immediately and return "Sold Out".
    -- Otherwise (1 row updated), record the 10-minute hold in the same atomic transaction:
    INSERT INTO reservations (id, sku, user_id, status, expires_at)
    VALUES (:reservation_id, :sku, :user_id, 'HELD', :now + INTERVAL '10 minutes');
    
    COMMIT;
    

    Why two concurrent buyers never double-book the last item (available = 1): Under PostgreSQL's default READ COMMITTED isolation level, when Alice and Bob execute UPDATE stock simultaneously on the same sku, PostgreSQL's row-level lock forces Bob's statement to wait milliseconds until Alice's COMMIT finishes. Once Alice commits (available becomes 0), PostgreSQL re-evaluates Bob's WHERE available > 0 clause against the newly committed value, sees 0 > 0 is false, updates zero rows, and lets the application cleanly report "Sold Out".

    Architectural choice Option chosen Option rejected Price paid for the choice
    When to deduct stock Hold at checkout entry (10 min TTL) Deduct after payment completes Abandoned carts lock up inventory for up to 10 minutes
    Source of truth PostgreSQL conditional row update Redis atomic DECR counter Serializes writes per SKU (~400 tx/s ceiling per row)
    Traffic-burst protection Upstream waiting room (250 req/s) Pure autoscaling of app servers Shoppers see a brief queue screen during peak 60s drops
    Mid-payment hold expiry AUTHORIZING state pauses expiry Extending all holds to 20 minutes Extra state transition and stuck-payment timeout cleanup
  6. Handle technical and cross-functional follow-up probes

    • "What did you personally write versus the other two engineers?" "I wrote the architecture doc, the PostgreSQL reservation/state-machine transactions, and the expiry worker. One teammate built the token-based waiting room, and the other built the transactional outbox publisher and Redis cache consumers."
    • "Why didn't a single PostgreSQL row melt under 30,000 shoppers?" "Two reasons: first, the waiting room smoothed incoming bursts to 250 admissions per second; second, we kept zero network calls inside BEGIN...COMMIT, so each transaction held the row lock for under 2 milliseconds—allowing roughly 400 serialized updates per second on one SKU."
    • "Why not use Redis DECR for speed and sync to PostgreSQL asynchronously?" "Because Redis becomes a second source of truth: if a Redis node fails over before replicating to a replica, or an async worker drops a message, the cache and ledger disagree and you oversell scarce inventory. Since one Postgres row handled our admitted rate, avoiding dual-store inconsistency won."
    • "What if the expiry worker runs at the exact millisecond a buyer clicks Pay?" "Both transitions use conditional updates on reservations.status: payment runs UPDATE reservations SET status = 'AUTHORIZING' WHERE id = :id AND status = 'HELD' AND expires_at > NOW(), while expiry updates WHERE status = 'HELD' AND expires_at <= NOW(). Row locking guarantees exactly one update affects 1 row and the loser sees 0 rows updated."
    • "Why alternate whole drops for the 5-minute vs. 10-minute hold test instead of a 50/50 user A/B split?" "In a single scarce drop, all shoppers compete for the same 3,000 units (marketplace interference): stock released early from 5-minute users would immediately get bought by 10-minute users in the same drop, biasing conversion metrics. Matching comparable drops avoided cross-group cannibalization."
    • "What happens if the expiry background worker crashes during a drop?" "Unpaid holds stay in HELD past their timestamp, meaning we temporarily hold back units (failing safe against overselling) rather than double-selling. An alert on COUNT(*) WHERE status = 'HELD' AND expires_at < NOW() - INTERVAL '2 minutes' pages on-call immediately."

Intuition & how it works

Think of guiding an interviewer through a shipped engineering initiative like giving a structural kitchen tour to a restaurant owner, not reading the dinner menu out loud. Anyone can read the menu ("We used Kotlin, PostgreSQL, Redis, and Kafka"), whereas the person who actually redesigned the kitchen explains why the prep counter had to sit next to the grill, what bottleneck caused a 40-minute ticket backup on opening Friday, and how changing one workflow cut order errors to zero.

Why does the intuitive "tell the story chronologically" approach fail in technical screens? First, narrating months of planning meetings eats up your clock before you ever reach a hard engineering decision, leaving zero time for deep architectural Q&A. Second, speaking entirely in "we" hides whether you designed the core transaction or just attended team stand-ups. Third, naming technologies without explaining what simpler or faster alternative you rejected makes your architecture sound accidental rather than deliberate.

Here is a concrete 4-event trace of how two shoppers (Alice and Bob) race for the very last unit (available = 1) in the sample project—showing how each layer of the answer demonstrates engineering ownership:

Event 1 — Spike Protection (Waiting Room):
  30,000 shoppers arrive in 60s -> Waiting room admits 250/s so Postgres never saturates.

Event 2 — Atomic Race on the Last Unit (`available = 1`):
  t = 10.001s: Alice runs `UPDATE stock SET available = available - 1 WHERE sku='X' AND available > 0`
               -> acquires row lock, decrements to 0, inserts 10-min 'HELD' row, COMMITs.
  t = 10.002s: Bob runs the same UPDATE -> waits 1.5 ms for Alice's lock, re-checks `0 > 0` (false),
               updates 0 rows -> immediately sees a clean "Sold Out" screen.

Event 3 — Payment Boundary Edge Case:
  t = 19m 50s: Alice triggers slow bank verification -> status moves `HELD -> AUTHORIZING`,
               pausing the 10-minute expiry worker so her reserved unit isn't given away mid-charge.

Event 4 — Data-Driven Trade-Off:
  PM wants 5-min holds; engineer runs drop-by-drop A/B comparison -> 10-min holds win on conversion.

Key technical terms used in this walkthrough: - Conditional update: A single SQL UPDATE ... WHERE <condition> statement that checks an invariant (like available > 0) and modifies data atomically so concurrent requests cannot read stale values. - Row-level lock: A database mechanism that lets only one transaction modify a specific row at a time, forcing concurrent updates on that same row to wait in line until the active transaction commits or rolls back. - Source of truth: The single authoritative storage system (here, PostgreSQL) whose data defines reality whenever caches or downstream copies lag behind. - Idempotency key: A unique identifier (here, reservation_id) sent with every payment call so retrying a timed-out request never charges the buyer's card twice. - Shadow mode: Feeding copies of live production traffic into a new service without letting its outputs affect users, verifying correctness and latency safely before cutover. - p99 latency: The 99th-percentile response time—meaning 99 out of 100 requests complete faster than this threshold, exposing worst-case queue delays under load. - Marketplace interference: Bias in an A/B test when treatment and control users compete for the same limited inventory pool, causing one group's behavior to alter stock availability for the other.

What interviewers look for

  • Complete prompt coverage in ~3 minutes: Hitting context, personal role, architecture, stack/timeline, quantified outcomes, surprise challenges, cross-functional collaboration, and one honest retrospective lesson without rambling.
  • Sharp "I" versus "we" boundaries: Explicitly naming the components you designed and coded alongside what your teammates owned.
  • Defensible trade-offs: Explaining why PostgreSQL beat Redis for the reservation ledger (consistency over raw speed) and stating the exact cost paid (serialized row writes requiring an upstream waiting room).
  • Concurrency and failure literacy: Knowing what happens when two threads hit the last unit simultaneously, when a worker crashes, or when payment takes longer than a hold timer.
  • Consistent, credible metrics: Baseline vs. post-launch numbers (3.1% software oversells down to 0%, p99 checkout latency under 750 ms) whose math fits together cleanly.
  • Evidence-based collaboration: Resolving product or cross-team disagreements with a well-designed experiment rather than escalating opinions.

Common mistakes

  • Describing the product instead of your engineering decisions: Explaining user screens for four minutes without ever showing how data, locks, or failure recovery actually work under the hood.
  • Resume-driven buzzword lists: Saying "We used Kafka, Redis, and microservices" without explaining what problem each solved or what simpler design failed.
  • Inconsistent numbers under questioning: Claiming "zero oversells" in one sentence and "0.1% oversells" two minutes later without explaining the difference between software race conditions and physical warehouse shrinkage.
  • Ignoring failure modes: Designing only for the happy path and freezing when asked what happens if Redis restarts, a webhook arrives twice, or a background cron job stalls.
  • Fake retrospectives: Answering hindsight reflection questions with humblebrags ("I worked too hard") or vague clichés ("Communicate earlier") instead of a concrete architectural or sequencing miss.

Follow-up questions

  • If peak demand jumped by an order of magnitude, what would become the first bottleneck in your architecture and how would you redesign it? In our checkout reservation flow, row-level locking serializes every update on a single SKU row in PostgreSQL, capping throughput around several hundred transactions per second and making that hot row the first 10x bottleneck (for instance, at 3,000 reservations per second). To scale 10x while staying in PostgreSQL, split that item's inventory across N sub-bucket rows (such as 16 rows each holding 1/16 of available stock), pick a random bucket on checkout, and scan remaining buckets only when a chosen bucket hits zero. That spreads row-lock contention by 16x at the modest cost of probing multiple rows for the final few units.
  • How did you migrate live production traffic from the old workflow to the new system without downtime or data inconsistency? First, we ran the new reservation service in shadow mode on live drops, consuming checkout and payment events passively and comparing end-of-drop stock totals against the legacy payment-time deduction ledger. Next, we used a per-drop feature flag so any single drop used either the legacy workflow or new checkout holds—never mixing both deduction rules on the same SKU simultaneously. Starting with small, low-risk drops let us validate peak latency and instant rollback flags cleanly before enabling flagship releases.
  • How would you adapt your design if the underlying inventory were contiguous event seats sold by independent resellers? The core pattern—holding inventory at checkout entry via an atomic conditional update with a strict expiration timer—transfers directly to a ticketing marketplace like StubHub, with two domain-specific extensions. First, ticket buyers usually need contiguous seats from a specific seller listing (such as Seats 4–5 in Row G, constrained not to leave an unsellable single seat behind), so the conditional check locks the listing row and validates seat-split rules atomically. Second, because an independent reseller might delist or reprice tickets elsewhere mid-checkout, the hold and payment capture steps must verify listing liveness and lock seller cancellation while buyer authorization is in flight.

Follow-up questions

Similar questions

More StubHub interview questions

All 9 StubHub questions →