- 1 Introduction and Environment Setup Rust & Cargo Refresher: Prerequisites for ActixWhy Actix Web? Performance and Ecosystem OverviewBootstrapping Your First Actix ProjectYour First Endpoint: "Hello World" in Actix
- 2 Core Concepts and Architecture Understanding the Actix Runtime and HttpServerThe App Builder: Configuring Your ApplicationThe Request and Response Lifecycle
- 3 Routing Basics Defining Routes and HTTP MethodsUsing Path Parameters (Dynamic URLs)Extracting Query ParametersOrganizing Routes with Scopes and Service Configuration
- 4 Extractors: Handling Client Input Parsing JSON Request Bodies with web::JsonProcessing Form Data (web::Form)Managing Application State with web::DataReading HTTP Headers safely
- 5 Crafting Responses Returning JSON Data to the ClientCustomizing HTTP Status Codes and HeadersServing HTML Templates and Plain TextServing Static Files and Directories (actix-files)
- 6 Error Handling Understanding the ResponseError TraitMapping Rust Results to HTTP ResponsesBuilding Custom Error Enums for your APIStandardizing JSON Error Responses
- 7 Middleware Essentials What is Middleware in the Actix Ecosystem?Enabling the Built-in Logger MiddlewareManaging Cross-Origin Resource Sharing (CORS)Writing a Basic Custom Middleware
- 8 Database Integration (using SQLx) Setting up an Async Connection PoolInjecting the DB Pool into Actix App StatePerforming CRUD Operations in HandlersHandling and Translating Database Errors
- 9 Authentication and Security Implementing JWT (JSON Web Tokens) AuthenticationProtecting Routes with Identity and Session MiddlewarePassword Hashing Integration (Argon2/Bcrypt)Creating an Auth Extractor for Protected Routes
- 10 Asynchronous Operations and Concurrency Mastering Async/Await in Actix HandlersOffloading CPU-Bound Work with web::blockMaking External HTTP Requests (reqwest integration)Understanding Worker Threads and Concurrency Limits
- 11 Testing Your Actix Application Writing Unit Tests for Individual Extractors and HandlersIntegration Testing with actix_web::testMocking Application State and Databases in TestsTesting Authenticated Routes
- 12 Advanced Features Using Route Guards for Advanced Request FilteringStreaming Responses and Chunked Transfer EncodingIntroduction to WebSockets with actix-ws
- 13 Deployment and Production Environment Variables and Configuration ManagementCompiling for Release: Optimizing Binary Size and SpeedDockerizing Your Actix Web ApplicationSetting up HTTPS/TLS with Rustls