Rust Web Programming : A hands-on guide to developing, packaging, and deploying fully functional Rust web applications, 2/e (Paperback)
Flitton, Maxwell
- 出版商: Packt Publishing
- 出版日期: 2023-01-27
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 666
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1803234695
- ISBN-13: 9781803234694
-
相關分類:
Rust 語言
海外代購書籍(需單獨結帳)
買這商品的人也買了...
-
$550$435 -
$305C# 開發 Android 應用實戰-使用 Mono for Android 和 .NET/C# (Professional Android Programming with Mono for Android and .NET/C#)
-
$3,050$2,898 -
$450$356 -
$380$300 -
$403React Native 跨平臺移動應用開發
-
$580$458 -
$1,810$1,720 -
$352Rust 編程從入門到實戰
-
$2,150$2,043 -
$750$495 -
$2,185$2,070
相關主題
商品描述
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來增強安全性和提升程式效能。
主要特點:
- 使用最新的網路技術,如distroless Rust伺服器、Terraform和AWS部署。
- 熟悉async概念,如使用低階框架Tokio的actors和排隊任務。
- 使用Rust建立具有資料庫、驗證和前端的完整網路應用程式。
書籍描述:
在開發網路應用程式時,安全性和高效能是否是您的主要關注點?
透過這本實用的Rust書籍,您將學習如何在網路上實現Rust,以實現所需的效能和安全性,同時學習建立完全運作的網路應用程式的技術和工具。
在這本第二版中,您將親自實踐新興的Rust網路框架,包括Actix、Rocket和Hyper。它還介紹了在部署網路應用程式時在AWS上進行HTTPS配置,並向您介紹了使用Terraform在AWS上自動化建立網路基礎設施的方法。此外,本版還涵蓋了高級的async主題。基於Tokio async運行時,本書探討了TCP和框架,使用actor框架實現async系統,以及在Redis上排隊任務以供多個工作節點消耗。最後,您將學習將Rust伺服器打包成distroless Rust Docker映像,並使用資料庫驅動程式,使伺服器的總大小為每個50Mb。
通過閱讀本書,您將對從頭開始建立堅固、功能完整且可擴展的網路應用程式充滿信心。
學到的內容:
- 通過創建基本的待辦事項清單網路應用程式,結構和建立可擴展的Rust網路應用程式。
- 在Rust網路應用程式中管理驗證和資料庫。
- 熟悉將網路應用程式包裝在distroless中。
- 了解網路開發的基本組件,如HTTPS、TCP和中介軟體。
- 使用Terraform在AWS上建立應用程式基礎設施,包括資料庫、伺服器、負載平衡器、HTTPS和URL路由。
- 使用Postman建立端對端測試。
- 使用Tokio實現actor模型的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. Rust 快速入門
2. 使用 Rust 設計網頁應用程式
3. 處理 HTTP 請求
4. 處理 HTTP 請求
5. 在瀏覽器中顯示內容
6. 使用 PostgreSQL 進行資料持久化
7. 管理使用者會話
8. 建立 RESTful 服務
9. 測試應用程式的端點和元件
10. 在 AWS 上部署應用程式
11. 在 AWS 上使用 NGINX 配置 HTTPS
12. 使用 Rocket 重新建立應用程式
13. 保持乾淨的網頁應用程式存儲庫的最佳實踐
14. 探索 Tokio 框架
15. 使用 Tokio 接受 TCP 流量
16. 在 TCP 上建立協議
17. 使用 Hyper 框架實現 Actor 和 Async
18. 使用 Redis 排隊任務