Lambdas powered with Rust for Serverless workloads 🚀☁️ - Issue #25
Rusty Lambdas with the performance of Lighting McQueen
Lambda functions have been reported low Cold Start times with Rust runtime, not only that but also performance has shown significant difference when compared with other runtimes. This issue focuses on Lambda functions with Rust runtimes.
😜 The word “rusty” hits my memory from the Cars movie and you can see the reference to the performance with that of Lighting McQueen (a character from the Cars movie).
Students, check out the new AWS Cloud Clubs which is a student-driven user group for peer-to-peer learning and more opportunities.
📢 What's new in AWS Serverless
Monitoring is just getting easier with the AWS Lambda functions now supporting CloudWatch metrics for asynchronous invocations. This has introduced AsyncEventsReceived
, AsyncEventAge
, AsyncEventsDropped
metrics.
🚀 AWSome content to learn from
Cliff Crosland introduces us to Lambda functions with Rust runtime in his blog Getting started with serverless Rust in AWS Lambda where he explains why would one choose Rust as their go-to runtimes and walks through the setup with cargo-lambda
.
James Eastham also talks about how to get started with Rust Lambda functions in his YouTube tutorial with a detailed walkthrough of the setup, template, and also how to deploy with AWS SAM along with how it has improvised the performance.
In his first blog post, J Clerck writes about a Lambda function with Rust runtime that can archive your pictures with a code walkthrough of achieving it using AWS SAM and cargo-lambda
.
Pubudu Jayawardana writes about how we could use EventBridge Pipes to split messages from a single SQS queue to multiple SQS queues. This blog explains the problem in current architecture with an external producer posting messages into a single queue and that would have to resolve into the different targetted queues with the solution being EventBridge Pipes.
Rohini Gaonkar in her YouTube series talks about AWS Application Composer which showcases how you can visually design and build Serverless applications with Infrastructure as Code (IaC) and generate a SAM template.
Jimmy Dahlqvist writes about Serverless Patterns which are commonly used across Serverless solutions either with storage first, circuit breakers, feature flags, or Step Functions CRUD.
AWS Lambda Smart Feature Flags - now with Time Based Conditions by Ran Isenberg talks about how feature flags can enhance your CI/CD with a detailed explanation of time conditions such as a data time range, specific weekdays, or hour ranges.
⚒️ What's happening with AWS Serverless tools
AWS SAM CLI introduces sam list which gives developers access to information such as deployed resources, endpoints, and stack outputs. AWS SAM also launches SAM Connectors which enables developers to define the resources with needed permissions.
ServerlessLand Repos has a collection of Serverless repos from use-case-based repos to examples.
🗓️ Mark your calendars
It’s time for the re:Cap season -
AWS UG Nashik on February 18th, 2023.
AWS UG Colombo on February 25th, 2023.
And many more AWS UGs are hosting them!
AWS UG Bengaluru is hosting the February edition of the meet-up on February 25th, 2023.
ServerlerssDays are happening -
ServerlessDays Belfast 2023 on February 28th, 2023.
ServerlessDays ANZ 2023 on March 10th, 2023.
ServerlessDays Paris 2023 on June 7th, 2023.
AWS Community Days happening -
ACD Dehradun on March 4th, 2023.
ACD Hyderabad happening in March.
⭐ Pick of the month
This month we will look into AWS Lambda functions with SQS and SNS triggers. Lambda functions are the most common choice of compute in a Serverless application and these Lambdas could be triggered with multiple different AWS Services, of them is Amazon SQS and Amazon SNS.
Amazon SQS has a queue trigger for the Lambda function, in this case whenever a message is posted into the queue, it triggers the Lambda function. Amazon SNS has a topic subscription with a Lambda function and whenever there is a message that is sent to the topic, it triggers the Lambda function.
You can read more about it from Jodiann Henry’s blog on AWS in Plain English about Triggering Lambda Function Using AWS SQS and SNS which explains how you can use Boto3 and AWS CLI to create the needed resources and trigger them.
👨💻 Word from the author
It’s a 🦀 February with the love of Serverless all around!
I’m happy to share that blog posts are under The Serverless Terminal domain - https://blog.theserverlessterminal.com/ and a new blog post about Building Serverless apps with more configurations was published which talks about direct integrations and how they can play a vital role in production Serverless workload and the blog is even featured on Hashnode.
The Serverless Terminal is also now on Twitter with the handle @theslsterminal.
Until next time, happy building on Serverless!