BackendPrep
Free Engineering Knowledge Library

Backend Engineering Guides & Blueprints

Deep-dive playbooks that teach you how to reason through runtime mechanics, network protocols, and architectural trade-offs. 100% free for registered engineers.

Backend Foundations
Beginner•14 min read

How a Backend Request Works: From Client to Response

A comprehensive walkthrough of every physical and logical stage a request undergoes — from client DNS resolution and TLS handshakes to reverse proxy buffering, application middleware, database I/O, and socket serialization.

6 Chapters
Read Guide
Backend Foundations
Intermediate•16 min read

The Node.js Event Loop Explained with Practical Examples

A deep dive into the 6 execution phases of the Node.js Libuv event loop, microtask queues (process.nextTick vs Promise.then), thread pool interactions, and how to prevent event loop lag in high-traffic APIs.

6 Chapters
Read Guide
Backend Foundations
Beginner•13 min read

Async/Await, Promises and Error Handling in Node.js

A complete guide to Promise internal mechanics, microtask queue scheduling, async/await desugaring, unhandled rejections, and architecting bulletproof error boundaries in production Node.js applications.

6 Chapters
Read Guide
Backend Foundations
Intermediate•16 min read

Python Concurrency: Threads, Processes and Asyncio

A deep architectural guide comparing the Global Interpreter Lock (GIL), preemptive threading, multiprocessing IPC, and cooperative asyncio event loops to choose the optimal concurrency model for Python backends.

6 Chapters
Read Guide
Backend Foundations
Intermediate•15 min read

Express.js vs NestJS: Architecture and Trade-offs

An architectural evaluation comparing Express's minimalist middleware pipeline against NestJS's opinionated modular Dependency Injection architecture, evaluating team scalability, cognitive overhead, and long-term maintainability.

6 Chapters
Read Guide
Backend Foundations
Intermediate•13 min read

FastAPI: Sync vs Async Endpoints Explained

A deep examination of how FastAPI dispatches synchronous `def` versus asynchronous `async def` endpoints, the AnyIO worker thread pool, and why performing blocking I/O in an async endpoint freezes your entire service.

6 Chapters
Read Guide
Backend Foundations
Intermediate•15 min read

How to Structure a Maintainable Backend Application

A pragmatic blueprint for structuring scalable backend applications using Clean Layered Architecture, separating transport protocols from business domain rules, and avoiding both spaghetti code and enterprise over-engineering.

6 Chapters
Read Guide
APIs & Protocols
Beginner•14 min read

REST API Design: Resources, Status Codes and Error Handling

A complete guide to designing intuitive, consistent, and production-grade REST APIs — covering resource modeling, HTTP verb semantics, status code taxonomy, and standardized RFC 7807 error responses.

6 Chapters
Read Guide
APIs & Protocols
Intermediate•13 min read

API Pagination: Offset vs Cursor

A deep technical breakdown of Offset vs Cursor-based (Keyset) pagination — analyzing database B-Tree index scan mechanics, the deep offset performance cliff, data drift anomalies, and implementing stable encoded cursor tokens.

6 Chapters
Read Guide
APIs & Protocols
Intermediate•15 min read

Idempotency: Preventing Duplicate Operations

How to design and implement end-to-end API idempotency using Idempotency Keys and distributed Redis locks — preventing double billing, duplicate order creation, and webhook replay race conditions.

6 Chapters
Read Guide
APIs & Protocols
Intermediate•12 min read

API Versioning and Backward Compatibility

How to evolve production APIs without breaking mobile apps and enterprise integrations — comparing URI path, Header, and Query param versioning, additive non-breaking patterns, and RFC sunset deprecation headers.

6 Chapters
Read Guide
APIs & Protocols
Intermediate•16 min read

Rate Limiting: Algorithms and Implementation Trade-offs

A deep analysis of rate limiting algorithms — Fixed Window, Sliding Window Log, Sliding Window Counter, and Token Bucket — comparing memory consumption, boundary burst anomalies, and distributed Redis Lua implementations.

6 Chapters
Read Guide
APIs & Protocols
Intermediate•14 min read

HTTP vs WebSockets vs Server-Sent Events

A protocol-level comparison of Short/Long Polling, Server-Sent Events (SSE), and WebSockets — evaluating connection lifecycles, framing overhead, horizontal scaling, and load-balancer state management.

6 Chapters
Read Guide
APIs & Protocols
Intermediate•15 min read

API Timeouts, Retries and Failure Handling

How to prevent cascading failures in distributed backend services — master Connect vs Read timeouts, Exponential Backoff with Full Jitter, avoiding the catastrophic Retry Storm, and implementing Circuit Breakers.

6 Chapters
Read Guide
Interview Playbooks
Advanced•18 min read

The Ultimate Backend System Design Interview Guide

The step-by-step 45-minute blueprint for cracking Senior and Staff Backend System Design interviews at top-tier companies.

6 Chapters
Read Guide
APIs & Protocols
Advanced•15 min read

Production-Grade API Design & Distributed Resilience

Comprehensive architectural blueprint for building resilient, scalable, backwards-compatible enterprise APIs that never break production.

5 Chapters
Read Guide
Databases & Data
Advanced•20 min read

High-Throughput SQL Database Optimization & Indexing

Master B-Trees, composite index selectivity, EXPLAIN ANALYZE interpretation, and connection pool sizing to eliminate database bottlenecks.

5 Chapters
Read Guide
Engineering Curriculum Roadmap

Upcoming Guide Collections

We prioritize practical foundations first. These specialized collections are actively in development.

Coming Soon4 Planned Guides

Databases & Data Engineering

Storage engines, relational indexing, transaction isolation mechanics, connection pooling, and distributed caching patterns.

Relational Indexing Mechanics: B-Trees vs Hash Indexes in ProductionIntermediate • 16 min read
WIP
PostgreSQL & MySQL Transaction Isolation Levels & Concurrency AnomaliesSenior • 18 min read
WIP
Database Connection Pooling: Sizing, Exhaustion & Queueing Under LoadIntermediate • 14 min read
WIP
Distributed Caching Patterns: Cache-Aside vs Write-Through with RedisIntermediate • 15 min read
WIP
In Active Development • Q4 2026
Coming Soon4 Planned Guides

Production Engineering & Resilience

Diagnosing memory leaks, tracing latency bottlenecks, surviving cascading failures, and graceful operational shutdowns.

Diagnosing Node.js Memory Leaks and Event Loop Lag in ProductionSenior • 17 min read
WIP
Graceful Shutdowns, Connection Draining & Kubernetes Pod LifecyclesIntermediate • 13 min read
WIP
Structured Observability: Distributed Tracing, Logs & Golden SignalsIntermediate • 15 min read
WIP
Cascading Failures, Circuit Breakers & Concurrency BulkheadingSenior • 16 min read
WIP
In Active Development • Q4 2026
Coming Soon3 Planned Guides

Interview Preparation Playbooks

End-to-end communication frameworks, system design roadmaps, and trade-off justification strategies for technical interviews.

The 45-Minute System Design Interview BlueprintSenior & Staff • 18 min read
WIP
Navigating Architectural Trade-offs: Latency, Consistency & Operational CostSenior • 14 min read
WIP
Live Backend Coding: Testing, Error Handling & API Contract FrameworksIntermediate • 12 min read
WIP
In Active Development • Q4 2026