How To
Learn how to build cool stuff
Rust with Serverless
18 parts • Complete series
Why Rust for Serverless?
Hmmmmm...
Installation
Setting up the Rust toolchain and AWS SAM for serverless development.
Bootstrap Rust Template
How to create a new Rust project using AWS SAM
Organize Files Structure
How to structure your Rust serverless project for real-world use.
Updating Configuration Files
We just moved everything around. Now we need to tell our tools where those files went.
Writing Your First Lambda Handler
Time to actually write some Rust code that runs on Lambda.
Adding Lambda to template.yaml
Your code exists, but AWS doesn't know about it yet. Let's fix that.
Connecting Lambda to API Gateway
The Lambda exists, the routes exist, but they don't talk to each other yet.
Building and Deploying
Time to see your code live in the cloud.
Path Parameters and Query Strings
Making your API dynamic by reading input from the URL.
Returning JSON Responses
Standardizing your API output with a consistent structure.
Shared Code with lib.rs
Stop copy-pasting code across your Lambda functions.
Handling POST Requests
Learn how to receive and parse JSON data from your clients.
One Lambda, Multiple Endpoints
Reducing overhead by grouping related logic into a single function.
Environment Variables and Stages
Controlling your code's behavior based on the environment.
Error Handling the Rust Way
Stop returning generic 500 errors and start providing useful feedback.
Using a Makefile for Builds
Automating your build process for speed and consistency.
Single vs Multi-Endpoint Lambdas: When to Use What
Choosing the right architecture for your serverless Rust project.