Rust Web Programming : A hands-on guide to developing, packaging, and deploying fully functional Rust web applications, 2/e (Paperback)
暫譯: Rust 網頁程式設計:開發、打包與部署完整功能 Rust 網頁應用程式的實作指南,第二版(平裝本)

Flitton, Maxwell

  • 出版商: Packt Publishing
  • 出版日期: 2023-01-27
  • 售價: $2,030
  • 貴賓價: 9.5$1,929
  • 語言: 英文
  • 頁數: 666
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1803234695
  • ISBN-13: 9781803234694
  • 相關分類: Rust 語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

相關主題

商品描述

Use the Rust programming language to build fully functional web applications with async Rust to amplify security and boost the performance of your programs

Key Features

- Work with cutting-edge web techniques such as distroless Rust servers, Terraform, and AWS deployment
- Get acquainted with async concepts such as actors and queuing tasks using lower-level frameworks like Tokio
- Build a full web application in Rust with a database, authentication, and frontend

Book Description

Are safety and high performance a big concern for you while developing web applications?

With this practical Rust book, you'll discover how you can implement Rust on the web to achieve the desired performance and security as you learn techniques and tooling to build fully operational web apps.

In this second edition, you'll get hands-on with implementing emerging Rust web frameworks, including Actix, Rocket, and Hyper. It also features HTTPS configuration on AWS when deploying a web application and introduces you to Terraform for automating the building of web infrastructure on AWS. What's more, this edition also covers advanced async topics. Built on the Tokio async runtime, this explores TCP and framing, implementing async systems with the actor framework, and queuing tasks on Redis to be consumed by a number of worker nodes. Finally, you'll go over best practices for packaging Rust servers in distroless Rust Docker images with database drivers, so your servers are a total size of 50Mb each.

By the end of this book, you'll have confidence in your skills to build robust, functional, and scalable web applications from scratch.

What you will learn

- Structure and build scalable Rust web apps by creating a basic to-do list web app
- Manage authentication and databases in Rust web applications
- Get to grips with wrapping web applications in distroless
- Understand the building blocks of web development such as HTTPS, TCP, and middleware
- Build app infrastructure on AWS using Terraform with databases, servers, load balancers, HTTPS, and URL routing
- Build end-to-end tests using Postman
- Build async systems implementing the actor model using Tokio

Who this book is for

This Rust programming book is for web developers who want to learn and implement Rust to build web applications. Developers familiar with languages such as Python, Ruby, and JS will be able to use this book to build high performant web apps with Rust.

Although no prior experience in Rust is necessary, a solid understanding of web development principles, along with basic knowledge of HTML, CSS, and JavaScript, is necessary to get the most out of this book.

商品描述(中文翻譯)

使用 Rust 程式語言來構建功能完整的網頁應用程式,利用 async Rust 來增強安全性並提升程式的效能

主要特點

- 使用尖端的網頁技術,如無發行版的 Rust 伺服器、Terraform 和 AWS 部署
- 熟悉 async 概念,如使用低階框架 Tokio 的演員和排隊任務
- 在 Rust 中構建一個完整的網頁應用程式,包含資料庫、身份驗證和前端

書籍描述

在開發網頁應用程式時,安全性和高效能是否是您非常關心的問題?

透過這本實用的 Rust 書籍,您將發現如何在網路上實現 Rust,以達到所需的效能和安全性,同時學習構建功能完整的網頁應用程式的技術和工具。

在這第二版中,您將親手實現新興的 Rust 網頁框架,包括 Actix、Rocket 和 Hyper。它還涵蓋了在 AWS 上部署網頁應用程式時的 HTTPS 配置,並介紹 Terraform 用於自動化在 AWS 上構建網頁基礎設施。此外,本版還涵蓋了進階的 async 主題。基於 Tokio async 執行時,這部分探討了 TCP 和封裝,實現使用演員框架的 async 系統,以及在 Redis 上排隊任務以供多個工作節點消耗。最後,您將學習如何將 Rust 伺服器打包在無發行版的 Rust Docker 映像中,並包含資料庫驅動程式,使您的伺服器總大小為每個 50Mb。

在本書結束時,您將對從零開始構建穩健、功能完整且可擴展的網頁應用程式充滿信心。

您將學到的內容

- 通過創建一個基本的待辦事項清單網頁應用程式來結構和構建可擴展的 Rust 網頁應用程式
- 在 Rust 網頁應用程式中管理身份驗證和資料庫
- 熟悉將網頁應用程式包裝在無發行版中
- 理解網頁開發的基本構件,如 HTTPS、TCP 和中介軟體
- 使用 Terraform 在 AWS 上構建應用程式基礎設施,包括資料庫、伺服器、負載平衡器、HTTPS 和 URL 路由
- 使用 Postman 構建端到端測試
- 使用 Tokio 實現演員模型的 async 系統

本書適合誰

這本 Rust 程式設計書適合希望學習和實現 Rust 以構建網頁應用程式的網頁開發人員。熟悉 Python、Ruby 和 JS 等語言的開發人員將能夠利用這本書來使用 Rust 構建高效能的網頁應用程式。

雖然不需要具備 Rust 的先前經驗,但對網頁開發原則的扎實理解,以及對 HTML、CSS 和 JavaScript 的基本知識,對於充分利用這本書是必要的。

目錄大綱

1. A Quick Introduction to Rust
2. Designing Your Web Application in Rust
3. Handling HTTP Requests
4. Processing HTTP Requests
5. Displaying Content in the Browser
6. Data persistence with PostgreSQL
7. Managing User Sessions
8. Building RESTful Services
9 .Testing Our Application Endpoints and Components
10. Deploying Our Application on AWS
11. Configuring HTTPS with NGINX on AWS
12. Recreating Our Application in Rocket
13. Best Practices for a Clean Web App Repository
14. Exploring the Tokio Framework
15. Accepting TCP Traffic with Tokio
16. Building Protocols on Top of TCP
17. Implementing Actors and Async with the Hyper Framework
18. Queuing Tasks with Redis

目錄大綱(中文翻譯)

1. A Quick Introduction to Rust

2. Designing Your Web Application in Rust

3. Handling HTTP Requests

4. Processing HTTP Requests

5. Displaying Content in the Browser

6. Data persistence with PostgreSQL

7. Managing User Sessions

8. Building RESTful Services

9 .Testing Our Application Endpoints and Components

10. Deploying Our Application on AWS

11. Configuring HTTPS with NGINX on AWS

12. Recreating Our Application in Rocket

13. Best Practices for a Clean Web App Repository

14. Exploring the Tokio Framework

15. Accepting TCP Traffic with Tokio

16. Building Protocols on Top of TCP

17. Implementing Actors and Async with the Hyper Framework

18. Queuing Tasks with Redis