AWS Lambda Concurrency Explained

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

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 26 күн бұрын
This was helpful. Thanks!
@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 🫂
@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 ☺️
AWS SQS vs SNS vs EventBridge - When to Use What?
22:37
Be A Better Dev
Рет қаралды 171 М.
👉 Microsoft Data Modeling
1:28:32
365Proz
Рет қаралды 2,9 М.
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 19 МЛН
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
BATEK_OFFICIAL
Рет қаралды 6 МЛН
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
This Week Will Be HISTORIC For The Stock Market
28:32
StockedUp
Рет қаралды 61 М.
The only Cloud services you actually need to know
17:17
NeetCodeIO
Рет қаралды 94 М.
Understand Observability for Event-Driven Systems
15:09
James Eastham
Рет қаралды 314
Master AWS Lambda with Java 17 in Just 2 Minutes!
2:00
Carlos Chacin
Рет қаралды 649
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
AWS SQS Overview For Beginners
28:49
Be A Better Dev
Рет қаралды 114 М.
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 9 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН