π Intro
I recently saw a great Spring blog post about Building Native Images with GraalVM and Spring Native on Apple's M1 Architecture.
In the same time we are investigating on porting some of our (innovation dedicated) existing Spring Boot based APIs to Spring Native, see related content :
Knative : the easy way to serverless a java app
Daniel Santos for opt-nc γ» Mar 4 '22 γ» 1 min read
As one of our developers works on an Mac M1, we wanted to give it a try to see what would happen.
This short blog post is about that short experimentation.
ποΈ Build & Run : 2' speedrun
Finally we could enjoy the full and smooth cli based experience :
- Setup Java runtime with GraalVM
22.0.0
with sdkman - Build & Install native image (and see resources used : time & memory)
- Boot the API (
0.4
s.) - Perform a first REST query (
0.007
s.) withhttpie
- Perform a second REST query (
0.003
s.)
Let the show begin :
π More about Apple M1
You can get a full intro/deep dive on Apple M1 Ultra architecture thanks to this great Computerphile episode :
π Resources
- API homepage on Dockerhub
- API on RapidAPI marketplace
- Building Native Images with GraalVM and Spring Native on Apple's M1 Architecture
GraalVM@graalvmNew article: Revolutionizing Java with GraalVM Native Image:infoq.com/articles/nativ⦠by @alina_yurenko15:14 PM - 06 Apr 2022