The book takes you on a journey to discover the world of backend development in Rust. You will learn by doing: we will start from scratch and build together, step by step, a fully functional email newsletter backend API.
You'll learn how to:
- Navigate and leverage Rust's crates ecosystem - Structure your application to make it modular and extensible - Write tests, from single units to full-blown integration tests - Model your domain and leverage the type system to enforce invariants - Collect logs, traces and metrics to observe the state of your application - Set up a robust continuous integration and continuous deployment pipeline for your Rust projects
A helpful resource for web developers who are keen on making the best out of rustlang. The book in itself is clearly written. The community around the book in discord and GitHub is an added advantage that helps us if and when we get stuck.
This is a solid book to read if you're familiar with web development, familiar with rust and now want to learn the tool chain to do web development in rust. It's an easy and light read that can be completed in one sitting, may be 2. To the degree is a long walk through of a code base that uses modern rust stack. As of 2023 it's up to date and can serve you as a good template. (But as with any book of this genre it's risking of becoming dated in 3-5 years) The theoretical part of the book is relatively small however I did appreciate occasional links and references to the topics discussed. But overall you should be somewhat familiar with web development and rust to appreciate this book. And be prepared to read a lot of code, that's the main purpose to show you pretty realistic rust "in-action".
This book shows you how to think when developing Rust for a backend enterprise system. The author takes a TDD approach (not something that pointy haired bosses always allow the luxury of), and consequently, there is a lot of backtracking and refactoring towards correct passing code. This did make the book longer. Some nitpicks: - Chapter 10 on auth flows was over 100 pages, making it a bit tedious to absorb. - Would have liked to see some fullstack guidance (eg Leptos front-end).
All in all, much good guidance on optimal crates to use and how to think as a Rust dev.
I am assuming that much of the wisdom of this tome will find its way behind Pavex framework macros !
While this book does what it says , "teaches you to write Rust web servers" , i felt many times i lacked direction as to where the chapter was going. Multiple times i felt i just was thrown inside a topic related to CI/CD or SQL and had no idea why or what....
The book does what it intends and assumes you have a general knowledge of Rust (you read The Rust Book) , i am definetly convinced i won't be writing web apps in Rust anytime soon.
You have the base language which is already complicated sometimes, add on top of it Actix Framework with its own macros and functionalities (that you probably need to dig in) , async-await and you have a recipe for disaster.
Really great follow up to the Rust Book as I'm learning Rust. I went straight from the Rust Book to Zero To Production and found it to be incredibly approachable and applicable to what I wanted to first learn about the Rust ecosystem. It covered so many useful libraries, patterns, and concepts related to Rust development. If you're following along like I was, writing the code examples (you 100% should!), there are some points where the ordering of the examples can make Clippy a bit unhappy. Just be sure to read thoroughly and don't be afraid to check out the Github repo if you really get stuck. There are some places where the code base changes quite quickly, implementing a solution to a problem one way and then immediately reimplementing with a better approach. I really loved this about the book and feel that it would be especially useful for newer software developers that haven't encountered many of these concepts in the past. If you're looking to learn Rust and enjoy working on web services, I'd consider this essential reading in your journey.
"Zero To Production In Rust" is an exceptional resource for developers looking to dive into backend development using Rust. Written by Luca Palmieri, this book stands out not only for its clarity but also for its practical approach to building real-world applications.
From the outset, the author sets the stage by explaining the foundational concepts of backend development, making it accessible even for those new to the field. The book follows a hands-on methodology, guiding readers through the creation of a production-ready web application. This approach allows readers to learn by doing, reinforcing key concepts while simultaneously building a functional product.
One of the standout features of this book is its focus on Rust's unique advantages, such as memory safety, concurrency, and performance. Palmieri deftly illustrates how these features contribute to building robust backend systems, emphasizing Rust's growing popularity in the developer community. Each chapter builds on the last, leading readers through various stages of development, including setting up a web server, working with databases, implementing authentication, and deploying applications.
The book is well-structured, with each section clearly outlining objectives and expected outcomes. Code examples are plentiful and easy to follow, often accompanied by explanations that demystify complex topics. This makes it easier for readers to understand how to implement various functionalities while also grasping the underlying principles.
Furthermore, the author addresses common pitfalls and challenges developers might encounter along the way, offering practical solutions and best practices. This guidance is invaluable for those who may feel overwhelmed by the intricacies of backend development.
In summary, "Zero To Production In Rust" is a must-read for anyone interested in backend development with Rust. It strikes a perfect balance between theory and practical application, making it an ideal resource for both beginners and seasoned developers looking to expand their skill set. With its clear writing, engaging examples, and comprehensive coverage of relevant topics, this book is an essential addition to the library of anyone serious about mastering backend development, whether they are working in a or as independent developers
Oh yes. This book gets you started the right way, right off the bat. Unlike other authors, no lofty promises are made, just good, solid information delivered. I love the practical application side of things. You get your hands dirty with code all the time and end up with production-ready projects.
It's up to date and instead of building non-sensical samples, it makes you work for your knowledge, in a good way. Along the journey you learn how to build backend software in Rust, from concept to deployment, monitoring, the works!
This really is Rust in action, not just toying around. I have found tremendous value in this book and have used many of the techniques in real-world projects.
This is a fantastic resource for those wanting to take a deep dive into API development with Rust. Luca takes you on a journey, going down dead end and doubling back, all in the name of learning. Through it, you'll learn what works and what doesn't, not only because someone told you so, but because you've actually experienced it. By the end of this journey, you should be sufficient: you may not know everything there is about Rust development, but you'll have the foundations and tools necessary to progress further.
8wow, excellent book to hands on RUST via web development. You'll learn the hard way of building production grade API using RUST (via actix).
Surely not easy reading book, however the author trying to explain and give reasoning completely on how to develop web API with production scenarios in mind.
You can learn a lot about the webdev concepts in RUST without need to couple with actix. Many generic concepts that generally applicable for any languages/frameworks.
A very well written and clear to understand introduction of the concepts that are the foundation of a good project. Starting with basic tests and finishing with the real delivery to users, this book seemed for me like a checklist to do when building a new project from scratch, a checklist that I would never think about even though I have already 6 years in development. Good book. I recommend
Super nice hands on introduction to building a production service in Rust. This is not a theory book, but a book that you can follow when you are building your own code. Good advices and easy to read.
It's an okay book. Too little focus on Rust. It's mostly about how to create a toy web api. Imo too much of the content is about less important fluff like ci/CD, deployments, tracing, etc which is strictly speaking not specific to Rust.
Good modern Rust. I especially like the way the author starts with a simple concept, like logging, then refractors several times to bring it up to full instrumentation.
For some reason the Rust community *loves* to write countless lines of boilerplate code to achieve very simple things, and Luca Palmieri is no exception - the book starts out with a simple program, but with each chapter he adds structs, functions, more structs ontop of the existing structs and tons of boilerplate in general, just so that he can save two lines of code at some other place.
Then, he goes on to pull in hundreds of third party packages for an application that is supposed to run on a public server, being exposed under a public port - without batting an eye. There is not even a footnote that running such an mount of third party code *might* be a security concern. And keep in mind that these hundreds of packages wouldn't be required to accomplish the task at hand in the first place, if it wasn't for Palmieris love for boilerplate constructs.
Furthermore, the writing style is annoying - the author uses words like "empowerment" or "black magic" when talking about software development/programming. This is topped off with an emotional style using words like "awesome" or "yay" when talking about command-line tools, which I personally just find unnecessary.
You even encounter things like "yesssssss" or "what the fuck", making this really hard to read without cringing to the floor every other paragraph.
The positive thing about the book is that the author arranged the information in the same way you would go about stumbling yourself doing something like this - trying something out, failing, trying something else, succeeding, and then he explains why this works the way it does. For me personally, this style of learning fits much better than the books that present one concept per chapter, without any room for common errors or similar.
Nevertheless, I can't give this book more than one star for the complete lack of thoughts regarding the security implications of pulling tons of *unnecessary* dependencies in your project. He even claims that the book is supposed to teach Rust to programming beginners. I fear that one day I will have someone on my team who learned to "develop" software with the practices shown in this book; undoing that damage will take years.
As the name claims, this book is very good for those who want to use Rust in a production environment. It builds a e-mail delivery system from scratch using PostgreSQL and explain a lot important concepts of production application.
I only do not give it a 5/5 because the book isn't very well designed to be consumed through an e-reader like Kindle and the PDF version is not 100% either. But it's still a good value for the money.