Guide / Your stories
24. Resume projects as design stories
Senior interviews often start with “walk me through something you built” and then turn it into a system design round. Each story below has a 2-minute pitch, what to draw, and the follow-ups you should expect. Where you need a fact only you know (exact traffic, team size), it’s marked [fill in] — write those down before interviews so the numbers are consistent every time.
24.1 How to tell any project story#
- Context (15 s): business, users, scale.
- Problem (15 s): what was broken or missing, with a number.
- Your role: what you owned vs the team.
- Design (60 s): the 3–5 key components and the one decision that mattered most.
- Trade-off: what you gave up and why.
- Result: the metric, and how it was measured.
- What you’d do differently.
On metrics: several of your figures (75% resolution, 60% headcount reduction, 40% fewer hotfixes, 30-second lookup) are estimates. Say how each was measured or estimated (“measured as tickets closed without human handoff over N weeks” / “estimated from on-call logs”). Interviewers forgive estimates; they don’t forgive numbers you can’t explain. On the headcount figure, frame it as support capacity freed for harder cases if that’s accurate.
24.2 B2B retail GenAI assistant — RAG without a vector database (Nykaa)#
Pitch: “I owned the production rollout of a RAG shopping assistant for a B2B platform serving 500K retailers. It took a common retailer task from about 3 minutes to 30 seconds, with responses under 5 seconds. I built it as a LangGraph state machine with retrieval and tool-calling states, and deliberately skipped a vector database because the catalogue was bounded.”
Draw: client (Next.js / Android WebView) → FastAPI service → LangGraph graph (classify intent → retrieve → tool calls for live catalogue/cart → generate) → JSON embeddings loaded in memory + cache → LLM provider; recovery/fallback edges; OpenTelemetry traces.
Follow-ups and how to answer:
- Why no vector DB? Catalogue size [fill in: number of items] fit in memory; brute-force cosine search over that many vectors is milliseconds, exact (100% recall), and removes an infrastructure dependency. Live data (price, stock) came from tools, not the index.
- When would that break? Corpus growth past memory/latency limits, frequent updates needing concurrent writes, per-tenant filtering, multiple services needing the index. Migration path: pgvector or Qdrant behind the same retrieval interface (section 16).
- How did you keep embeddings fresh? [fill in: rebuild schedule / trigger]; versioned embedding file; re-embed on catalogue change.
- Where did the 5 seconds go? Break down: intent + retrieval (fast, in memory), tool calls to catalogue APIs, LLM TTFT and generation. What you did to cut it (caching, streaming, smaller model for routing).
- What were the recovery paths? Tool timeout → retry/fallback answer; low retrieval confidence → ask a clarifying question; LLM error → fallback model or graceful message.
- How did you measure 3 min → 30 s? [fill in: method].
24.3 Voice and chat support agents with real-time screen sync (Nykaa)#
Pitch: “I shipped three production AI chat and voice services in Python, FastAPI and LangChain, and synced Gemini Live cart and checkout state across Next.js and Android over WebSockets. Together they resolved about 75% of support issues without a human.”
Draw: user voice → Gemini Live (speech-to-speech) or Pipecat pipeline → agent with tools (cart, orders) → state store → WebSocket push to web and Android so the screen updates as the agent acts.
Follow-ups:
- How did you keep cart state consistent between voice and screen? Single source of truth on the server; versioned state; every change emits an event with a sequence number; clients apply in order and request a snapshot on gaps.
- What happens when the WebSocket drops mid-conversation? Reconnect with backoff, resend last sequence number, replay missed events or full snapshot (section 9.2).
- Two devices update the cart at once? Server serializes updates per cart (optimistic version check), last valid write wins, both clients receive the result.
- Why Gemini Live vs a cascaded STT→LLM→TTS pipeline? Latency and naturalness vs control and observability (section 19.7). Know which services used which.
- How was “resolved” defined? [fill in]. What happened to the other 25%? (handoff with summary).
24.4 Agent evaluation, guardrails and observability (Nykaa)#
Pitch: “I automated about 300 agent test cases with simulated user profiles and LLM-judge scoring on intent, relevance, fluency and safety, and added Git-backed prompt rollback, Zod/JSON Schema validation, sandboxed backend actions, OpenTelemetry tracing and structured audit logs.”
Follow-ups:
- How did you know the judge was right? Calibration against human labels on a sample, rubric with examples, known biases (section 20.3). If you didn’t calibrate formally, say what you’d add.
- How were the 300 cases chosen? From real intents, edge cases, adversarial and safety prompts; production failures added as new cases.
- How do evals gate releases? Run on every prompt/model change; threshold per metric; rollback via Git history.
- What does “sandboxed backend actions” mean concretely? Agent can only call allowlisted actions with validated parameters, scoped to the user, with limits; no direct DB or arbitrary HTTP access. [fill in specifics].
- What do your traces contain? Spans per LLM call and tool call, prompt version, tokens, latency, errors; audit logs for every action with user and outcome.
24.5 Go on-call diagnostics dashboard (Nykaa)#
Pitch: “On-call engineers had to look up data across DynamoDB, MySQL, PostgreSQL and Redis by hand, which took 3–10 minutes per lookup. I built a Go dashboard that queries all four, cutting lookups to an estimated 30 seconds and reducing hotfix deployments by about 40%.”
Follow-ups: How do you stop it from hurting production DBs? (read replicas, query timeouts, row limits, rate limits, read-only credentials). Access control and PII? (SSO, role-based views, masking, audit log of every lookup). Why Go? (concurrency for parallel fan-out to four stores, single binary). Why did hotfixes drop? [fill in the causal link].
24.6 Offers, coupons, feature flags and A/B testing for 500K retailers (Nykaa)#
Follow-ups: Prevent coupon over-redemption (section 7.5); how flags are evaluated (deterministic bucketing, local caching in clients, kill switches, walkthrough 19 in section 11); how you avoided flicker and inconsistent experiences across Next.js SSR and client; how A/B results were measured.
24.7 Payroll microservices for ~300 companies (Kaamwork)#
Pitch: “I built horizontally scalable payroll APIs in Node.js/NestJS with TypeORM and Redis, plus payment, invoicing and dashboard APIs on PostgreSQL/Prisma, deployed with Jenkins, Docker and Kubernetes blue-green releases.”
Follow-ups:
- What made it horizontally scalable? Stateless services, Redis for shared state/cache, DB connection pooling, background jobs for the payroll run.
- How do you avoid paying someone twice? Idempotency keys per payout, unique constraints on (employee, pay period), payout state machine, reconciliation with bank files (section 7).
- Multi-tenancy?
tenant_idon every row and query, row-level security or enforced in a base repository, per-tenant config. [fill in actual approach]. - A monthly payroll run for a big tenant fails halfway. Batch job with checkpoints, idempotent per-employee steps, resume from the last checkpoint, report.
- Why both TypeORM and Prisma? Be ready to explain honestly (different services or a migration).
- Blue-green and DB migrations? Backward-compatible migrations (expand-contract) so both versions run during the switch.
24.8 Exam-prep quiz platform at 500K+ DAU (Easy Quizzz)#
Follow-ups: Why Hugo static pages + Next.js for the interactive part (cheap CDN-served content, dynamic only where needed); peak QPS [fill in]; what Redis cached and the TTLs; which PostgreSQL indexes you tuned and how you found them (EXPLAIN ANALYZE, slow query log); how stateless servers handled quiz session state; how you’d add a live leaderboard (Redis sorted sets).
24.9 Gram Bahar e-commerce, as sole technical owner#
Follow-ups: Supporting 3+ payment gateways (adapter pattern, idempotency, webhook verification, reconciliation); OTP authentication abuse (rate limits, expiry, attempt limits); inventory consistency during checkout; what broke in production and how you fixed it — being the sole owner makes this a great ownership story for Part 5.
24.10 Hospital inventory system (Go/Gin)#
Follow-ups: RBAC design (roles, permissions, middleware); JWT expiry and revocation; near-expiry alerts (scheduled job + idempotent notifications); Excel reports for large datasets (streaming generation, async job + download link).