Backend Master is a free, 36-chapter course that takes you from how the internet works to designing and operating a production backend. It teaches Node.js, REST and GraphQL APIs, PostgreSQL, MongoDB and Redis, authentication and security, testing, caching, queues, scaling, Docker, CI/CD and system design through one running e-commerce project called ShopLine. Chapters 1 to 28 show real, executed code with the output we measured; later chapters are clearly labelled where examples were not run.
- 36Chapters
- 250k+Words
- 700Quiz questions
- 100%Free
Part 1: Foundations Chapters 1–5
What a backend is, how the internet and HTTP work, the Linux and Git workflow, and how Node.js really runs your code.
What Is Backend Development? The Big Picture
Understand what backend development is: the client-server model, what a server does, the request-response cycle, backend roles and the ShopLine project. 02How the Internet Works: IP, DNS, TCP, TLS and Latency
Learn how the internet works for backend developers: IP addresses, DNS lookups, the TCP handshake, TLS encryption, latency numbers and what happens per request. 03HTTP Explained: Methods, Status Codes, Headers, Cookies and Caching
A deep dive into HTTP for backend developers: methods, status codes, headers, cookies, content negotiation, caching and HTTP/1.1 vs HTTP/2 vs HTTP/3. 04Linux, the Terminal, Git and Your Backend Dev Environment
Set up a backend dev environment: essential Linux and terminal commands, file permissions, processes, environment variables, SSH and a practical Git workflow. 05Node.js Internals: The Event Loop, Streams, Worker Threads and Cluster
Understand how Node.js really works: the event loop phases, the libuv thread pool, streams and backpressure, worker threads and the cluster module, with demos.Part 2: Building APIs Chapters 6–11
Servers, Express and Fastify, REST and GraphQL design, real-time communication and clean architecture.
Your First Real Server: Node.js HTTP, Routing, Middleware and Express
Build a real Node.js server: the raw http module, routing, middleware, error handling and Express basics, then structure the first ShopLine API endpoints. 07Express 5 and Fastify: Zod Validation, Security Middleware and Uploads
Level up Express 5 and meet Fastify: Zod validation, helmet, CORS, rate limiting, pino logging, file uploads and when a faster framework is worth it. 08REST API Design: Resources, Pagination, Idempotency, Versioning and OpenAPI
Design REST APIs that last: resource naming, cursor pagination, idempotency keys, ETags, versioning, RFC 9457 error format and OpenAPI contracts. 09GraphQL with Node.js: Schemas, Resolvers, DataLoader and Query Limits
Build a GraphQL API in Node.js: schema design, resolvers, the N+1 problem and DataLoader, plus depth and cost limits, authorization and when to choose REST. 10Real-Time Communication: SSE, WebSockets, Webhooks and gRPC in Node.js
Compare real-time options in Node.js: server-sent events, WebSockets, webhooks and gRPC, with chat and webhook examples, reconnection and signature checks. 11Backend Architecture Patterns: Layers, Dependency Injection and the Modular Monolith
Structure a Node.js backend cleanly: layers, services, repositories, dependency injection, hexagonal design and a modular monolith with architecture tests.Part 3: Data Chapters 12–20
PostgreSQL from fundamentals to indexes and transactions, ORMs, MongoDB, Redis and the other data stores.
Database Fundamentals: ACID, CAP, MVCC and How Data Lives on Disk
Learn database fundamentals: why files fail, ACID transactions, how data is stored on disk, MVCC, CAP and PACELC, connection pooling and SQL injection. 13SQL Mastery with PostgreSQL: From SELECT to Joins, CTEs and Window Functions
Master SQL on PostgreSQL: SELECT, joins, NULL logic, GROUP BY, CTEs, window functions, JSONB and using SQL safely from Node.js, with real outputs. 14Schema Design and Normalization: Keys, Constraints and Zero-Downtime Migrations
Design database schemas that stay correct: normal forms, relationships, constraints, soft delete, audit triggers and safe, zero-downtime migrations. 15PostgreSQL Indexes and Query Performance: Reading EXPLAIN ANALYZE
Make PostgreSQL queries fast: B-tree indexes, EXPLAIN ANALYZE, composite and partial indexes, index-only scans, GIN and BRIN, N+1 and keyset pagination. 16Transactions, Isolation Levels and Concurrency Control in PostgreSQL
Handle concurrent users safely: transactions, isolation levels with real anomalies, write skew, row locks, deadlocks, optimistic locking and Node.js patterns. 17ORMs and Query Builders: Knex, Kysely, Drizzle and Prisma Compared
Compare Knex, Kysely, Drizzle and Prisma on one ShopLine feature: generated SQL, N+1, transactions, types and how to choose between ORM and raw SQL. 18MongoDB and Document Modeling: Embedding, Indexes, Aggregation and Mongoose
Learn MongoDB for backend work: BSON documents, embedding vs referencing, indexes and explain, the aggregation pipeline, transactions and NoSQL injection. 19Redis and In-Memory Data: Caching, Rate Limiting, Locks and Streams
Use Redis in Node.js: core data structures, cache-aside, stampede protection, Lua rate limiters, distributed locks, streams, persistence and eviction. 20Other Data Stores: Search, Time-Series, Analytics and Object Storage
Know when to add another data store: PostgreSQL full-text search vs Elasticsearch, partitioning, columnar analytics with DuckDB and object storage.Part 4: Security, Testing & Reliability Chapters 21–26
Authentication, authorization, web security, testing strategy, observability and resilience patterns.
Authentication: Password Hashing, Sessions, JWT, Refresh Tokens, OAuth and MFA
Implement secure authentication in Node.js: argon2id password hashing, sessions vs JWT, refresh token rotation, TOTP MFA, OAuth and OIDC with PKCE. 22Authorization and Access Control: RBAC, IDOR, Mass Assignment and Row-Level Security
Secure access control in Node.js: RBAC and ABAC policies, fixing IDOR/BOLA, mass assignment, multi-tenant isolation and PostgreSQL row-level security. 23Web and API Security: XSS, CSRF, SSRF, CORS, Injection and Hardening
Defend your API against XSS, CSRF, SSRF, CORS mistakes, path traversal, command injection, prototype pollution and ReDoS, with attacks and fixes you can run. 24Backend Testing Strategy: Unit, Integration, Property-Based and Mutation Tests
Test a Node.js backend properly: the node:test runner, integration tests with a real database, fakes vs mocks, fast-check, flaky tests and mutation testing. 25Logging, Monitoring, Tracing and Debugging a Live Node.js Service
Make a Node.js backend observable: structured pino logs with request ids, Prometheus RED metrics, OpenTelemetry traces, health checks, SLOs and profiling. 26Error Handling and Resilience: Timeouts, Retries, Circuit Breakers and Bulkheads
Design for failure in Node.js: operational vs programmer errors, timeouts, retries with jitter, circuit breakers, bulkheads, idempotency and chaos testing.Part 5: Performance & Scale Chapters 27–30
Caching, queues and background jobs, load balancing and scaling, and the fundamentals of distributed systems.
Caching: HTTP Cache-Control, ETags, Redis Cache-Aside and Invalidation
Cache at every layer: Cache-Control and ETag, CDNs, stale-while-revalidate, Redis cache-aside, invalidation races and versioned keys, eviction policies. 28Asynchronous Processing: Message Queues, Background Jobs and the Outbox Pattern
Move slow work off the request: a PostgreSQL SKIP LOCKED queue, BullMQ, Redis Streams, retries and dead letters, idempotent consumers and the outbox pattern. 29Scaling and Load Balancing: Stateless Services, nginx, PgBouncer and Read Replicas
Scale a Node.js backend: stateless instances, nginx load balancing algorithms, failover, sessions across servers, PgBouncer pooling and replication lag. 30Distributed Systems: CAP, Consistency, Consensus, Consistent Hashing and Sagas
Understand distributed systems: partial failure, unreliable clocks, CAP and PACELC, quorums, Raft, consistent hashing, fencing tokens and the saga pattern.Part 6: Deployment & Operations Chapters 31–33
Containers, CI/CD and cloud basics, and the microservices versus monolith decision.
Docker and Containers for Node.js: Dockerfile, Compose, Signals and Kubernetes Basics
Containerise a Node.js backend: multi-stage Dockerfile, non-root users, Compose, graceful shutdown on SIGTERM, resource limits, security and Kubernetes basics. 32CI/CD and Cloud Basics: GitHub Actions, Deployment Strategies and Safe Migrations
Ship backend code safely: CI/CD with GitHub Actions, rolling, blue/green and canary deploys, migrations during deploys, feature flags and cloud basics. 33Microservices vs Monolith: Choosing Your Architecture and Migrating Safely
Decide between microservices and a monolith: the modular monolith default, service boundaries, data ownership, sync vs async calls and strangler fig.Part 7: Mastery Chapters 34–36
System design, a capstone project that assembles ShopLine, and a reference appendix.
System Design for Backend Engineers: Framework, Estimation and Five Worked Designs
Learn system design step by step: requirements, back-of-envelope estimation, API and data design, and worked designs for a URL shortener, checkout and feed. 35Capstone Project: Build and Operate a Production E-Commerce Backend
Finish with a capstone: the ShopLine e-commerce spec, modular architecture, twelve milestones with acceptance criteria, a test plan, runbooks and a rubric. 36The Backend Mega Appendix: Cheat Sheets, Glossary, Interview Questions and Roadmap
A backend reference shelf: HTTP status codes, headers, SQL, Node.js, Docker, Redis and Git cheat sheets, PostgreSQL error codes, a glossary and interview Q&A.How to study this course
Read the chapters in order: each one builds on the ShopLine project from the one before, and the cross-links in the text point back to the chapter that introduced an idea. Run the code yourself, do the chapter quiz and the exercises, then move on. About 19 hours of reading in total. The lab files used in Chapters 13 to 29 are published in the resources folder, and Chapter 36 keeps the cheat sheets and the honest ledger of what was tested.
Backend Master: frequently asked questions
Is Backend Master really free?
Yes. All 36 chapters are free to read online with no sign-up or paywall. Each chapter includes the full text, the code, a 20-question quiz with an answer key, exercises, interview questions and project ideas.
What do I need to know before starting?
You should know basic JavaScript (variables, functions, async/await). Chapter 1 explains what a backend is, Chapter 4 covers the terminal and Git, and every later chapter introduces its own concepts from first principles, so no prior backend experience is needed.
Which technologies does the course use?
Node.js 22 with Express 5 and Fastify, PostgreSQL 17 as the main database, MongoDB, Redis, Docker, nginx and PgBouncer, plus libraries such as Zod, pino, BullMQ, argon2 and jose. The ShopLine e-commerce project evolves across all chapters.
Are the code examples tested?
Chapters 1 to 28 contain code that was actually run, with the real output shown, and each chapter says what was not run. Chapter 29 is partly tested (nginx and PgBouncer ran; replication did not). Chapters 30 to 36 were written without executing the examples and mark every new snippet as not run, so check them before using them in production.
In what order should I read the chapters?
In order. Part 1 covers networking, HTTP, Linux and Node.js internals; Part 2 builds APIs; Part 3 covers databases; Part 4 covers security, testing and reliability; Part 5 covers performance and scale; Part 6 covers deployment; Part 7 covers system design and a capstone project.