Build backend servers, services, and front-ends in Rust to get fast, reliable, and maintainable applications.
Rust Servers, Services, and Apps teaches you how to build web servers, RESTful services, server-rendered apps, and client front-ends in Rust. You’ll learn to write code with small and predictable resource footprints, and build high-performing applications with unmatched safety and reliability.
In Rust Servers, Services, and Apps, you’ll learn
Developing database-backed web services in Rust
Building and securing RESTful APIs
Writing server-side web applications in Rust
Measuring and benchmarking web service performance
Packaging and deploying web services
Full-stack Rust applications
About the Technology
The blazingly fast, safe, and efficient Rust language has been voted “most loved” for five consecutive years on the StackOverflow survey. It’s easy to see why. Rust combines all the features of a modern language with the low-latency power of C. Its efficiency will slash your runtime footprint—and your cloud hosting bills—and its flexibility lets you write network programs and high-level applications with equal ease.
About the book
Rust Servers, Services, and Apps is a hands-on guide to developing modern distributed web applications with Rust. You’ll learn how to build efficient services, write custom web servers, and even build full-stack applications end-to-end in Rust.
You’ll start with the foundations, using Rust to build an HTTP server, and RESTful API that you’ll secure, debug, and evolve with fearless refactoring. You’ll then put Rust through its paces to develop a digital storefront service, and a single-page client-side application. This fast-paced book is packed with code samples you can adapt to your own projects, and detailed annotations to help you understand how Rust works under the hood.
Author(s): Prabhu Eshwarla
Publisher: Manning Publications
Year: 2023
Language: English
Pages: 404
MEAP_VERSION_14
Welcome
Part_1_Web_servers_and_services
1_Why_Rust_for_web_applications?
2_Writing_a_basic_web_server_from_scratch
3_Building_a_RESTful_Web_Service
4_Performing_database_operations
5_Handling_Errors
6_Evolving_the_APIs_and_fearless_refactoring
Part_2_Server-side_web_applications
7_Introduction_to_server-side_web_apps_in_Rust
8_Working_with_templates_for_tutor_registration
9_Working_with_forms_for_course_maintenance
Part_3_Advanced_topic:_Async_Rust
10_Understanding_Async_Rust
11_Building_a_P2P_node_with_Async_Rust
Part_4_Moving_to_production
12_Deploying_web_services_with_Docker
Appendix_A._Postgres_installation