All guides
Every SevyDevy Learn guide, newest first.
501 guides · Newest first · Updated
- Design an Online Judge (LeetCode-Style) for Contest ScaleA beginner-friendly guide to designing a LeetCode-style online judge, from the submission queue and sandbox to verdicts, fair timing and contest spikes, built on one running example of a weekly contest site.System design · 24 min read ·
- Payment Gateway API Design: From Intents to WebhooksPayment intents, payment states, idempotency keys, signed webhooks and refunds.Backend · 26 min read ·
- PDF Parsing for RAG: How to Handle Tables, Scans and OCRRouting digital and scanned pages, fixing reading order, keeping tables whole and checking OCR.AI and GenAI · 30 min read ·
- Design a Proximity Service: Nearby Restaurants at ScaleGeohash cells, the 9-cell search, Redis geo sets, replicas and caches.System design · 24 min read ·
- Query Rewriting for RAG: Multi-Query, Decomposition and HyDESimple cleanup and chat-history rewrites, multi-query search, decomposition, step-back questions and HyDE, built on one running electronics store example.AI and GenAI · 22 min read ·
- Raft Consensus Explained: Leader Election and Log ReplicationState machine replication, leader election, log replication, safety, stale reads and pre-vote.System design · 29 min read ·
- RAG Access Control: Permission-Aware Retrieval ExplainedHow to stop an internal AI assistant from retrieving documents a user could not open.AI and GenAI · 24 min read ·
- RAG Evaluation Metrics: Recall@k, MRR and Context PrecisionA plain-English guide to measuring a RAG system in two halves, retrieval and generation, with worked numbers for most metrics, built on one running income-tax help assistant example.AI and GenAI · 24 min read ·
- RAG Reranking: Cross-Encoders Explained SimplyBi-encoders vs cross-encoders, how many chunks to fetch and keep, cost, speed and measuring the gain.AI and GenAI · 23 min read ·
- Reasoning Models Explained: Thinking Tokens and When They PayA plain-English guide to reasoning models, built on one running maths tutoring example, covering thinking tokens, training, thinking budgets, cost, routing and how to test whether the extra thinking pays.AI and GenAI · 22 min read ·
- REST vs GraphQL vs gRPC: Pick a Style Per Use CaseHow each works, what each costs, and how to pick one per caller, built on one running rental-listings example.Backend · 26 min read ·
- Retry, Backoff and Jitter: How to Avoid a Retry StormA plain-English guide to retries, exponential backoff and jitter, and how to avoid causing a retry storm, shown on one running example of a weather data API.System design · 19 min read ·
- Sagas: Distributed Transactions Without 2PCA plain-English guide to the saga pattern, covering compensating steps, step order, safe retries and isolation gaps, built on one running online shop example.System design · 23 min read ·
- Semantic Caching for LLM Apps: Reuse Answers Without Wrong HitsSimilarity thresholds, safe cache keys, expiry and false hits.AI and GenAI · 25 min read ·
- Sharding Strategies: Range, Hash, Directory and Hot KeysA plain-English guide to range, hash and directory sharding, choosing a shard key and fixing hot keys, built on one running example of a music streaming app.System design · 28 min read ·
- Short Video App System Design: Infinite Feed and PrefetchingEndless paging, prefetching the next swipe and fast-starting segments.System design · 23 min read ·
- System Design Interview Framework: A Repeatable 45-Minute PlanA 45-minute plan from requirements to trade-offs, shown on one running mock interview for a shipment tracking service.Career and interviews · 22 min read ·
- Tool Design for AI Agents: Descriptions, Errors and RetriesNames, descriptions, inputs, structured errors, safe retries, tool count and testing, built on one running ordering-agent example.AI and GenAI · 24 min read ·
- Two-Phase Commit and Its Problems: Why 2PC BlocksA plain-English guide to two-phase commit, why it blocks when the coordinator fails, and what three-phase commit tries to fix, built on one running bank transfer example.System design · 24 min read ·
- Design a Unique ID Generator (Snowflake): Sortable IDsA plain-English guide to designing a unique ID generator like Snowflake, built on one running example of a Lucknow story-sharing app.System design · 26 min read ·
- URL Shortener System Design: Keys, Redirects and ClicksA plain-English guide to designing a URL shortener, from short keys and fast redirects to click analytics, built on one running SMS campaign example.System design · 24 min read ·
- Webhook Design: Retries, Signatures and OrderingRetries, HMAC signatures, duplicates, ordering and safe URLs.Backend · 23 min read ·
- YouTube System Design: Upload, Transcode and StreamA plain-English guide to designing a YouTube-like video platform, from resumable uploads to transcoding and adaptive streaming, shown on one running example of a regional video app.System design · 28 min read ·
- Agent Harness Explained: The Code That Turns an LLM Into an AgentThe prompts, tools, memory, guardrails and loop around a model, and why October 2026 research tunes the harness instead of the model.AI and GenAI · 19 min read ·