AWS Lambda SnapStart for Java Applications

  Рет қаралды 3,607

James Eastham

James Eastham

Күн бұрын

Пікірлер: 13
@mezagun53
@mezagun53 Жыл бұрын
Hello I tried Snapstart as in the video, but after 15 minutes, when I trigger the api again, the spring starts up again. Why ?
@serverlessjames
@serverlessjames Жыл бұрын
When you invoked the function did you invite the alias or the $LATEST version. I made this mistake at first, but you need to make sure you invoke against the alias as that is where the snapshot is taken
@mezagun53
@mezagun53 Жыл бұрын
@@serverlessjames thank you for answering. I paid particular attention to the alias issue. It isn't happening. Do I need to make another setting on aws or does snapstart become disabled after a certain time?
@DanielLpz1
@DanielLpz1 Жыл бұрын
Nice video, I have a question regarding the snapstart initialization attempts, I can see there are around 6 logs printed and some of them were successfully initialized, why is it trying multiple times? Is there any way to initialize the snapstart just once?
@serverlessjames
@serverlessjames Жыл бұрын
Great question Daniel. This is correct, and happens because Lambda takes the snapshots across different availability zones in parallel.
@DanielLpz1
@DanielLpz1 Жыл бұрын
@@serverlessjames thanks for your reply.
@HarryManchanda
@HarryManchanda Жыл бұрын
❤️
@victorpacheco3107
@victorpacheco3107 Жыл бұрын
@brunofsleite
@brunofsleite Жыл бұрын
Hello James, excellent videos, I like so much your channel. Could you please tell me how I can create a serverless aurora v2? Is it too complicated to adapt the code?
@serverlessjames
@serverlessjames Жыл бұрын
Thankyou 👌 do you mean connecting a Java application to a database running on Aurora serverless v2?
@brunofsleite
@brunofsleite Жыл бұрын
@@serverlessjames In this video series you created the database using cdk, right? Using the PostgreSQL engine. would it be possible to use PostgreSQL serverless aurora V2 in the same code that you used to create the infrastructure?
@arghyamitra3281
@arghyamitra3281 Жыл бұрын
I think if u use spring boot 3 or graalvm with Java startup time is very very less without this lambda feature
@serverlessjames
@serverlessjames Жыл бұрын
Thanks for the comment. SpringBoot 3 requires Java17 which isn't currently available in Lambda. You could run it as a custom runtime but that need a lot of work. In terms of GraalVM, Quarkus has a great blog comparing native images to SnapStart. Performance is comparable, with SnapStart just about coming in faster. However, enabling SnapStart is as simple as turning it on. GraalVM native images have a more complex build process quarkus.io/blog/quarkus-support-for-aws-lambda-snapstart/
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 124 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 7 МЛН
the balloon deflated while it was flying #tiktok
00:19
Анастасия Тарасова
Рет қаралды 34 МЛН
Optimize Java on Cloud Run
11:37
Google Cloud Tech
Рет қаралды 3,7 М.
Deploy a SpringBoot 3 API on AWS Lambda in 10 minutes
9:16
James Eastham
Рет қаралды 10 М.
JWT авторизация. Основы JWT - механизма.
6:45
Хочу вАйти
Рет қаралды 13 М.
AWS Lambda SnapStart for Java | Reduce cold start time
17:38
What skills are needed to become an AWS Solutions Architect?
6:45
Tech With Lucy
Рет қаралды 44 М.
Building Real-Time Applications with Cloudflare Durable Objects
16:08
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 124 МЛН