Technical Project Deep Dive and Toughest Implementation Problem
Medium · Behavioral & Leadership · Software Engineer · Onsite
Prompt
Pick a real software project from your own background — from full-time industry work, an internship, university coursework, or an independent build — and walk through what the system accomplished, which pieces you personally built, and the single toughest engineering problem you solved. Expect the interviewer to push past high-level diagrams and probe code-level details, state invariants, and rejected designs.
Before diving deep, briefly check with your interviewer whether they want a quick architectural overview first or an immediate deep dive into the core technical hurdle, which subsystem or data flow they want to inspect closely, and whether to center the discussion on an architectural trade-off, a live debugging investigation, or an end-to-end feature build.
Scope & Expectations
- Draw an unmistakable boundary between your individual design and implementation work and the pieces handled by teammates, third-party libraries, or platform teams.
- Walk thoroughly through one nontrivial technical obstacle: how the symptom or risk surfaced, which alternative fixes you evaluated and ruled out, what change you shipped, and why it worked.
- Cite only outcomes and metrics you can substantiate directly; if you did not run formal speed or throughput benchmarks, present the automated tests, replay checks, or production correctness evidence you did gather.
Step-by-step walkthrough
What this project deep dive is testing
An onsite project deep dive is not a resume tour — the overview is just the doorway. Once you sketch the system, a senior interviewer will pick one component and keep asking "how did that work under the hood?" and "why didn't you do X instead?" until they find the edge of what you personally built. They are evaluating four things:
- Clear personal ownership. You separate what you designed and coded from what teammates built and what existing infrastructure already handled.
- Depth on one genuine engineering problem. You walk cleanly from observable symptom to root cause, rejected fixes, code-level solution, and proof.
- Defensible trade-offs. The alternatives you rejected were plausible ideas, and you can explain why they fell short using measurements or concrete constraints.
- Calibrated honesty about evidence. You report only metrics and checks you actually collected, openly stating what you did not benchmark instead of guessing.
Millennium is a global multi-strategy investment firm whose engineers build trading, risk, and market-data platforms where silent data errors carry immediate financial risk. A story centered on data correctness under messy real-world conditions — such as duplicate messages, out-of-order events, or partial restarts — fits that engineering bar naturally.
Pick the right project and draw a crisp ownership line
Choose your project by the hardest technical problem you personally solved, not by how famous the overall product sounds. Owning the trickiest concurrency or correctness bug on a small internal service gives a far stronger interview than owning a routine configuration screen on a flagship platform. Check your chosen problem against five criteria:
- You drove the investigation and code. You can say "I" accurately for the diagnosis, design choice, and tests.
- It started from concrete evidence, such as a failing check, corrupted output, latency spike, or crash log.
- You seriously weighed at least two other fixes and rejected them for specific technical or schedule reasons.
- You verified the fix rigorously with an automated test, replay harness, or production metric.
- You remember the code-level mechanics: key schemas, data structures, invariants, and failure modes.
Align briefly with your interviewer in the first 30 seconds: offer "a 30-second architecture context followed by the hardest correctness bug I solved," and once you sketch the pipeline, ask whether they want to zoom into the data flow, concurrency assumptions, or test harness first.
Structure the walkthrough from symptom to proof
Keep your initial spoken walkthrough to about two and a half minutes so the interviewer has plenty of room to probe:
Context (~20 s) -> What the service did, who relied on it, and rough scale Ownership (~15 s) -> Exact line: mine vs. teammates vs. shared platform Symptom (~20 s) -> What broke in production and how we detected it Diagnosis (~30 s) -> Log or measurement evidence proving the root cause Alternatives (~35 s) -> 2 rejected approaches and the measured/schedule cost of each Solution (~25 s) -> The core state rule you implemented Verification (~25 s) -> Automated test + live result + honest boundary of claimsBefore reading the sample answer below, here are six domain and distributed-systems terms it uses in plain English:
- Position: the net quantity of a financial instrument an account holds right now (for example,
+100shares of AAPL after buying 100 shares). - Trade fill: an event confirming that a buy or sell order actually executed on a market venue.
- Reconciliation: an automated check comparing two independent record systems (such as live risk dashboards vs. official accounting books) to catch discrepancies.
- Kafka: a distributed streaming log that passes ordered queues of events between services; consumer lag measures how many seconds behind real-time traffic a reader is running.
- Clock skew: small differences between the wall-clock times on two separate servers, which can make timestamps disagree on which event happened first.
- Idempotent: safe to process the exact same event multiple times without changing the final result after the first run.
- Position: the net quantity of a financial instrument an account holds right now (for example,
Full sample answer
Here is a realistic first-person walkthrough (~360 words, roughly two and a half minutes spoken) from a backend engineer interviewing for a Software Engineer role at Millennium. Replace the domain, numbers, and bug with your own work.
At my previous role at a mid-size brokerage, I was one of three engineers building an intraday position service. It read live trade-fill events from Kafka and maintained running positions per account and stock symbol for the risk team's real-time dashboards. I personally owned the event consumer — the state-update logic, database schema, and test suite — while a teammate built the read API and our platform team ran Kafka and Postgres.
The hardest engineering problem was silent position drift. Every night, an automated reconciliation job compared our end-of-day positions against official back-office accounting books, and roughly 15 account-symbol pairs mismatched daily. Digging into trade logs showed two causes. First, trade fills and trade cancellations came from two separate upstream microservices; when a fill service retried a slow network send, its cancellation sometimes arrived in Kafka before the original fill. Second, whenever our consumer restarted during deploys, Kafka redelivered a small batch of already-processed events, double-counting those shares.
I evaluated three fixes. Asking the upstream teams to sequence cancellations strictly after fill acknowledgments would fix ordering at the source, but their roadmap was booked for a quarter and it wouldn't solve restart redeliveries. Buffering events for two seconds and sorting by upstream timestamp looked tempting, until I measured up to 300 milliseconds of clock skew between the two upstream hosts — enough to sort sub-second cancels wrongly. Instead, I used the monotonic version number upstream already attached to each
trade_id. I stored the latest seen version and signed share quantity per trade, ignored any incoming event with an older or equal version, and updated the account position bynew_qty - stored_qtyinside one database transaction. That made updates both idempotent and order-independent.To verify it, I built a replay harness using a full recorded trading day, running 200 seeded random shuffles in continuous integration with 5% duplicate events injected, asserting exact match against reference end-of-day totals. Over the six weeks after deployment, nightly mismatches dropped from 15 per day to 2 total — both traced to upstream back-office manual entries. I didn't run a dedicated max-throughput benchmark; what I can support is that consumer lag stayed under our one-second paging threshold throughout market open.
Walk through the data flow and code-level logic
Expect the interviewer to ask you to whiteboard the data flow and write the exact state-transition rule. Keep both crisp and easy to follow:
fill service cancel/correction service (2 separate upstream hosts) \ / v v Kafka topic (partitioned by account ID) | v position consumer [MY COMPONENT] read (trade_id, version, signed_qty) inside 1 DB transaction: if version > stored_version: position += (signed_qty - stored_qty) save (version, signed_qty) | v Postgres: trade_state (trade_id -> version, signed_qty) positions (account, symbol -> net_qty) | v query API [TEAMMATE] ---> risk dashboardsTrace a tricky 3-event sequence (a buy of
+100shares that gets cancelled immediately, arriving out of order and followed by a duplicate) to see why the delta rule always converges:Arrival Event received stored before Check Position delta Position after ------- ------------------------------- ------------- -------- -------------- -------------- 1st Cancel: T1, v2, signed_qty = 0 (-1, 0) 2 > -1 0 - 0 = 0 0 (stored: v2, 0) 2nd Fill: T1, v1, signed_qty = 100 (2, 0) 1 <= 2 ignored! 0 (stored: v2, 0) 3rd Cancel: T1, v2, signed_qty = 0 (2, 0) 2 <= 2 ignored! 0 (stored: v2, 0)And here is the clean Python sketch of that rule:
def apply_event(trade_state: dict, positions: dict, event: dict) -> None: """Apply one fill, correction, or cancel safely across duplicates and reorderings.""" trade_id = event["trade_id"] new_version = event["version"] # signed_qty: +shares for buy, -shares for sell, 0 for full cancel new_qty = event["signed_qty"] # Default (-1, 0) means we have never seen any version of this trade yet old_version, old_qty = trade_state.get(trade_id, (-1, 0)) if new_version <= old_version: # Duplicate delivery or stale out-of-order event; newer state is already applied return position_key = (event["account"], event["instrument"]) current_pos = positions.get(position_key, 0) # Apply only the incremental difference from the last applied version of this trade positions[position_key] = current_pos + (new_qty - old_qty) trade_state[trade_id] = (new_version, new_qty)Be ready to name the four engineering assumptions that keep this logic sound in production:
- Single-writer per trade via partitioning: Both upstream services partition messages by
accountusing the exact same hash algorithm (for example, configuring C++librdkafkato match Java'smurmur2hash rather than its legacycrc32default), so two versions ofT1never race across two worker threads at once. - Strictly increasing versions per
trade_id: Every modification to a given trade carries a higher integerversionthan earlier states of that same trade. - Account and symbol stay fixed per
trade_id: If a correction could move an existing trade to a different account,trade_statewould also need to store(old_account, old_instrument)so-old_qtyis subtracted from the previous account before+new_qtyis added to the new one. - Atomic database transaction: Updating
trade_stateandpositionshappens inside one database transaction (an all-or-nothing commit), preventing a mid-flight crash from updating one table without the other.
- Single-writer per trade via partitioning: Both upstream services partition messages by
How to handle deep-dive probes
- "Why didn't Kafka's built-in 'exactly-once' mode solve this automatically?" Kafka's transactional guarantees cover stream-to-stream pipelines inside Kafka itself. Because our consumer wrote into an external Postgres database, restarts could still replay messages unless database writes were idempotent — and Kafka transactions still wouldn't reorder a cancellation published upstream before its fill.
- "Why didn't Kafka's partition ordering keep fills ahead of cancels?" A Kafka partition preserves the order messages arrive at the broker, not the order events happened in business logic across two separate upstream servers. When the fill service stalled on a network retry, the cancel service genuinely wrote to Kafka first.
- "How did you prove your diagnosis before writing code?" I pulled all 15 mismatched pairs from one day's reconciliation report, queried raw Kafka offsets by
trade_id, and categorized every single mismatch: 11 were higher-version cancels/amendments sitting at earlier offsets than version 1, and 4 followed a midday consumer deploy. - "What would you change if you built this service from scratch today?" I would build the shuffled, duplicate-injecting replay test during week one rather than waiting for nightly back-office reconciliation to surface ordering bugs in production.
Intuition & how it works
Think of an onsite project deep dive like defending a laboratory experiment in front of fellow scientists rather than pitching a slide deck. Anyone can memorize a high-level diagram of boxes and arrows, so experienced interviewers move quickly past the overview and zoom into one mechanism: what broke, how you proved why it broke, which two fixes failed on the workbench, and how your test proved the winning design held up.
The naive approach fails because candidates spend five minutes touring ten microservices while saying "we built" for every box, leaving the interviewer unable to tell whether they designed the core logic or just watched from nearby. Others invent dramatic claims like "cut latency by 90%" without remembering how it was measured, which unravels on the very first follow-up question. Choosing a prestigious project where your own task was routine also backfires the moment the interviewer asks to trace an edge case at code level.
Walk through how a tight, evidence-driven deep dive works on a concrete trading-position bug:
- Symptom & ownership: You own the event consumer feeding live risk positions; nightly reconciliation (an automated check comparing live positions against official accounting books) flags ~15 wrong stock totals per day.
- Measured diagnosis: Raw message logs show trade cancellations arriving before delayed original fills from a separate server, while consumer restarts replay duplicate events. Sorting by server timestamps fails because you measure up to 300 ms of clock skew (tiny clock drift between separate machines).
- Versioned delta fix: Per
trade_id, you store(old_version, old_qty)inside Postgres. Inside one database transaction (an all-or-nothing save across tables), you ignore any event withversion <= old_versionand otherwise addnew_qty - old_qtyto the position. - Mini-trace proof: If
Cancel (v2, qty=0)arrives first, the position changes by0 - 0 = 0and stores(v2, 0); whenFill (v1, qty=100)arrives late,1 <= 2drops it cleanly, and 200 shuffled replay runs verify zero drift.
What interviewers look for
- An unmistakable ownership boundary stated in two sentences: what you designed and coded, what teammates owned, and what shared infrastructure provided.
- End-to-end depth on a single hard problem, moving logically from production symptom to log/metric diagnosis, rejected designs, state invariants, and verification.
- Defensible rejected alternatives, showing concrete schedule or technical reasons (such as measured 300 ms clock skew) rather than knocking down strawman ideas.
- Verification matched to the failure mode, such as a deterministic replay test with seeded random shuffles and injected duplicates alongside production monitoring after rollout.
- Epistemic honesty about metrics, clearly distinguishing what you measured directly (mismatch counts and alert thresholds) from what you did not benchmark (peak synthetic throughput).
- Fluency at data-flow and code level, able to write the 15-line core update rule and state every assumption that could break it.
Common mistakes
- Staying at 30,000-foot architecture level for five minutes without ever explaining one gnarly bug, bottleneck, or trade-off in mechanical detail.
- Hiding behind "we" throughout the story, forcing the interviewer to interrupt repeatedly just to learn which lines of code were yours.
- Quoting unverified numbers ("10x throughput", "five nines availability") that collapse when asked what tool or baseline produced them.
- Picking a massive org-wide initiative where your slice was trivial instead of a smaller component where you personally solved the hardest engineering knot.
- Ignoring hidden invariants, such as forgetting what happens if two threads process the same trade simultaneously or if the process crashes mid-write.
- Treating "we deployed it and nobody complained" as verification instead of building an automated test that reproduces the failure before the fix and passes afterward.
Follow-up questions
- If traffic patterns or data volume shifted dramatically, which underlying invariant of your design would break down first? Under a 20x jump in trade volume, executing one database transaction per individual event would hit Postgres commit-rate limits first; batching several hundred events per transaction fixes that safely as long as the Kafka read position is committed only after the database commit succeeds. Structurally, partitioning by
accountmeans a single ultra-high-frequency institutional account could overload one partition's single consumer thread, and if upstream routing changed so fills and cancels used different partition hashes, two workers could processv1andv2concurrently — requiring a row lock or an atomic compare-and-set update (UPDATE ... WHERE version < new_version). Finally, if business rules shifted so a correction could move an existingtrade_idto a new account,trade_statewould also need to store(old_account, old_instrument)so the old account's shares are reversed cleanly. - What concrete artifacts and setup would a teammate need to replicate the original failure or independently validate your fix? They would need three concrete artifacts: first, an anonymized extract of one day's raw Kafka trade events (especially the 15 mismatched trades) paired with the git commit hash of the consumer before the fix. Second, the deterministic replay test script and its random seeds so they can run the exact shuffled, duplicate-injected stream and watch the old code drift while the new code matches reference end-of-day totals. Third, a brief engineering decision record documenting the 300 ms clock-skew measurement and upstream roadmap constraint so they can verify why timestamp windowing and upstream sequencing were ruled out.
Follow-up questions
- If traffic patterns or data volume shifted dramatically, which underlying invariant of your design would break down first?
- What concrete artifacts and setup would a teammate need to replicate the original failure or independently validate your fix?
Similar questions
- Product Manager Recruiter Screen: Fit, Strategy, and Motivation
- Translating Technical Work for Stakeholders and Trading ML Fit
- Indivisible Operations, Memory Ordering, and Thread Handoffs with std::atomic
- Diagnosing Silent Exit in an Async Python HTTP Script
- Risk-Governed AI System for Portfolio Rebalancing
- Validation Harness for an LLM Ticket-Routing Agent
More Millennium interview questions
- Indivisible Operations, Memory Ordering, and Thread Handoffs with std::atomic Medium
- C++ Compilation Pipelines and Optimizer Semantics Across GCC, Clang, and LLVM Medium
- Thread-Safe Shared State with C++ std::mutex Medium Pro
- Product Manager Recruiter Screen: Fit, Strategy, and Motivation Easy Pro
- Diagnosing Silent Exit in an Async Python HTTP Script Medium Pro
- Risk-Governed AI System for Portfolio Rebalancing Medium Pro
- Validation Harness for an LLM Ticket-Routing Agent Medium Pro
- Translating Technical Work for Stakeholders and Trading ML Fit Medium Pro
- Short-Horizon Equity Return Forecasting Pipeline Medium Pro
- Streaming Paginated Order Ingestion to CSV Medium Pro