Process Kinesis Streams with AWS Lambda & Rust

06/19/2024
0
Embed

Hi, I'm James. And in this video you're going to learn how to build a high performance, safe and sustainable stream processing using Rust, AWS Lambda and Amazon Kinesis.

00:00 - Introduction
01:30 - Handling Kinesis events
03:40 - Processing a Kinesis record
06:10 - Handling Errors
09:20 - Build & Deploy
10:20 - Simulate IoT Devices

Links
Serverless Rust Docs - https://serverless-rust.com
Serverless Rust GitHub - https://github.com/ServerlessDevelopers/serverless-rust
Install Rust - https://www.rust-lang.org/tools/install
Install Cargo Lambda - https://www.cargo-lambda.info/guide/getting-started.html
Understanding Lambda Invocation Models - https://aws.amazon.com/blogs/architecture/understanding-the-different-ways-to-invoke-lambda-functions/

ColdStart Analysis Query
```
filter @type="REPORT"
| fields greatest(@initDuration, 0) + @duration as duration, ispresent(@initDuration) as coldstart
| stats count(*) as count, pct(duration, 50) as p50, pct(duration, 90) as p90, pct(duration, 99) as p99, max(duration) as max by coldstart
```

Web - https://jameseastham.co.uk
Twitter - https://twitter.com/plantpowerjames
LinkedIn - https://www.linkedin.com/in/james-eastham/

Categories:
Tags: