The BackendVol. 3 · Part III
0 / 0

Shelves / The Backend

Software Engineering · Volume 3

The Backend

Part III of the Software Engineering roadmap, written out as a textbook that starts from zero. The opening chapter assumes you have never written server code; every later chapter opens with a plain-language Start here section with small programs whose output was actually run, then goes all the way to language and runtime internals, Spring and its peers, data access, security, messaging, resilience, caching and testing, and ends with a lab of real measurements and a revision sheet. Every backend idea is shown in the language that defines it and compared with the others: Java and Kotlin on the JVM, Go, Rust, C and C++, Zig, C# and .NET, Python, TypeScript on Node, and Elixir, Haskell and Scala. A final chapter of eight projects grows one ordering service from plain Java to production.

24 chapters◷ ~12 h to read ✓ 728 topics? 24 quizzes

Two ways to read this book

New to the subjectStart with the opening Start Here chapter and read chapters in order. In each chapter, read the Start here section, run its examples, answer Check yourself before opening the answers, and take the quiz. Read the deeper sections once the Start here quiz is easy; leave the hardest parts for a second pass. Build the projects in the final chapter as you go.
Experienced engineerSkip the opening chapter. In each chapter, read the Revision sheet at the end first and take its quiz; skim Start here; then use How deep to go to pick the internals sections and lab experiments that fill your gaps. Tick a topic only when you could teach it.

Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments with real measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).

How to use this book

  1. Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
  2. Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
  3. Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
  4. Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.

Mastery levels

L1 RecognitionDefine it and identify it.
L2 WorkingUse it correctly in code or config.
L3 InternalsExplain why it works.
L4 DebuggingDiagnose failures and performance problems.
L5 DesignChoose among competing approaches.
L6 ProductionOperate it under scale, failure, security and cost.

Languages used throughout

Java 25 LTS → 27 · Spring Boot 4Kotlin · ScalaGoRust · Tokio · AxumC · C++23 · ZigC# · .NETPython · FastAPITypeScript · Node · NestJSElixir · Erlang/OTP · Haskell

Java examples target JDK 25 (the current LTS) with notes on JDK 26 and 27 features, and Spring Boot 4 / Spring Framework 7, with Boot 3.x differences noted. Other languages use their current stable releases as of late 2026. Preview and incubating features are labelled as such. Check the release notes for your exact versions before relying on a new feature.

Contents

  1. BE·00Start Here: What a Backend IsFor readers who have never written server code: what a backend does, what happens to one request from arrival to response, the tools you need, a…11 min
  2. BE·33Language FoundationsThe building blocks every backend language shares and where they differ: syntax families, primitive and reference types, overflow, operators and…56 min
  3. BE·34Object-Oriented Programming and Its AlternativesThe four pillars (encapsulation, abstraction, inheritance, polymorphism), the relationships between objects (composition, aggregation, association…38 min
  4. BE·35CollectionsLists, sets, maps, queues and deques, and how they're built: ArrayList versus LinkedList, HashMap's buckets and treeification, LinkedHashMap…36 min
  5. BE·36Generics and Type ParametersWriting code once for many types. Covers generic classes and methods, bounds, wildcards and PECS, type erasure and its consequences, reifiable types…35 min
  6. BE·37Functional ProgrammingFunctions as values: functional interfaces, lambdas and closures, method references, composition, streams with their laziness and pipeline mechanics…37 min
  7. BE·38ConcurrencyRunning work at the same time, correctly. Covers threads and executors, futures and CompletableFuture, synchronized and volatile, the Java Memory…50 min
  8. BE·39Modern Java Through JDK 27How Java evolved from Java 8 to JDK 27, and why. Covers the six-month cadence and LTS choices, var, switch expressions, text blocks, records, sealed…36 min
  9. BE·40JVM Internals and Other RuntimesWhat happens between `java -jar` and your code running fast. Covers bytecode and the stack machine, class loading, class loaders and verification…32 min
  10. BE·41Memory and PerformanceWhere Java's memory goes and how to make code fast without guessing. Covers stack versus heap, object headers and references, allocation and TLABs…29 min
  11. BE·42Modules, Packaging and Dependency ConflictsHow Java code is packaged and found at run time: JAR and WAR files, manifests, the class path versus the module path, JPMS in practice, fat and uber…24 min
  12. BE·43Build SystemsMaven and Gradle from first principles: the build as a graph of tasks, dependency resolution, scopes and configurations, plugins, repositories, BOMs…25 min
  13. BE·44Backend FundamentalsThe anatomy of every backend service, independent of framework: the request/response cycle, routing, middleware and filters, dependency injection…37 min
  14. BE·45HTTP API DesignDesigning HTTP APIs that last. Covers REST constraints and resource modelling, method semantics (safe and idempotent), status codes and headers…29 min
  15. BE·46Spring CoreHow Spring's container works: inversion of control and dependency injection, the ApplicationContext, bean definitions, the full bean lifecycle…26 min
  16. BE·47Spring BootWhat Spring Boot adds on top of Spring: auto-configuration and how conditions decide what's wired, starters, type-safe configuration properties and…26 min
  17. BE·48Spring Web — MVC and WebFluxInside Spring MVC: the DispatcherServlet pipeline, controllers and request mapping, argument resolution and validation, exception handling with…29 min
  18. BE·49Persistence — JDBC, JPA, Hibernate and Spring DataHow Java talks to relational databases, from JDBC and JdbcClient up to JPA and Hibernate. Covers the entity lifecycle, the persistence context and…33 min
  19. BE·50Spring Security and Modern IdentityAuthentication and authorisation from first principles, then Spring Security's architecture: the SecurityFilterChain, authentication managers and…28 min
  20. BE·51Asynchronous Work, Jobs and MessagingMoving work out of the request path. Covers synchronous versus asynchronous processing, in-process async (@Async, executors, virtual threads…28 min
  21. BE·52ResilienceKeeping services up when their dependencies aren't. Covers timeouts and deadline propagation, retries with exponential backoff and jitter, retry…27 min
  22. BE·53CachingMaking reads cheap without serving wrong data. Covers why caches work (locality and skew), local versus distributed caches, Redis in depth, the…26 min
  23. BE·54Backend TestingA testing strategy for backend services. Covers what to test at which level, test doubles, unit tests with JUnit, AssertJ and Mockito, property-based…34 min
  24. BE·55Backend ProjectsEight build-it-yourself projects that grow one backend, the tiffin centre's ordering service, from a plain-Java API to a secure, resilient…11 min