AWS Lambda Concurrency Explained

  Рет қаралды 2,000

James Eastham

James Eastham

Күн бұрын

In this video you will learn how all about AWS Lambda Concurrency. That includes both provisioned and reserved concurrency.
Concurrency allows you to control how you're function scales. Whether that be keeping execution environments active with provisioned concurrency or controlling the scaling with reserved concurrency.
All code samples are in .NET, but the same ideas apply regardless of programming language.
00:00 - Introduction
00:40 - Concurrecny Explained
01:55 - Introducing the test Lambda function
02:20 - Initial Benchmarks
03:10 - Enabling Provisioned Concurrency
04:20 - Code changes to improve performance
06:20 - Provisioned Concurrency Performance
08:40 - Reserved Concurrency
10:40 - Reserved Concurrency Demo
11:20 - Why Reserved Concurrency?
Provisioned Concurrency - docs.aws.amazon.com/lambda/la...
Reserved Concurrency - docs.aws.amazon.com/lambda/la...
Lumigo Article on Concurrency - lumigo.io/aws-lambda-performa...
AWS SAM Playlist - • .NET 6 & AWS SAM
Alias & Versions - • Aliases & Versions for...
Web - serverlessdotnet.dev
Twitter - / plantpowerjames
LinkedIn - / james-eastham

Пікірлер: 7
@vijethkashyap151
@vijethkashyap151 12 күн бұрын
This was helpful. Thanks!
@hyd1986
@hyd1986 Жыл бұрын
why did you remove your video about lambda request processing 🤔. I marked it to watch it later now I see its removed :(
@serverlessjames
@serverlessjames Жыл бұрын
Indeed! I had some feedback on the video and am going to revamp it slightly. The Lambda fundamentals content is very much on my radar still, it's just been rehashed slightly ☺️
@paragnairdev
@paragnairdev Жыл бұрын
James, this explanation was quite clear and interesting. Never used provisioned concurrency but now that I know what it actually does, I might start using it. I have always been a little unclear how reserved concurrency works when a lambda is set as a trigger for draining an SQS queue. If I have set it to 1 does just one item get picked up from the queue to process or do items get picked up and if there is already one being processed, it gets thrown back to the queue and then is picked up after the configured visibility timeout? Would you have some insight on this?
@serverlessjames
@serverlessjames Жыл бұрын
Fantastic question! So reserved concurrency restricts the number of Lambda execution environments. However, it does not change the behaviour of the SQS pollers. So if you had 100 messages in the queue and your reserved concurrency to 1, Lambda would still try to send all 100 to your function. Clearly, the majority of these would fail and be returned to the queue. So on and so forth... The best way to control the behaviour of how messages are pulled off SQS is using the settings on the event source itself (Batching window, batch size) as opposed to reserved concurrency.
@paragnairdev
@paragnairdev Жыл бұрын
@@serverlessjames Thanks for your response. Going to subscribe to your channel
@serverlessjames
@serverlessjames Жыл бұрын
@@paragnairdev thanks, I appreciate you subscribing 🫂
65. Solving SQS and Lambda concurrency problems
16:11
AWS Bites
Рет қаралды 2,4 М.
AWS Lambda scaling and throughput | AWS Lambda Fundamentals
2:34
Serverless Land
Рет қаралды 1,9 М.
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 1,9 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 11 МЛН
AWS Lambda Function Execution and Cold Start
13:17
Be A Better Dev
Рет қаралды 19 М.
AWS LAMBDA LIFECYCLE | .NET ON AWS | AWS Serverless | Amazon
16:17
What is OpenTelemetry?
12:55
Highlight
Рет қаралды 2,3 М.
What is Serverless in 2024 & Why You Should Care?
11:58
James Eastham
Рет қаралды 477
AWS SQS vs SNS vs EventBridge - When to Use What?
22:37
Be A Better Dev
Рет қаралды 169 М.
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 975 М.
Худшие кожаные чехлы для iPhone
1:00
Rozetked
Рет қаралды 1,4 МЛН
Это - iPhone 16 и вот что надо знать...
17:20
Overtake lab
Рет қаралды 119 М.