Field notes on interview engineering.
System design, databases, low-level design, AI engineering, and coding patterns, explained the way interviewers actually probe them.
How Retrieval-Augmented Generation (RAG) Works
How RAG works end to end: chunk and embed your documents, retrieve the relevant context at query time, and ground an LLM's answer. The pipeline, the tradeoffs, and when not to use it.
The Saga Pattern: Distributed Transactions Across Microservices
The saga pattern for microservices: coordinate a transaction across services without 2PC, undo with compensating transactions, choose choreography vs orchestration, and nail the tradeoffs interviewers probe.
The Outbox Pattern: Reliable Messaging in System Design
The transactional outbox pattern: publish events reliably, fix the dual-write problem, choose between polling and CDC, and nail the system design tradeoffs interviewers probe.