Getting started with Spring Boot AOT + GraalVM Native Images

  Рет қаралды 8,397

Dan Vega

Dan Vega

3 ай бұрын

In this tutorial you will learn the what, why and how of building native images in Spring Boot with GraalVM. Ahead-of-Time (AoT) compilation is a prerequisite for building native images with GraalVM. You will learn where this makes sense and then you will build out 2 simple Spring Boot Applications and build a native image from them.
🔗Resources & Links mentioned in this video:
👋🏻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 ❤️

Пікірлер: 31
@rafinhaLQ
@rafinhaLQ 2 ай бұрын
Amazing presentation! Thanks!
@aldosilva6
@aldosilva6 2 ай бұрын
Very nice presentation Dan. I didn't know that I could customize the JVM.
@orestis131
@orestis131 2 ай бұрын
Nice presentation! Thanks
@TheTallMan67
@TheTallMan67 2 ай бұрын
Exciting. Thanks Dan
@AlexTilkin
@AlexTilkin 2 ай бұрын
Good video. Thank you, Dan
@rabah4306
@rabah4306 2 ай бұрын
Hello Dan thanks for your videos they are awesome!!! I have a question, what is your opinion on Monorepo?
@bartomiejdziadosz8616
@bartomiejdziadosz8616 2 ай бұрын
Hello Dan, any video about graalvm + aws lambda?
@remsbd
@remsbd 2 ай бұрын
Thanks for your video ! but i have an issue, 'gu' tool was not found...
@dd1.d
@dd1.d 2 ай бұрын
I’m not sure if anyone else has encountered this issue. When I have circular dependencies and use the @Lazy annotation to resolve them, the resulting native image fails to run
@gamires
@gamires 2 ай бұрын
@DanVega It is possible to build a native image from Windows to put in a docker image?
@DanVega
@DanVega 2 ай бұрын
I don't have any experience with this but you can check out the docs docs.spring.io/spring-boot/docs/current/reference/html/native-image.html#native-image.developing-your-first-application.native-build-tools.prerequisites.windows
@gamires
@gamires 2 ай бұрын
@@DanVega Here is the answer "2.2. Building a Native Image Using Buildpacks" I run your example just well. Thank your very much!
@RahulSingh-cl3wm
@RahulSingh-cl3wm 2 ай бұрын
Can you please cover limitations also?
@DanVega
@DanVega 2 ай бұрын
What limitations? I pointed out that there are tradeoffs, one being time to build the native image and the other being you need to tell the compiler about anything dynamic that you're doing.
@RahulSingh-cl3wm
@RahulSingh-cl3wm 2 ай бұрын
@@DanVega in context with spring what all dynamic features we cannot use.
@007arek
@007arek 2 ай бұрын
Hi Dan, are you familiar with JavaFX? I believe JavaFX could be great for native images. Why do you use legacy annotation like ShellMethod?
@mrkostya008
@mrkostya008 2 ай бұрын
Did you just get out of uni for thinking that
@007arek
@007arek 2 ай бұрын
@@mrkostya008 no, why do you think that?
@terribleprogrammer
@terribleprogrammer 2 ай бұрын
I am facing issues with Kerberos based apps. We use gss native. For some unknown reasons Kerberos based calls are failing. 😢
@DanVega
@DanVega 2 ай бұрын
Sorry to hear that... I don't have any experience with Kerberos but you could always open up an issue on GitHub
@curio78
@curio78 11 күн бұрын
why is the native image still so big? 6 mb for one line code to say hello.
@praveens2272
@praveens2272 2 ай бұрын
Does anyone using this in production with containerising the application.
@AbdurRahmanAcademy
@AbdurRahmanAcademy 2 ай бұрын
Not in production but we tried locally and there are many dependencies which still not fully supported
@andytael
@andytael 2 ай бұрын
We do use it for production, actually a CLI :-)
@DanVega
@DanVega 2 ай бұрын
Yes this is being used in production. You can switch to the native profile and build a container docs.spring.io/spring-boot/docs/current/reference/html/native-image.html
@OmarSoftwareDev
@OmarSoftwareDev 23 күн бұрын
Tried not working for me, something related with VS studio. This is is not as straightforward it seems
@andytael
@andytael 2 ай бұрын
Why are you using the wrapper, this works just fine for me: mvn clean -Pnative native:compile
@DanVega
@DanVega 2 ай бұрын
Not everyone has maven installed locally so thats why I use the mvn wrapper in demos
@mwigojonathanmark1683
@mwigojonathanmark1683 11 күн бұрын
Spring Security breaks the native image execution
5 Common Mistakes Spring Developers Make
18:06
Dan Vega
Рет қаралды 14 М.
GraalVM Native Image - Faster, Smarter, Leaner
46:12
Java
Рет қаралды 13 М.
Countries Treat the Heart of Palestine #countryballs
00:13
CountryZ
Рет қаралды 16 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 13 МЛН
WHY THROW CHIPS IN THE TRASH?🤪
00:18
JULI_PROETO
Рет қаралды 5 МЛН
Creepy Teacher Kidnapped My Girlfriend?!
00:42
Alan Chikin Chow
Рет қаралды 6 МЛН
NativeAOT in .NET 8 Has One Big Problem
14:47
Nick Chapsas
Рет қаралды 27 М.
So You Think You Know Git Part 2 - DevWorld 2024
23:02
GitButler
Рет қаралды 67 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 26 МЛН
Эффект Карбонаро и бумажный телефон
1:01
История одного вокалиста
Рет қаралды 2,8 МЛН
Где раздвижные смартфоны ?
0:49
Не шарю!
Рет қаралды 680 М.