Home
:
Book details
:
Book description
Description of
Rust Web Programming A handson guide to Rust for modern web development, with microservices and nanoservices
B0D9M9FGQ4 EPUB Key FeaturesGet a comprehensive introduction to Rust for full-stack web developmentExplore the exciting evolution of Rust in recent years with WebAssembly, Axum, native TLS, and SurrealDBBuild code in a scalable way with microservice and nanoservice design patternsBook Description Rust is no longer just for systems programming. This book will show you why this safe and performant language is a crucial up-and-coming option for developing web applications, and get you on your way to building fully functional Rust web apps. You don't need any experience with Rust to get started, and this new edition also comes with a shallower learning curve. As you work through the book, you'll build a to-do application with authentication using a microservice architecture that compiles into one Rust binary, including the embedding of a frontend jvascript application in the same binary. The application will have end-to-end atomic testing and a deployment pipeline. By the end of this book, you'll fully understand the significance of Rust for web development. You'll also have the confidence to build robust, functional, and scalable Rust web applications from scratch. What you will learnBuild scalable Rust web applications as monoliths or microservicesDevelop a deeper understanding of async RustGet to grips with Rust language features like traits and the borrow checkerManage authentication and databases in Rust web appsBuild app infrastructure on AWS using TerraformLearn how to package and deploy Rust serversBuild unit tests and end-to-end tests for your Rust web apps with PythonWho this book is for This book is for web developers who are looking to learn or adopt Rust to build safe and performant web applications. This includes developers familiar with languages such as Python, Ruby, and jvascript. You don't need any prior experience in Rust to start this book. However, you'll need a solid understanding of web development principles, along with basic knowledge of HTML, CSS, and jvascript to get the most out of it. Table of ContentsA Quick Introduction to RusUseful Rust Patterns for Web ProgrammingEnd-to-End TestingDesigning Your Web Application in RustAsync RustProcessing HTTP RequestsDisplaying Content in the BrowserHandling HTTP RequestsData Persistence with PostgreSQLManaging User SessionsBuilding RESTful ServicesUnit TestingInjecting Rust in the Frontend with WebAssemblyDeploying our Application on AWSConfiguring Basic HTTPS with NGINXImplementing Native Rust TLSFrom Microservices to NanoservicesRocketAxumExploring the Tokio FrameworkRolling our Own HTTP Protocol from TCP with FramingGoing One Level Higher with the Hyper FrameworkBuilding gRPC ServersData Persistence with SurrealDB