GraalVM & Spring Boot: Building a Native Executable | Marco Reacts

Ойын-сауық

You heard about GraalVM? You want to turn your Java webapp into a native executable to benefit from massive startup time speedups and little memory footprint? Well, let's try this out with our Google Photos clone, see what problems we encounter along the way and then come up with a fair and balanced view on where GraalVM stands today.
► Previous Episode
htmx Tutorial - 2 Real-Life Use Cases - • htmx Tutorial - 2 Real...
Why JUnit's Dynamic Tests ARE SO GOOD - • Why JUnit's Dynamic Te...
How to Approach Java, Databases & SQL - • How to Approach Java, ...
► Source Repository
GitHub: github.com/marcobehlerjetbrai...
Branch: episode-9-graalvm
► Timestamps
00:00 Intro
00:36 The App We Are Going To Convert
01:25 Prerequisites (SDKMan, GraalVM, WSL, Gradle Plugin)
03:39 Regular Compilation vs Native Compilation
04:39 Issues, Issues & More Issues
10:35 Balanced Summary
12:33 Outro
► FOLLOW ME
www.marcobehler.com
/ marcobehler

Пікірлер: 25

  • @shadowpenguin3482
    @shadowpenguin34825 ай бұрын

    Whenever you encounter an issue with a library, you can actually fix this for everyone by publishing the runtime definitions and the spring native gradle plugin will pick them up. That’s what they did for hibernate and many of the spring managed libraries, but of course they cannot do that for every small library.

  • @sixpooltube
    @sixpooltube6 ай бұрын

    Probably the best advertisement for Go.

  • @poidsleger
    @poidsleger6 ай бұрын

    I was experimenting with this too, but had the same situation and I just gave up lmao it was too much of a pain to make it running, but now you motivated me to go back and try again, cheers!

  • @RicardoSilvaTripcall

    @RicardoSilvaTripcall

    6 ай бұрын

    Same happened to me, it was one error after another, just gave up ...

  • @sandrodelacruz8125

    @sandrodelacruz8125

    6 ай бұрын

    I tried once and got an error and gave up when Google failed me.

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

    man you're funny & informative at the same time.

  • @michaelsimons6035
    @michaelsimons60356 ай бұрын

    I love Drew Noake's exif library, using it since more than a decade.

  • @MarcoCodes

    @MarcoCodes

    6 ай бұрын

    Yes, it's plain awesome. And Drew is a super nice guy, too.

  • @adityamparikh
    @adityamparikh5 ай бұрын

    Similar experience. Can’t begin to figure out what hints I need to provide for our proprietary library.

  • @asterixcode
    @asterixcode6 ай бұрын

    super! danke, marco [=

  • @arunkumar4135
    @arunkumar41353 ай бұрын

    Do we need open jdk 17 version as minimum requirement to run the application with graalVM?

  • @MarcoCodes

    @MarcoCodes

    3 ай бұрын

    There's also a GraalVM 11, but your mileage might vary regarding Spring Boot's Java 11 support.

  • @sightseeingsouls-rk
    @sightseeingsouls-rk3 ай бұрын

    It's asking to specify the class containing main entry point. How can i do this? I'm working gradle micro service. Error: Please sprcify class (or /) containing the main entry point method.

  • @MarcoCodes

    @MarcoCodes

    3 ай бұрын

    What is the main class you run for your microservice? Put that in there.

  • @Matheus_1582
    @Matheus_15825 ай бұрын

    Do you have any Maven classes...???

  • @MarcoCodes

    @MarcoCodes

    5 ай бұрын

    kzread.info/dash/bejne/ipWo1Jp6iq-1o6g.html

  • @Businessuits
    @Businessuits2 ай бұрын

    Any solution for Gradle 😢

  • @MarcoCodes

    @MarcoCodes

    2 ай бұрын

    What do you mean? :)

  • @serrrsch
    @serrrsch2 ай бұрын

    3 months later and with Maven and Spring Boot 3.2 some things are more clear but I agree in dependency heavy projects GraalVM is not working out of the box. Micronaut is way better in that regard.

  • @greg673
    @greg6736 ай бұрын

    Graal will never get this far. It's too bad.

  • @gianlucasantos3302

    @gianlucasantos3302

    6 ай бұрын

    With Quarkus i had pretty good experience so far.

Келесі