This last part is all about rounding up our previous work and making it ready for production. This means adding a mechanism for authenticating users, so the public can’t just access or tamper with our data. We’ll also have a look at what it means to parameterize our application. Hardcoding variables like port numbers and URLs is not future-proof and makes it hard to adjust our application dynamically for various environments. The last chapter of part 3, and the book, is about testing.
Chapter 9 starts with stateless and stateful authentication and how to implement authentication middleware in our application. This gives us the chance to restrict API endpoints and resources to certain users.
With chapter 10, the business logic coding ends, and we talk about deployments. We first have to start to think about how to get all the hardcoded variables out of our application and into config or environment files. Then we’ll read them into our application and compile a Rust codebase for multiple architectures, as well as set it up inside a Docker container.