How To

Learn how to build cool stuff

Rust with Serverless

18 parts • Complete series

View Series
1

Why Rust for Serverless?

Hmmmmm...

2

Installation

Setting up the Rust toolchain and AWS SAM for serverless development.

3

Bootstrap Rust Template

How to create a new Rust project using AWS SAM

4

Organize Files Structure

How to structure your Rust serverless project for real-world use.

5

Updating Configuration Files

We just moved everything around. Now we need to tell our tools where those files went.

6

Writing Your First Lambda Handler

Time to actually write some Rust code that runs on Lambda.

7

Adding Lambda to template.yaml

Your code exists, but AWS doesn't know about it yet. Let's fix that.

8

Connecting Lambda to API Gateway

The Lambda exists, the routes exist, but they don't talk to each other yet.

9

Building and Deploying

Time to see your code live in the cloud.

10

Path Parameters and Query Strings

Making your API dynamic by reading input from the URL.

11

Returning JSON Responses

Standardizing your API output with a consistent structure.

12

Shared Code with lib.rs

Stop copy-pasting code across your Lambda functions.

13

Handling POST Requests

Learn how to receive and parse JSON data from your clients.

14

One Lambda, Multiple Endpoints

Reducing overhead by grouping related logic into a single function.

15

Environment Variables and Stages

Controlling your code's behavior based on the environment.

16

Error Handling the Rust Way

Stop returning generic 500 errors and start providing useful feedback.

17

Using a Makefile for Builds

Automating your build process for speed and consistency.

18

Single vs Multi-Endpoint Lambdas: When to Use What

Choosing the right architecture for your serverless Rust project.