Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build API Servers with Rust and Actix
Rating: 4.5 out of 5(71 ratings)
581 students

Build API Servers with Rust and Actix

Learn to Build API Servers Using Actix Web and SqlX and Create a Twitter Api Clone
Created byDavid Choi
Last updated 11/2024
English

What you'll learn

  • Understand how to build Web Api with Actix Web
  • Understand how to Query and Update databases with SqlX
  • Understand coding in Rust using design patterns and loosely coupled architecture
  • Use Docker within examples to gain practical knowledge on how to build modern services

Course content

3 sections14 lectures3h 58m total length
  • Introduction: What We will Learn0:28

    Get an understanding of the architecture of Actix Web, its main features, and how we can customize the framework's capabilities for our own purposes

  • Architecture of Actix Web11:35

    Let's review the structure of an Actix Web app as well as setting up a basic instance

  • Extractors: Introduction and App State20:08
  • Extractors: The Core Extractors Path and Json20:43
  • Extractors: Multipart, Handling Forms and Files36:24
  • Response19:30
  • Error Handling19:33
  • Handlers22:56

Requirements

  • Intermediate Rust language knowledge and several years experience building servers in any language

Description

  1. Get a conceptual understanding of Actix Web's architecture and learn about its many features and capabilities.

  2. Learn how to setup and initialize an Actix Web Server. Learn how to build Route Handlers that respond to requests. Create unique Extractors to receive parameters in a type safe way. Handle Errors that may occur during Route Handler processing.

  3. Understand how SqlX works and how to query databases. Use SqlX to connect to Postgres, through a Docker image, and do CRUD operations like select, insert, update, and delete. Learn how to perform transactions in SqlX and how to exit a transaction early if an error occurs. Also learn about SqlX's database migration capabilities, so that you can create and modify schema as data needs change.

  4. Learn how to structure an Api Server. Creating Separation of Concerns, Encapsulation, and loose coupling of code. This will enhance your ability to continue building on the original application.

  5. Gain practical understanding on the code base for a large and realistic Twitter Api clone. We will be diving deep into Actix Web Routing, Extractors, Responders, Error Handling, SqlX queries, and more.

  6. All Course projects are built using Docker images containing both the Actix Web Server and Postgres database as needed for the lessons.

Who this course is for:

  • Intermediate Rust Programmers interested in gaining more advanced skills