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.

Part 2: Building APIs Chapters 6–11

Servers, Express and Fastify, REST and GraphQL design, real-time communication and clean architecture.

06

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.Beginner · 32 min read
07

Express 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.Intermediate · 39 min read
08

REST 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.Intermediate · 35 min read
09

GraphQL 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.Intermediate · 37 min read
10

Real-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.Intermediate · 36 min read
11

Backend 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.Intermediate · 42 min read

Part 3: Data Chapters 12–20

PostgreSQL from fundamentals to indexes and transactions, ORMs, MongoDB, Redis and the other data stores.

12

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.Intermediate · 41 min read
13

SQL 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.Intermediate · 46 min read
14

Schema 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.Intermediate · 45 min read
15

PostgreSQL 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.Intermediate · 38 min read
16

Transactions, 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.Advanced · 35 min read
17

ORMs 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.Intermediate · 29 min read
18

MongoDB 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.Intermediate · 30 min read
19

Redis 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.Intermediate · 30 min read
20

Other 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.Intermediate · 25 min read

Part 4: Security, Testing & Reliability Chapters 21–26

Authentication, authorization, web security, testing strategy, observability and resilience patterns.

21

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.Intermediate · 29 min read
22

Authorization 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.Intermediate · 25 min read
23

Web 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.Intermediate · 30 min read
24

Backend 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.Intermediate · 33 min read
25

Logging, 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.Intermediate · 32 min read
26

Error 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.Advanced · 31 min read

Part 5: Performance & Scale Chapters 27–30

Caching, queues and background jobs, load balancing and scaling, and the fundamentals of distributed systems.

Part 6: Deployment & Operations Chapters 31–33

Containers, CI/CD and cloud basics, and the microservices versus monolith decision.

Part 7: Mastery Chapters 34–36

System design, a capstone project that assembles ShopLine, and a reference appendix.

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.