Build a Serverless REST API with Rust & AWS Lambda

preview_player
Показать описание
Hi, I'm James. Welcome to another video in this series on building serverless applications on AWS with Rust.

In this tutorial, you will learn how you can deploy a more complete serverless API with multiple endpoints. Each API endpoint is handled by its own individual Lambda function, but we deploy all functions from the same codebase, Rust project and SAM Template.

00:00 - Introduction
00:30 - What are we building
01:30 - Binary Targets
02:30 - Project Structure Changes
03:00 - Add a Shared Struct
05:10 - Implement the GET handler
08:25 - Compile the code
09:10 - Update the SAM template
10:00 - Deploy & Test
11:15 - Using Shared code

Links

Рекомендации по теме
Комментарии
Автор

Do you have a Github repo link for the code in this video?

guild_navigator
Автор

Thanks for sharing and looking forward to more Rust & AWS videos. You are doing a wonderful job and explain well.

mmedenblikable
Автор

Nice video. There is little material on this combo Rust + serverless out there. It would be nice to see best practices for developing and debugging quickly. I reviewed a SAM workshop on AWS but was left a little hesitant about how to optimize iteration and development time.

al
Автор

Hi, I just now stumbled upon your video. Great work!
I have one question: is it necessary to build different binaries for different endpoints or could you have all the endpoints in one binary and then pattern match on the path and http method to execute the right handler? Thanks 😊

xwproduction
Автор

Can u give the first simple deployed rust code ?as there is some errors when trying to deploy all three functions due to size constraints.

Abhishek
Автор

I swear I run this sam init. Go through the prompts. Update the cargo dependencies as for now they show behind. None of the commands provide the Makefile but that's easy to create. Now as for uploading Im following the SAM CLI prompts and it uploads but I have to delete the target dirs created from the build and leave the bootstrap only cause it errors out saying the binary is too large. So once it does upload after I delete the other dirs I mentioned I get 400 and 500 errors. Now knowing 400 is client side, the most I get is that it cant find the bootstrap. It's been super stressful. Coming from serverless framework and writing lambdas in python.

jonathanbecerra
join shbcf.ru