Rust Web Programming: A hands-on guide to developing fast and secure web apps with the Rust programming language (Rust 網頁程式設計:使用 Rust 語言開發快速且安全的網頁應用程式實用指南)
Flitton, Maxwell
- 出版商: Packt Publishing
- 出版日期: 2021-02-26
- 定價: $1,460
- 售價: 8.0 折 $1,168
- 語言: 英文
- 頁數: 394
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1800560818
- ISBN-13: 9781800560819
-
相關分類:
Rust 語言
-
其他版本:
Rust Web Programming : A hands-on guide to developing, packaging, and deploying fully functional Rust web applications, 2/e (Paperback)
買這商品的人也買了...
-
$280$238 -
$332微服務架構與實踐
-
$560$437 -
$301SpringBoot 揭秘 : 快速構建微服務體系
-
$580$458 -
$450$356 -
$880$748 -
$1,660$1,577 -
$1,000$850 -
$520$406 -
$480$408 -
$600$468 -
$1,200$1,020 -
$580$458 -
$520$411 -
$407站點可靠性工程(SRE)實戰
-
$580$458
相關主題
商品描述
Adopt the Rust programming language by learning how to build fully functional web applications and services and address challenges relating to safety and performance
Key Features:
- Build scalable web applications in Rust using popular frameworks such as Actix, Rocket, and Warp
- Create front-end components that can be injected into multiple views
- Develop data models in Rust to interact with the database
Book Description:
Are safety and high performance a big concern for you while developing web applications?
While most programming languages have a safety or speed trade-off, Rust provides memory safety without using a garbage collector. This means that with its low memory footprint, you can build high-performance and secure web apps with relative ease.
This book will take you through each stage of the web development process, showing you how to combine Rust and modern web development principles to build supercharged web apps.
You'll start with an introduction to Rust and understand how to avoid common pitfalls when migrating from traditional dynamic programming languages. The book will show you how to structure Rust code for a project that spans multiple pages and modules. Next, you'll explore the Actix Web framework and get a basic web server up and running. As you advance, you'll learn how to process JSON requests and display data from the web app via HTML, CSS, and JavaScript. You'll also be able to persist data and create RESTful services in Rust. Later, you'll build an automated deployment process for the app on an AWS EC2 instance and Docker Hub. Finally, you'll play around with some popular web frameworks in Rust and compare them.
By the end of this Rust book, you'll be able to confidently create scalable and fast web applications with Rust.
What You Will Learn:
- Structure scalable web apps in Rust in Rocket, Actix Web, and Warp
- Apply data persistence for your web apps using PostgreSQL
- Build login, JWT, and config modules for your web apps
- Serve HTML, CSS, and JavaScript from the Actix Web server
- Build unit tests and functional API tests in Postman and Newman
- Deploy the Rust app with NGINX and Docker onto an AWS EC2 instance
Who this book is for:
This book on web programming with Rust is for web developers who have programmed in traditional languages such as Python, Ruby, JavaScript, and Java and are looking to develop high-performance web applications with Rust. Although no prior experience with Rust is necessary, a solid understanding of web development principles and basic knowledge of HTML, CSS, and JavaScript are required if you want to get the most out of this book.
商品描述(中文翻譯)
採用Rust程式語言,學習如何建立功能完整的網路應用程式和服務,並解決與安全性和效能相關的挑戰。
主要特點:
- 使用流行的框架(如Actix、Rocket和Warp)在Rust中建立可擴展的網路應用程式。
- 創建可注入多個視圖的前端元件。
- 在Rust中開發與資料庫互動的資料模型。
書籍描述:
在開發網路應用程式時,安全性和高效能是否是您的主要關注點?
儘管大多數程式語言在安全性和效能之間存在折衷,但Rust提供了內存安全性,而無需使用垃圾回收器。這意味著您可以輕鬆地建立具有低內存佔用的高效能和安全的網路應用程式。
本書將帶您進入網路開發過程的每個階段,向您展示如何結合Rust和現代網路開發原則來建立強大的網路應用程式。
您將從Rust的介紹開始,了解如何避免從傳統動態程式語言遷移時的常見問題。本書將向您展示如何為跨多個頁面和模組的專案結構化Rust程式碼。接下來,您將探索Actix Web框架,並啟動一個基本的網路伺服器。隨著進一步的學習,您將學習如何處理JSON請求,並通過HTML、CSS和JavaScript顯示網路應用程式的資料。您還將能夠持久化資料並在Rust中創建RESTful服務。之後,您將在AWS EC2實例和Docker Hub上為應用程式建立自動化部署流程。最後,您將在Rust中使用一些流行的網路框架並進行比較。
通過閱讀本書,您將能夠自信地使用Rust創建可擴展且高效的網路應用程式。
學到什麼:
- 在Rocket、Actix Web和Warp中結構化可擴展的網路應用程式。
- 使用PostgreSQL為您的網路應用程式應用資料持久化。
- 為您的網路應用程式建立登入、JWT和配置模組。
- 從Actix Web伺服器提供HTML、CSS和JavaScript。
- 在Postman和Newman中建立單元測試和功能API測試。
- 使用NGINX和Docker將Rust應用程式部署到AWS EC2實例。
本書適合對傳統語言(如Python、Ruby、JavaScript和Java)有編程經驗並希望使用Rust開發高效能網路應用程式的網路開發人員。雖然不需要事先了解Rust,但如果您想充分利用本書,則需要對網路開發原則有扎實的理解以及HTML、CSS和JavaScript的基本知識。