Java 17 🤝 AWS Lambda: Creating Serverless Functions in Java & Spring with Java 17

  Рет қаралды 20,736

Dan Vega

Dan Vega

Жыл бұрын

Unleash the power of serverless computing with "Java 17 🤝 AWS Lambda: Creating Serverless Functions in Java & Spring with Java 17"! This tutorial will guide you through building an AWS Lambda function using Java 17 and Spring, which offers both efficiency and versatility. You'll also learn how to take advantage of the new features in JDK 17 as you deploy your next serverless functions.
🔗Resources & Links mentioned in this video:
AWS Lambda now supports Java 17: aws.amazon.com/blogs/compute/...
GitHub Repo - Java 17: github.com/danvega/hello-java-17
GitHub Repo - Spring Cloud Function: github.com/danvega/scf-17
👋🏻Connect with me:
Website: www.danvega.dev
Twitter: / therealdanvega
Github: github.com/danvega
LinkedIn: / danvega
Newsletter: www.danvega.dev/newsletter
SUBSCRIBE TO MY CHANNEL: bit.ly/2re4GH0 ❤️

Пікірлер: 39
@nb-th7kr
@nb-th7kr Жыл бұрын
small note why I think snapstart did not work for you: 18:14 you clicked back to the function instead of testing the snapshot of the function by clicking "test" in the tab. When I tested it for me, cold start time for the function itself was around 2200-3000ms. Cold start time for the snapstart version was 600-800ms
@huw1676
@huw1676 2 ай бұрын
This is really good, and exactly what I needed. Thank you for making this straightforward and easy to understand.
@joels1469
@joels1469 10 ай бұрын
Just found this video! Also love the shirt! Love Cleveland!!!
@user-fc8ut5ww4v
@user-fc8ut5ww4v Жыл бұрын
Very appreciate your content!!! You are one of the best Spring teachers in the world! Btw Dan you mistyped "that" in your website on Blog tab
@LoveForJava
@LoveForJava Жыл бұрын
As usual quality content 🙌
@FMTMoro
@FMTMoro Жыл бұрын
Thank you Dan.
@codertravel99
@codertravel99 Жыл бұрын
Thankyou so much @DenVega. It's my humble request to you pls make a detailed video or series on spring cloud function for serverless programming. Please from love of my heart for such of awesome content always ❤️❤️❤️
@DanVega
@DanVega Жыл бұрын
What are you looking for? I have a video that I did in the past on building functions using Spring Cloud Function.
@codertravel99
@codertravel99 Жыл бұрын
@@DanVega hey hi I'm new to spring cloud function for serverless and I'm working in project where i have to pass objects and perform crud after that I can move also and one more thing that working with se bucket to upload videos or images etc all these are my requirement but I'm not finding any solution if possible then pls help.
@indiraparasa6805
@indiraparasa6805 Жыл бұрын
@DanVega, very understandable and useful content, I am looking for retrieving secrets from secret manager in init phase, it should not hit for all invokes, how can we handle that
@sakthinivas1840
@sakthinivas1840 5 ай бұрын
Hi Dan, thanks for the great content. Do you know how to test the Lambda function natively on AWS when the application has multiple functions?
@neeraj1905
@neeraj1905 9 ай бұрын
Thanks Dan. I love watching uour videos. They are very informative… 🙏🙏🙏But my concern is that the real power of springboot is not in coding for some plain functions. Its all about using autowiring of service layer, repository layer, jpa, rest templates and having some endpoints being exposed via controllers. Can we achieve all that with AWS lambda and Springboot.
@Rostik_13
@Rostik_13 Жыл бұрын
Go, go, go!😃
@eiei1975
@eiei1975 10 ай бұрын
Great content as usual. Why did u need to add Spring web dependency? Is this is a must for aws lambda? can't I test it on AWS lambda without web dependency?
@sergiocoder
@sergiocoder 6 ай бұрын
Could you please also show how to create multiple functions and call them via URL? And if it's possible, how to route the functions to an existing Controller's methods. Thanks!
@JeffYu-sj4vr
@JeffYu-sj4vr 2 ай бұрын
thanks for video, The main Cron of this video is it cannot show the relation to the real world appplication
@salmanpatel2968
@salmanpatel2968 3 ай бұрын
How to initlize spring bean in handle request method please reply
@borisborisov9999
@borisborisov9999 3 ай бұрын
hey @DanVega, if i want to add some query params (assume I am issuing a GET request) to the exposed function url, how can i do that one more thing: if i want to secure that function url?
@sidharthadas241
@sidharthadas241 Жыл бұрын
Hey Dan, could you please share the gradle project of the program
@cobar2
@cobar2 3 ай бұрын
How about adding a S3 trigger with image or mp4 in the event and posting it to an endpoint 😊
@samanshakya3848
@samanshakya3848 11 ай бұрын
How do we process a JSON object as event?
@mertbahadr7678
@mertbahadr7678 Жыл бұрын
Hey Dan, For the next videos can you open Presentation Mode of Intellij? so we can see your short cuts and learn :) Thank you.
@hayrullahyasar
@hayrullahyasar 7 ай бұрын
What is that :)
@antoniomaucyrpasqualli6857
@antoniomaucyrpasqualli6857 11 ай бұрын
hi, How to make a post? in the api(test) the error is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`) what is wrong?
@user-zn2ym3qj1v
@user-zn2ym3qj1v Жыл бұрын
it works fine with test, but not when i trying to send request from postman
@baronidev
@baronidev Ай бұрын
Do you have any course/book to indicate about Java serverless on aws ?
@user-lu4pf3ld5v
@user-lu4pf3ld5v Жыл бұрын
I don't know if you notice when downloading files from s3 under lambda, the perfromance of jdk11 is much better than jdk17
@r-rtz
@r-rtz 6 ай бұрын
What is that log in AWS Log output showing for the Spring Boot app : "Build-Jdk: 1.8.0_342" ? I thought it supposed to be 17 !!!!
@hrsatsangi
@hrsatsangi Жыл бұрын
Hey dan what about your course launching or not... We are waiting that course eagerly Please as soon as possible launch that course love from India 🇮🇳
@youtubevideos415
@youtubevideos415 Жыл бұрын
This looks so laborious. Isn't there something like the Serverless Framework, so you can upload and test the Lambda function from the command line, like you can with NodeJS or PHP? I don't see myself writing Lambda functions in Java, if i have to constantly have to upload artifacts through my webbrowser to AWS.
@DanVega
@DanVega Жыл бұрын
Great question. All of those things exist but this isn't the point of this video. When I'm writing functions using Spring Cloud Function / Spring Boot 3 / Java 17 I can test them locally. You also have access to CDK so you can create/deploy via code and avoid the web console. Just kept it simple for this example
@youtubevideos415
@youtubevideos415 Жыл бұрын
@@DanVega Thanks. That's nice to know. I'm new to Java / Spring so i didn't know if those tools exist.
@yashtrivedi6130
@yashtrivedi6130 Жыл бұрын
I love watching your videos Dan such a great way to represent latest market trend in java Q. Could you please tell how can we keep our lambda active because the first request takes quite a good time to respond
@CK-bu5wh
@CK-bu5wh 6 ай бұрын
I think that’s the cold start problem? So you find any way to solve it? I think to way to fix it is to use provision concurrency
@avalagum7957
@avalagum7957 Жыл бұрын
Are java lambdas slower to start than python/javascript lambdas or faster or the same?
@DanVega
@DanVega Жыл бұрын
I don't know how it compares but with SnapStart its extremely fast.
@r-rtz
@r-rtz 6 ай бұрын
I am not convinced by this stuff, what was the point of that Spring Cloud Fnc artifact at all, you could've done the whole thing in a bare app, this is not taking advantage of anything Spring !!!
@dmytropetrenko1085
@dmytropetrenko1085 6 ай бұрын
i am getting error: { "errorMessage": "Class not found: org.springframework.cloud.function.adapfer.aws.FunctionInvoker.handleRequest", "errorType": "java.lang.ClassNotFoundException" }
@sergiocoder
@sergiocoder 6 ай бұрын
you need to replace . with :: before handleRequest
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 13 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 17 МЛН
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 17 МЛН
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 124 МЛН
Spring boot + PostgreSQL + Liquibase + Testcontainers
22:01
Sergey Labuzov
Рет қаралды 9 М.
Big Update for Java Learners and Trainers | JDK 21
6:39
Telusko
Рет қаралды 107 М.
Deploy a SpringBoot 3 API on AWS Lambda in 10 minutes
9:16
James Eastham
Рет қаралды 8 М.
Create Your First AWS Lambda Function | AWS Tutorial for Beginners
12:44
Tiny Technical Tutorials
Рет қаралды 132 М.
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 353 М.
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00
Вэйми
Рет қаралды 1,3 МЛН
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 1,9 МЛН
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 15 МЛН
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18