Zero To Production In Rust: An Introduction to Backend Development
Best for: Developers who already know basic Rust syntax and want to see how the language's ecosystem is actually used to ship and operate a real backend service.
- ISBN-13: 9798847211437
- Level: intermediate
- Published: 2022
Where most Rust books stop once they’ve covered the language, Zero To
Production In Rust starts from “you already know the syntax” and spends
its entire length on the part that language books skip: how you actually
build and run a Rust backend service. The running example — an email
newsletter API — grows chapter by chapter from an empty cargo new through
routing, a Postgres-backed data layer with sqlx, integration tests,
authentication, structured logging and tracing, and a working CI/CD
pipeline that deploys to a real host.
The book’s biggest strength is that it treats testing and observability as first-class from chapter one rather than as an afterthought bolted on at the end — you write integration tests against a real (test) database early, and the logging/tracing setup that shows up midway through the book is close to what you’d actually want in production. The chapter on type-driven domain modeling (using the type system to make invalid states unrepresentable, e.g. for email addresses and subscriber status) is a genuinely useful pattern that transfers well beyond the example project.
Where it’s weaker: it commits early to a specific stack (actix-web,
sqlx, Postgres), and while the underlying lessons generalize, some
chapters read as actix-web/sqlx tutorials rather than framework-agnostic
Rust backend guidance. It’s also self-published and updated in place by the
author, so print copies can lag behind the latest web edition at
zero2prod.com.
Compared to Rust for Rustaceans: Gjengset’s book teaches idiomatic Rust at the language and library-design level; Palmieri’s teaches how to assemble those idioms into a deployed, observable web service. They pair well as a “language depth” and “applied backend” combination.