Cheat sheets
One-page explainers, drawn by hand
Concepts, patterns and trade-offs on a single sheet. Open one to pan around and present it, or make your own copy.
REST API DesignRobin Singh · REST API design cheat sheet: resource naming, HTTP methods and idempotency, status codes, a request and its response, problem+json errors, offset vs cursor pagination, query conventions, versioning, and a checklist before you ship an endpoint.Cheat sheetTemplateUse this template →
Kafka & Event StreamingRobin Singh · Kafka cheat sheet: topics, partitions and consumer groups in one diagram, offsets and consumer lag, at-most-once, at-least-once and exactly-once delivery, producer and durability settings, rebalancing, Kafka vs a queue, and the CLI commands.Cheat sheetTemplateUse this template →
Caching StrategiesRobin Singh · Caching strategies cheat sheet: cache-aside, read-through, write-through, write-behind and refresh-ahead compared, eviction policies, where caches live, Redis commands, HTTP cache headers, and how to handle stampedes, penetration and avalanches.Cheat sheetTemplateUse this template →
Kubernetes in One PageRobin Singh · Kubernetes on one page: control plane and worker node architecture, Pods, Deployments, StatefulSets, Services and Ingress, a minimal Deployment manifest, the daily kubectl commands, why a pod will not start, rolling updates and a production checklist.Cheat sheetTemplateUse this template →
Big-O & Data StructuresRobin Singh · Big-O cheat sheet: growth rates from O(1) to O(n!), the cost of arrays, linked lists, hash tables, trees, heaps and tries, sorting algorithms compared, how to analyse an algorithm, and which data structure to reach for.Cheat sheetTemplateUse this template →
Linux Command LineRobin Singh · Linux command line cheat sheet: navigation, pipes, text tools (grep, sed, awk, cut, xargs, jq), file permissions and chmod, redirects, processes and signals, systemd services, ssh and rsync, and a checklist before you run anything as root.Cheat sheetTemplateUse this template →
How a Request Crosses the InternetRobin Singh · Networking basics on one page: the four TCP/IP layers, what happens when you open a URL, the TCP three-way handshake, DNS resolution, TCP vs UDP, well-known ports, private IP ranges and subnets, and the commands to debug a slow or dead connection.Cheat sheetTemplateUse this template →
Concurrency & DeadlocksRobin Singh · Concurrency cheat sheet: race conditions, a deadlock in one picture, the four conditions it needs, mutexes, semaphores, condition variables and atomics compared, the ways out of a deadlock, producer / consumer, and a checklist before you add a lock.Cheat sheetTemplateUse this template →
Virtual MemoryRobin Singh · Virtual memory on one page: how the MMU turns a virtual address into a physical one, TLB hits and misses, a page fault step by step, the layout of a process’s address space, page table entry bits, and FIFO, LRU, Clock and LFU page replacement.Cheat sheetTemplateUse this template →
Processes & SchedulingRobin Singh · Operating systems cheat sheet: what a process is, the five process states, what the PCB holds, how a context switch works, FCFS, SJF, round robin, priority, MLFQ and CFS scheduling compared, process vs thread, and the ways processes talk to each other.Cheat sheetTemplateUse this template →
Adaptive RAGRobin SinghCheat sheet
Self-RAGRobin Singh · Self-RAG: retrieve, generate, self-evaluate and decide whether to retrieve again, rewrite, refine or stop, with the architecture, a 7-step walkthrough, a worked example (green hydrogen), evaluation aspects, benefits, challenges, use cases, components and best practices.Cheat sheetTemplateUse this template →
Corrective RAG (CRAG)Robin Singh · Corrective RAG: retrieve, let an LLM critic check relevance, consistency, hallucination, completeness and contradictions, then filter, rewrite or re-retrieve before generating, with the critic workflow, correction types, strategies, techniques, trade-offs, data flow, metrics, variants and use cases.Cheat sheetTemplateUse this template →
Agentic RAGRobin Singh · Agentic RAG: a planner agent decides actions, calls tools (retrieve, web search, DB, calculator), collects and reasons, and loops until it can answer, with the full architecture, capabilities, a 9-step walkthrough, a worked example, the detailed agent loop, components, benefits, challenges and bestCheat sheetTemplateUse this template →
GraphRAGRobin Singh · GraphRAG: build a knowledge graph from documents, link the query to entities, retrieve and rank a subgraph, serialise it as context and generate, with retrieval strategies, variants, graph databases, evaluation, use cases and future directions.Cheat sheetTemplateUse this template →
Hybrid RAGRobin SinghCheat sheet
Advanced RAGRobin Singh · Advanced RAG: multi-strategy retrieval, reranking, refined context and generation, with retrieval strategies, reranking techniques, variants, context enhancement, data flow, evaluation, challenges, optimisation, vector databases, embedding models and best practices.Cheat sheetTemplateUse this template →
RAG ArchitecturesRobin Singh · RAG architectures on one sheet: what RAG is, core components, four patterns (naive, advanced, agentic, multi-stage), retrieval strategies, indexing, variants, data flow, context construction, evaluation, challenges, optimisation and best practices.Cheat sheetTemplateUse this template →
Traditional RAGRobin Singh · Traditional RAG end to end: core components, the 7-step pipeline, offline ingestion and indexing, online retrieval, augmentation and generation, advantages, limitations, common vector databases, embedding models and best practices.Cheat sheetTemplateUse this template →