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
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.
Probably the best advertisement for Go.
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
6 ай бұрын
Same happened to me, it was one error after another, just gave up ...
@sandrodelacruz8125
6 ай бұрын
I tried once and got an error and gave up when Google failed me.
man you're funny & informative at the same time.
I love Drew Noake's exif library, using it since more than a decade.
@MarcoCodes
6 ай бұрын
Yes, it's plain awesome. And Drew is a super nice guy, too.
Similar experience. Can’t begin to figure out what hints I need to provide for our proprietary library.
super! danke, marco [=
Do we need open jdk 17 version as minimum requirement to run the application with graalVM?
@MarcoCodes
3 ай бұрын
There's also a GraalVM 11, but your mileage might vary regarding Spring Boot's Java 11 support.
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
3 ай бұрын
What is the main class you run for your microservice? Put that in there.
Do you have any Maven classes...???
@MarcoCodes
5 ай бұрын
kzread.info/dash/bejne/ipWo1Jp6iq-1o6g.html
Any solution for Gradle 😢
@MarcoCodes
2 ай бұрын
What do you mean? :)
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.
Graal will never get this far. It's too bad.
@gianlucasantos3302
6 ай бұрын
With Quarkus i had pretty good experience so far.