Senior Engineering Project Deep Dive: Architecture, Scale, and Trade-Offs
Medium · Behavioral & Leadership · Software Engineer · Technical Screen
Prompt
You are sitting for a 45-minute technical phone or video screen for a senior software engineer opening. An engineer from the hiring team leads the session and dedicates the opening 20 minutes to an in-depth walkthrough of one past production project of your choice. After you introduce the system, expect detailed follow-up probing across four focus areas:
- Architectural trade-offs: Which competing designs you weighed, what you gave up, and why your chosen path won under real constraints.
- Operating scale: Concrete traffic volumes, data footprint, latency targets, burst patterns, and team scope.
- Engineering hurdles: Significant technical, reliability, or operational obstacles encountered during delivery.
- Single hardest problem: The trickiest engineering challenge across the entire initiative and how you worked through it.
At the start of the conversation, be ready to align briefly on format: whether to open with a concise architectural overview before letting the interviewer steer, whether to pitch explanations at the system level or drill straight into code and data structures, and how to frame recency and interfaces owned by partner teams.
Scope & Expectations
- Select a system where you personally drove core design decisions and can defend two to three consecutive layers of follow-up probing.
- Back every scale and performance claim with internally consistent operational figures rather than vague descriptors.
- Present balanced trade-offs that explicitly acknowledge the downsides of your chosen design alongside the strengths of rejected options.
- Pace the 20-minute window cleanly with a crisp initial overview that leaves ample room for interviewer-guided deep dives.
Step-by-step walkthrough
What a 20-minute project deep dive actually scores
Twenty minutes on a single system is deliberately long enough to get past a rehearsed résumé summary. When a senior engineer from the team probes your project, they are evaluating four signals:
- Genuine technical ownership. Did you personally drive core architectural choices, or did you implement tickets from someone else's design doc? Probing two or three layers deep exposes the difference immediately.
- Cost-aware engineering judgment. Every real engineering choice gives something up. Naming the rejected alternative, what it did better, and what your chosen design cost shows mature judgment.
- Fluency with concrete numbers. Senior engineers reason from request rates, payload sizes, p95 latency (95th-percentile latency, meaning 95 out of 100 requests finish at least that fast), database write load, and headcount—rather than hand-waving phrases like "huge volume."
- Disciplined communication under a tight clock. Giving a crisp 3-minute map of the system and then letting the interviewer steer the remaining 17 minutes proves you know how to collaborate with peers.
Legora builds AI software for lawyers and law firms to review, research, and draft across large collections of legal documents, where confidentiality, traceability, and accuracy on long files matter deeply. If you have a deep project involving document pipelines, search, multi-tenant isolation, or data correctness, the domain connection is natural—and if not, pick whichever project you owned most deeply, because depth always beats surface-level topic matching.
Pick the right project and derive its scale sheet
Choose one production project from the last two or three years where you can defend three consecutive layers of follow-up probing on at least two major technical decisions, point to measured before-and-after metrics, and discuss a genuinely non-trivial single hardest problem (such as a live data migration or noisy-neighbor outage).
Before the interview, write down your core numbers and check the arithmetic connecting them—because a senior interviewer will mentally multiply your daily volume by page count and divide by
86,400seconds/day while you speak:Daily volume 300,000 new documents/day, ~25 pages/doc -> ~7.5M pages/day Total corpus 40M documents stored (~1 billion pages) Average rate 300,000 / 86,400 s = ~3.5 docs/s (~87 pages/s) Peak burst rate ~50 docs/s during bulk imports (~1,250 pages/s, ~14x average) Storage footprint Extracted text: 1B pages x ~3 KB/page = ~3 TB Raw PDFs/scans in object storage: 40M x ~500 KB = ~20 TB Latency outcome p95 upload-to-searchable: 40 min before -> under 3 min after Scope & boundaries Me (tech lead) + 4 backend engineers over 12 months Partner-owned: clause ML model (ML team), ranking (search team), OCR vendorSeparate numbers you measured directly on dashboards from back-of-the-envelope estimates, and say plainly which is which whenever asked.
Pace the 20 minutes: a 3-minute overview, then interviewer-led drill-downs
The biggest trap in a 20-minute deep dive is talking nonstop until minute 14. Spend the first 3 minutes setting the board, then explicitly invite the interviewer to pick where to zoom in:
Minute 0 - 3 Structured opening: problem, role, scale, 3 decisions + costs, result, hardest part Minute 3 - 18 Interviewer-led probes: trade-offs, peak bottlenecks, failures, migration details Minute 18 - 20 Hindsight & wrap-up: what you would reverse today and how success was measuredIf you have a shared doc or whiteboard, sketch a five-box data-flow diagram in 30 seconds so you can point to exact stages during follow-ups:
Upload --> Split into pages --> Page Queue --> OCR / Text Workers (horizontally scaled) | Per-tenant fair scheduler ---------+ writes (doc_ver, page) status v All pages done? --> Assemble full text --> Clause ML Tagging --> Search IndexAnswer every probe at architecture depth first (45 to 60 seconds), then offer the next gear down: "I can walk through how the Postgres
SKIP LOCKEDquery claims tasks per tenant if you'd like to go deeper."Full first-person sample opening
Here is a complete 3-minute opening (~350 words) tailored to a Senior Software Engineer interviewing at Legora. Replace the project facts and figures with your own:
I'd like to walk through the ground-up rebuild of our document ingestion pipeline at a B2B contract-management company—a problem space very close to Legora's work helping legal teams review and search large document collections accurately. I served as tech lead for four backend engineers over twelve months. Corporate legal teams uploaded contracts as native PDFs, Word documents, and scanned images; our pipeline extracted text, split agreements into clauses, called an ML service to tag provisions like liability or termination, and indexed everything for search.
Our legacy pipeline processed one whole document per worker job. Whenever a customer uploaded a 300-page scanned PDF, OCR tied up a worker for 20 minutes while two-page agreements queued behind it. We ingested roughly 300,000 documents per day—peaking at 50 documents per second during bulk matter imports—with 40 million contracts stored. At peak, p95 time from upload to searchable hit 40 minutes, driving about 25 support tickets a week claiming uploaded contracts had vanished.
I drove three core architectural decisions. First, we decomposed jobs from whole documents into individual pages on a message queue, letting a 300-page scan fan out across dozens of workers while keeping small uploads fast, at the cost of tracking page-level completion before assembling the full text for clause splitting. Second, we made every stage idempotent under a
(document_version, page_number)key so we could rely on simple at-least-once retries instead of complex distributed transactions. Third, we added per-tenant fair scheduling after one customer's 200,000-file bulk import starved every other law department for hours.After launch, p95 upload-to-searchable latency dropped from 40 minutes to under 3 minutes, OCR spend per 1,000 pages fell 30% because retries reused already-extracted pages, and "missing document" tickets dropped from 25 per week to 2.
Surprisingly, the hardest part wasn't building the new pipeline—it was migrating all 40 million historical contracts without silently altering results in customers' saved legal searches. I built a shadow-index diffing tool and tenant-by-tenant cutover process for that. Would you like to dive first into the design trade-offs, peak-scale bottlenecks, or that migration?
Prepare multi-layer answers across all four focus areas
Once you hand over control, be ready with concrete mechanics—not buzzwords—on each of the four focus areas:
- Architectural trade-offs (alternative + downside + why it still won).
- Page-level tasks vs. whole-document tasks: Splitting into pages eliminates head-of-line blocking (short jobs stuck behind one giant slow job) and parallelizes 300-page scans, but multiplies queue message volume by 25x and requires fan-in coordination. Crucially, clauses span page breaks, so clause tagging cannot run per page—we reassemble all pages once every page row is marked complete.
- At-least-once delivery + idempotency vs. distributed exactly-once: At-least-once queues guarantee no task is dropped, though network timeouts can deliver the same page twice. Keying outputs by
(document_version, page_number)makes duplicate runs idempotent (safe to repeat without changing the outcome or re-paying OCR costs) and avoids fragile cross-system transactions. - Postgres fair scheduler vs. per-tenant queues: Using
SELECT ... FOR UPDATE SKIP LOCKED(a SQL lock clause that lets concurrent workers grab the next unlocked row without waiting on each other) capped each tenant's active worker share and shipped in two weeks, though it concentrated 1,250+ page-status writes/sec on our primary Postgres instance at peak.
- Operating scale & bottlenecks. Connect system load directly to hardware pressure: stateless OCR workers scale horizontally, whereas every one of the 1,250 pages/sec at peak claims and updates status rows in Postgres—making database write locks and Write-Ahead Log I/O the clear first bottleneck if traffic grows 10x.
- Engineering hurdles.
- Poison-pill files: Corrupted PDFs crashed OCR workers in infinite retry loops until we capped attempts at 3, routed poison pages to a dead-letter queue (a quarantine queue for permanently failing tasks) with an engineer alert, and surfaced partial-failure page badges in the UI instead of hanging the whole contract forever.
- Confidential legal text in logs: Early debug logs accidentally printed raw contract snippets; we scrubbed payload strings across all loggers so logs recorded only document IDs, byte lengths, and error codes.
- Single hardest problem: zero-regression migration of 40M contracts. Reprocessing 40 million historical contracts into a shadow index (a parallel non-user-facing index) changed extracted text on 3% (
1.2M) of documents. Most changes were cleaner OCR, but diffing customers' saved searches uncovered a0.4%(160,000-document) regression on multi-column tables that we fixed before switching tenants over one by one via atomic search-index alias flips.
- Architectural trade-offs (alternative + downside + why it still won).
Intuition & how it works
Think of a 20-minute senior project deep dive like walking a structural inspector through a bridge you led the design on. Anyone who stood near the construction site can point at the finished bridge and say "We built a four-lane suspension bridge on schedule." The inspector spends 3 minutes looking at the overview drawing and 17 minutes tapping specific joints: "Why steel cables instead of a truss span here? How many tons hit this pier during rush hour? Which bolt would shear first if truck weight multiplied by ten?" A candidate who actually owned the engineering answers each layer calmly with real numbers and trade-offs; a candidate who only carried blueprints runs out of answers on the second "Why?"
Two common approaches fail immediately in this round. First, delivering a 15-minute rehearsed slide talk leaves only 5 minutes for questions, starving the interviewer of the back-and-forth drill-down where senior hiring signals actually live. Second, describing systems with adjectives ("high throughput," "clean architecture") or claiming your design had zero downsides signals that you either did not evaluate real alternatives or were shielded from production trade-offs.
Here is how three levels of "Why?" play out on a single decision from the document-pipeline example (300,000 contracts/day, 25 pages each):
- Level 1 — What did you choose? Decomposed jobs from whole documents into individual page tasks so a 300-page scanned PDF fans out across workers instead of causing head-of-line blocking (blocking two-page contracts behind a 20-minute scan), cutting p95 latency (95th-percentile upload-to-searchable delay) from
40 minto< 3 min. - Level 2 — What did that trade-off cost? Queue volume jumped
25x(~1,250 pages/secat peak bursts), and because legal clauses cross page breaks, we had to track per-page completion before assembling the full contract for clause tagging. - Level 3 — Why track a per-page status set instead of a simple completion counter? Because our queue uses at-least-once delivery (tasks retry on timeout and can arrive twice): if page 7 executes twice and increments a counter,
count == 25fires prematurely while page 25 is still missing, whereas marking page IDs inside a set is idempotent (duplicate completions leave the set unchanged).
What interviewers look for
- Firsthand architectural ownership. Clear separation between decisions you personally drove, pieces teammates built, and upstream/downstream systems owned by partner teams.
- Explicit costs on every trade-off. Naming what the rejected option did better (fewer messages, simpler state, cleaner long-term scaling) alongside why your constraints made another choice win at the time.
- Internally consistent numbers. Daily averages (
3.5 docs/sec), peak bursts (50 docs/sec,1,250 pages/sec), storage math (1B pages x 3 KB = ~3 TBtext), latency percentiles, and cost shifts that all multiply out cleanly. - A non-trivial "hardest part." At the senior level, the hardest engineering problem is rarely writing the happy-path worker—it is usually migrating
40 millionlive records safely, isolating noisy multi-tenant neighbors, or debugging subtle correctness drift. - Intellectual honesty and hindsight. Admitting which pragmatic shortcut later became painful—and quantifying what reversing it would take—proves production maturity far better than pretending your design was flawless.
- Disciplined pacing. Framing the whole system in 3 minutes and matching your answer depth to what the interviewer asks.
Common mistakes
- Monologuing past the 5-minute mark. Check the clock: once you state the problem, scale, key decisions, outcome, and hardest part (~3 minutes), stop and ask the interviewer which thread they want to pull.
- Throwing out unanchored scale buzzwords. Saying "millions of requests" without knowing whether that means per month or per second—or quoting numbers that contradict each other under basic division—destroys credibility fast.
- Presenting straw-man alternatives. "We considered doing nothing vs. building a queue" is not an engineering trade-off; compare two genuinely viable designs (such as per-page tasks vs. separate small-doc and large-doc queues).
- Saying "we" for every single sentence. Credit your team generously on outcomes, but use "I" when describing the specific design doc, benchmark, scheduler query, or migration tool you authored.
- Picking a project just because its buzzwords match the company. A simpler system you led end to end will always outscore an AI/LLM project where someone else made every key architectural call.
- Sharing proprietary employer data. Generalize internal codenames, never name private client firms, and use rounded operational figures.
Follow-up questions
- At 10x current traffic, where does your architecture hit its first bottleneck, and how would you redesign that layer? The Postgres page-status table backing our fair scheduler would saturate first. While stateless OCR workers scale out horizontally by adding containers, peak bursts of
1,250 pages/secbecome12,500 pages/sec(over25,000row-lock claims and completion updates per second viaSELECT ... FOR UPDATE SKIP LOCKED) hitting a single primary Postgres instance's lock manager and Write-Ahead Log (WAL) (the sequential disk log recording every database mutation). To handle 10x load, move in-flight page tracking into partitioned Redis sets (SADD doc:{ver}:done {page_num}, using a set rather than an integer counter so duplicate at-least-once deliveries never trigger assembly early) and write to Postgres only once per completed document—cutting Postgres write load by25x. In parallel, replace database-polled tenant fairness with dedicated queues for heavy bulk-import tenants and verify that native-text PDFs bypass OCR entirely so vendor spend does not jump 10x unnecessarily. - Looking back today, which technical call would you undo, and what concrete price did the team pay for it? Building our custom per-tenant fair scheduler on top of the same Postgres database that served customer-facing document metadata queries. It let us ship fairness in two weeks without adopting new queue infrastructure, which solved an urgent customer pain point, but during heavy bulk imports the scheduler's lock and WAL churn degraded p99 latency on ordinary UI metadata reads and forced us onto a much larger database instance. Replacing it later with native queue-level tenant partitioning was roughly five engineer-weeks of rework that an upfront prototype on our messaging layer would have saved.
- What quantitative signals proved that the initiative actually met its goals? Define quantitative success targets before writing pipeline code and track them weekly on one shared dashboard: p95 upload-to-searchable latency under
5 minutes(achieved< 3 minutes), permanent document failure rate under0.1%, OCR vendor cost per1,000pages down at least20%(achieved30%via idempotent page caching), and weekly "missing document" support tickets. During the 40-million-document migration, add a strict correctness gate: zero unexplained top-10 search-result regressions across any tenant's saved searches in the shadow index before flipping that tenant's live alias. - Where did your ownership stop, and how did you coordinate across interfaces with adjacent teams? Three adjacent pieces sat outside our team: the clause-classification model (ML team), search relevance ranking (search team), and raw optical character recognition (external OCR vendor). With the ML team, we defined a versioned JSON schema contract (
model_version+ character offsets); because our pipeline persisted assembled text separately from model tags, shipping a new ML model only required re-running the lightweight tagging stage rather than re-OCRing pages. With the search team, we co-built the shadow-index comparison harness and triaged saved-search diffs together every week; for the OCR vendor, we enforced strict client-side timeouts, exponential-backoff retries, and SLA latency alerting on our boundary.
Follow-up questions
- At 10x current traffic, where does your architecture hit its first bottleneck, and how would you redesign that layer?
- Looking back today, which technical call would you undo, and what concrete price did the team pay for it?
- What quantitative signals proved that the initiative actually met its goals?
- Where did your ownership stop, and how did you coordinate across interfaces with adjacent teams?
Similar questions
- Architectural Walkthrough of a Past Engineering System
- Architectural Deep Dive on a Complex Engineering Project
- Multi-Cloud Object Storage Upload Client
- Multi-Cloud Direct Upload Layer
- Tamper-Evident Multi-Tenant Audit Trail Architecture
- Direct-to-Storage Media Upload Pipeline for Messaging
More Legora interview questions
- Architectural Walkthrough of a Past Engineering System Medium
- Direct-to-Storage Media Upload Pipeline for Messaging Medium
- Multi-Cloud Direct Upload Layer Medium Pro
- Multi-Cloud Object Storage Upload Client Medium Pro
- Tamper-Evident Multi-Tenant Audit Trail Architecture Hard Pro
- Architectural Deep Dive on a Complex Engineering Project Medium Pro