All guides
Every SevyDevy Learn guide, newest first.
501 guides · Newest first · Updated
- Consistent Hashing Explained: Add Nodes Without a ReshuffleA plain-English guide to consistent hashing, from the hash mod N trap to rings, virtual nodes and bounded loads, built on one running image cache example.System design · 24 min read ·
- Debugging AI Agents: Reading Transcripts and Stop ReasonsHow to read a transcript round by round, what stop reasons mean, the common loop bugs and what to log, shown on one running IT helpdesk example.AI and GenAI · 22 min read ·
- Leader Election, Leases and Distributed LocksA plain-English guide to distributed locks, leases, fencing tokens and leader election with Redis, ZooKeeper and etcd, built on one running warehouse software example.System design · 26 min read ·
- Design a Distributed Task Scheduler: Cron at ScaleDue-job polling, row locks, leases, duplicate checks, retries and priorities.System design · 26 min read ·
- Delivery Guarantees: At-Most, At-Least and Exactly-OnceA plain-English guide to at-most-once, at-least-once and exactly-once delivery, and why exactly-once is really effectively-once, built on one running loyalty points example.System design · 22 min read ·
- Quadtrees and Geohashes: How Apps Find Nearby Riders FastA Pune bike-taxi app finding the nearest free rider.System design · 24 min read ·
- How LLMs Are Trained: Pretraining, Fine-Tuning and RLHFA plain-English guide to every stage of LLM training, from cleaning data and pretraining to instruction tuning, RLHF, DPO, safety tuning and testing, shown on one running example of a farmers' helpline model.AI and GenAI · 25 min read ·
- How LLMs Work: The Life of a Prompt, Step by StepA plain-English walk through what happens inside a large language model, from tokens and embeddings to attention, next-token probabilities and the context window, built on one running recipe-app example.AI and GenAI · 26 min read ·
- How to Evaluate AI Agents: Trajectories, Not Just AnswersCheck the real end state, grade every step, pick graders and run each task many times.AI and GenAI · 24 min read ·
- Hybrid Search: How BM25 and Vector Search Work TogetherHow BM25 keyword search and vector search each fail, how to merge them with RRF or weighted scores, and how to measure the result, shown on one running auto parts store example.AI and GenAI · 25 min read ·
- Idempotency Keys Explained: Safe Retries Without Double ChargesHow they make API retries safe and stop double charges, built on one running UPI bill-payments example.Backend · 22 min read ·
- Design a Key-Value Store: A Dynamo-Style GuidePartitioning, copies, quorums, conflicts and repair.System design · 26 min read ·
- Lamport Clocks and Vector Clocks: Ordering Without a ClockHow devices order events without a shared clock, spot concurrent edits and merge them. It uses one running example of an offline notes app.System design · 25 min read ·
- LLM Structured Output: JSON Schemas That Don't BreakA plain-English guide to getting reliable JSON from a model, from JSON Schema and constrained decoding to validation, retries, missing fields, versioning and tests, shown on one running example of a GST invoice reader.AI and GenAI · 25 min read ·
- Temperature, Top-p and Top-k: LLM Sampling ExplainedHow temperature, top-k, top-p and seeds change each next-token pick, and why vLLM and llama.cpp apply them in a different order.AI and GenAI · 28 min read ·
- LLM Tokenization Explained: Why Hindi Costs More TokensWhat tokens are, how byte-pair encoding works, why Hindi needs more tokens and how to count them before you send, shown on one running Hindi news app example.AI and GenAI · 25 min read ·
- Load Balancers Explained: L4 vs L7, Global vs LocalL4 vs L7, algorithms, health checks, sticky sessions and global routing, with nginx and HAProxy behaviour we tested, shown on one running ticketing site example.System design · 30 min read ·
- ML System Design Interview Framework: Six StepsSix steps, a 45-minute plan, a position-bias check and a practice rubric.AI and GenAI · 28 min read ·
- Monolith vs Microservices: When to Split, and When Not ToWhat each really costs, when a split pays and how to split safely.Backend · 23 min read ·
- Advanced RAG Explained: Naive vs Advanced vs Modular RAGHow naive, advanced and modular RAG differ and which failure each fix solves.AI and GenAI · 26 min read ·
- News Feed System Design: Fan-Out, Celebrities and RankingFan-out on write vs fan-out on read, the celebrity problem, feed caches and where ranking fits, built on one running social app example.System design · 24 min read ·
- Non-Functional Requirements: Availability, Reliability, ScalabilityA plain-English guide to non-functional requirements that turns fast, reliable and scalable into measurable targets, using one running stock-trading app example.System design · 23 min read ·
- Notification System Design: Push, SMS and Email, Done RightPush, SMS and email, preferences, priority lanes, safe retries and duplicate checks.System design · 26 min read ·
- OAuth vs OIDC vs SAML: Login vs Access, Explained ClearlyA plain-English guide to OAuth 2.0, OpenID Connect and SAML, showing which one proves who you are and which one grants access, built on one running single sign-on example.Backend · 23 min read ·