Building Lambda functions in Rust

Subscribers:
950
Published on ● Video Link: https://www.youtube.com/watch?v=mssQ_c0mJyM



Category:
Discussion
Duration: 1:19:46
268 views
15


In this video, we're diving deep into real-world challenges, starting with why Rust is great for Lambda functions and how it can save you money. We'll tackle the task of automating tag lists for restaurant menus, moving from Python to Rust for better performance.

In this part, we're getting hands-on with deploying our Rust Lambda function to AWS. We'll talk about the different ways to do it and why we chose the Cargo Lambda toolkit. Despite a few bumps along the way, we'll guide you through the deployment process, even touching on the use of Zig for cross-compilation.

As we move forward, we'll explore SAM (Serverless Application Model) for deploying Lambda functions, sharing practical tips on creating SAM templates and deploying with SAM CLI commands. Join us as we troubleshoot issues, discuss packaging choices, and explain the impact on performance.

Wrapping things up, we'll have a chat about the ups and downs of deployment, with some laughs along the way. We want to thank all our viewers and invite you to subscribe to our YouTube channel for more useful content. Stick around as we plan to visit another streamer's channel for more coding fun!


Chapters:

00:00:00 Intro
00:00:56 Why write Lambda Functions in Rust?
00:02:34 The use case: writing automation for a Restaurant Mobile App
00:07:13 Review of the original Python code
00:11:30 Reviewing the AirTable APIs
00:16:34 Installing Cargo-Lambda and bootstrapping a new project with it
00:20:49 Reviewing the code generated by Cargo-Lambda and changing the event type to a generic JSON
00:26:06 Testing our Lambda locally
00:30:50 Packaging and deploying to AWS with Cargo-Lambda + testing on the AWS web console
00:42:05 Infrastructure as Code with AWS SAM
00:54:35 Deploying our project using SAM
01:13:30 Testing our new SAM application on the AWS web console
01:18:42 Summary


⛓️ Links:

- Code Repository: https://github.com/gambuzzi/tag-updates-lambda
- Cargo Lambda extensions: https://www.cargo-lambda.info
- Crontab editor and validator: https://crontab.guru
- SAM, Serverless Application Model: https://aws.amazon.com/serverless/sam/
- On-demand Container Loading in AWS Lambda (paper): https://arxiv.org/abs/2305.13162


➡️ Follow us on Twitch for more live streams at https://twitch.tv/loige

#Rust #AWS #Lambda #Cloud #serverless




Other Videos By Luciano Mammino (loige)


2024-09-02Building Tinykit: a simple lead generation app on AWS Serverless with Rust - Part 8
2024-08-26Building Tinykit: a simple lead generation app on AWS Serverless with Rust - Part 7
2024-08-14Building Tinykit: a simple lead generation app on AWS Serverless with Rust - Part 6
2024-07-29Building Tinykit: a simple lead generation app on AWS Serverless with Rust - Part 5
2024-06-11Building Tinykit: a simple lead generation app on AWS Serverless with Rust - Part 4
2024-06-04Building Tinykit: a simple lead generation app on AWS Serverless with Rust - Part 3
2024-05-27Building Tinykit: a simple lead generation app on AWS Serverless with Rust - Part 2
2024-04-15Building Tinykit: a simple lead generation app on AWS Serverless with Rust - Part 1
2024-04-09Building Lambda functions in Rust - part 3
2024-03-19Building Lambda functions in Rust - part 2
2024-03-12Building Lambda functions in Rust
2024-02-27Parsing the Redis Serialization Protocol (RESP) in Rust with nom (Part 3)
2024-02-20Parsing the Redis Serialization Protocol (RESP) in Rust with nom (Part 2)
2024-02-05Exploring OramaSearch with Michele Riva - Indexing and searching blog posts
2024-01-30Intro to nom, a parser combinator library for Rust
2024-01-15Automating blog post descriptions and SEO metadata with Amazon Bedrock
2023-12-11Solving Advent Of Code 2023 day 11
2023-12-04Solving Advent Of Code 2023 day 1 to 3
2023-11-13Building a Twitch Chat Game in Rust part 5 - Twitch Live Stream
2023-11-06Building a Twitch Chat Game in Rust part 4 - Twitch Live Stream
2023-09-18Building a Twitch Chat Game in Rust part 3 - Twitch Live Stream



Tags:
Rust
Lambda functions
AWS
serverless
restaurant automation
Python
Cargo Lambda toolkit
SAM
Serverless Application Model
deployment
Zig
cross-compilation
programming
coding
live coding
technical discussion
optimization
troubleshooting
SAM templates
AWS Lambda
CloudFormation
practical coding
restaurant menu
automation script