Section 3:Data Persistence
Data persistence is essential for modern day web applications as the demand on web applications is increasing. Luckily Rust has tools that can enable data persistence on PostgreSQL and other databases. With these tools combined with JSON Web Tokens, we can manage the user sessions on our Rust application.
However, this is not the end of data persistence. Due to the increasing demand on web applications, we also have to optimize the persistence, reading, and writing of our data. This is where RESTful service concepts come in handy. Implementing these concepts will have us caching data in our frontend with JavaScript to prevent excessive strain on our Rust application and improve the user's experience. Logging processes in our server are also going to be a good way to determine where to optimize them.
This section focuses on persisting data through a PostgreSQL database and managing it through Docker and the Diesel crate. It also covers migrations...