Getting started with Spring Boot AOT + GraalVM Native Images

Ғылым және технология

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
    @rafinhaLQ2 ай бұрын

    Amazing presentation! Thanks!

  • @orestis131
    @orestis1312 ай бұрын

    Nice presentation! Thanks

  • @aldosilva6
    @aldosilva62 ай бұрын

    Very nice presentation Dan. I didn't know that I could customize the JVM.

  • @TheTallMan67
    @TheTallMan672 ай бұрын

    Exciting. Thanks Dan

  • @AlexTilkin
    @AlexTilkinАй бұрын

    Good video. Thank you, Dan

  • @rabah4306
    @rabah43062 ай бұрын

    Hello Dan thanks for your videos they are awesome!!! I have a question, what is your opinion on Monorepo?

  • @remsbd
    @remsbdАй бұрын

    Thanks for your video ! but i have an issue, 'gu' tool was not found...

  • @bartomiejdziadosz8616
    @bartomiejdziadosz8616Ай бұрын

    Hello Dan, any video about graalvm + aws lambda?

  • @dd1.d
    @dd1.d2 ай бұрын

    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

  • @curio78
    @curio78Күн бұрын

    why is the native image still so big? 6 mb for one line code to say hello.

  • @RahulSingh-cl3wm
    @RahulSingh-cl3wm2 ай бұрын

    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.

  • @gamires
    @gamires2 ай бұрын

    @DanVega It is possible to build a native image from Windows to put in a docker image?

  • @DanVega

    @DanVega

    Ай бұрын

    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

    Ай бұрын

    @@DanVega Here is the answer "2.2. Building a Native Image Using Buildpacks" I run your example just well. Thank your very much!

  • @terribleprogrammer
    @terribleprogrammer2 ай бұрын

    I am facing issues with Kerberos based apps. We use gss native. For some unknown reasons Kerberos based calls are failing. 😢

  • @DanVega

    @DanVega

    Ай бұрын

    Sorry to hear that... I don't have any experience with Kerberos but you could always open up an issue on GitHub

  • @007arek
    @007arek2 ай бұрын

    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?

  • @praveens2272
    @praveens22722 ай бұрын

    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
    @OmarSoftwareDev13 күн бұрын

    Tried not working for me, something related with VS studio. This is is not as straightforward it seems

  • @andytael
    @andytael2 ай бұрын

    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Күн бұрын

    Spring Security breaks the native image execution

Келесі