Rust Web Programming - Third Edition: A hands-on guide to Rust for modern web development, with microservices and nanoservices
暫譯: Rust 網頁程式設計(第三版):現代網頁開發的 Rust 實作指南,涵蓋微服務與納米服務

Flitton, Maxwell

  • 出版商: Packt Publishing
  • 出版日期: 2026-01-30
  • 售價: $1,840
  • 貴賓價: 9.5$1,748
  • 語言: 英文
  • 頁數: 674
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1835887767
  • ISBN-13: 9781835887769
  • 相關分類: Rust 語言
  • 海外代購書籍(需單獨結帳)

商品描述

A comprehensive guide to developing, packaging, and deploying Rust web applications - with new coverage on async Rust, WebAssembly, nanoservices, and more.

Purchase of the print or Kindle book includes a free eBook in PDF format.

Key Features:

- Get a comprehensive introduction to Rust for full-stack web development

- Explore the exciting evolution of Rust in recent years with WebAssembly, Axum, native TLS, and SurrealDB

- Build code in a scalable way with microservice and nanoservice design patterns

Book 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.

You'll get hands-on with emerging Rust web frameworks including Actix, Axum, Rocket, and Hyper. You'll look at injecting Rust into the frontend with WebAssembly and HTTPS configuration with NGINX. Later, you'll move on to more advanced async topics, exploring TCP and framing, and implementing async systems.

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 JavaScript 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 Learn:

- Build scalable Rust web applications as monoliths or microservices

- Develop a deeper understanding of async Rust

- Get to grips with Rust language features such as traits and the borrow checker

- Manage authentication and databases in Rust web apps

- Build app infrastructure on AWS using Terraform

- Learn how to package and deploy Rust servers

- Build unit tests and end-to-end tests for your Rust web apps with Python

Who 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 JavaScript.

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 JavaScript to get the most out of it.

Table of Contents

- A Quick Introduction to Rust

- Useful Rust Patterns for Web Programming

- Designing Your Web Application in Rust

- Async Rust

- Handling HTTP Requests

- Processing HTTP Requests

- Displaying Content in the Browser

- Injecting Rust in the Frontend with WebAssembly

- Data Persistence with PostgreSQL

- Managing User Sessions

- Communicating Between Servers

- Caching Auth Sessions

- Observability Through Logging

- Unit Testing

- End-to-End Testing

- Deploying Our Application on AWS

- Configuring HTTPS with NGINX on AWS

- Practicalities of Using Microservices and Nanoservices

- Low-Level Networking

- Distributed Computing

商品描述(中文翻譯)

一份全面的指南,涵蓋開發、打包和部署 Rust 網頁應用程式 - 包含有關 async Rust、WebAssembly、nanoservices 等的新內容。

購買印刷版或 Kindle 書籍可獲得免費的 PDF 格式電子書。

主要特色:
- 獲得全面的 Rust 全端網頁開發介紹
- 探索近年來 Rust 在 WebAssembly、Axum、原生 TLS 和 SurrealDB 等方面的激動人心的演變
- 以可擴展的方式構建代碼,使用微服務和 nanoservice 設計模式

書籍描述:
Rust 不再僅僅用於系統編程。本書將向您展示為什麼這種安全且高效的語言是開發網頁應用程式的重要新選擇,並幫助您開始構建功能完整的 Rust 網頁應用程式。您不需要任何 Rust 的經驗即可開始,這個新版本也具有較淺的學習曲線。

您將親手操作新興的 Rust 網頁框架,包括 Actix、Axum、Rocket 和 Hyper。您將學習如何使用 WebAssembly 將 Rust 注入前端,以及如何使用 NGINX 配置 HTTPS。接下來,您將進入更高級的 async 主題,探索 TCP 和幀處理,並實現 async 系統。

在您閱讀本書的過程中,您將構建一個具有身份驗證的待辦應用程式,使用微服務架構編譯成一個 Rust 二進位檔,並在同一二進位檔中嵌入前端 JavaScript 應用程式。該應用程式將具有端到端的原子測試和部署管道。

到本書結束時,您將完全理解 Rust 在網頁開發中的重要性。您還將有信心從零開始構建穩健、功能完整且可擴展的 Rust 網頁應用程式。

您將學到的內容:
- 構建可擴展的 Rust 網頁應用程式,無論是作為單體還是微服務
- 深入理解 async Rust
- 熟悉 Rust 語言特性,如 traits 和借用檢查器
- 在 Rust 網頁應用程式中管理身份驗證和數據庫
- 使用 Terraform 在 AWS 上構建應用基礎設施
- 學習如何打包和部署 Rust 伺服器
- 使用 Python 為您的 Rust 網頁應用程式構建單元測試和端到端測試

本書適合對象:
本書適合希望學習或採用 Rust 來構建安全且高效的網頁應用程式的網頁開發人員。這包括熟悉 Python、Ruby 和 JavaScript 等語言的開發人員。

您不需要任何 Rust 的先前經驗即可開始閱讀本書。然而,您需要對網頁開發原則有扎實的理解,以及基本的 HTML、CSS 和 JavaScript 知識,以便充分利用本書。

目錄:
- Rust 簡介
- 用於網頁編程的有用 Rust 模式
- 在 Rust 中設計您的網頁應用程式
- Async Rust
- 處理 HTTP 請求
- 處理 HTTP 請求
- 在瀏覽器中顯示內容
- 使用 WebAssembly 將 Rust 注入前端
- 使用 PostgreSQL 進行數據持久化
- 管理用戶會話
- 伺服器之間的通信
- 緩存身份驗證會話
- 通過日誌實現可觀察性
- 單元測試
- 端到端測試
- 在 AWS 上部署我們的應用程式
- 在 AWS 上使用 NGINX 配置 HTTPS
- 使用微服務和 nanoservices 的實用性
- 低級網絡
- 分佈式計算

最後瀏覽商品 (20)