Book

Rust Web Programming

This book covers the fundamental concepts needed to build a fully functional web application written in Rust that utilizes databases, authentication, and async concepts in the form of the actor model. You’ll learn how the Rust server is deployed on AWS using Terraform and Docker with HTTPS, a custom URL, and a database.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

22h12m

Language

English

About Book

Who Is This Book 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.

Book content

chapters 22h12m total length

A Quick Introduction to Rust

Designing Your Web Application in Rust

Handling HTTP Requests

Processing HTTP Requests

Displaying Content in the Browser

Data persistence with PostgreSQL

Managing User Sessions

Building RESTful Services

Testing Our Application Endpoints and Components

Deploying Our Application on AWS

Configuring HTTPS with NGINX on AWS

Recreating Our Application in Rocket

Best Practices for a Clean Web App Repository

Exploring the Tokio Framework

Accepting TCP Traffic with Tokio

Building Protocols on Top of TCP

Implementing Actors and Async with the Hyper Framework

Queuing Tasks with Redis

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required