From CLIs to LLMs: 5 cool applications to build with GraalVM
summary
Builds a tiny CLI (40 MB) that starts in 65 ms startup and a full‑stack "travel tips" app (183 MB) that calls OpenAI via Spring AI and starts under 100 ms. Shows a DIY LLM: a single Java source plus a GGUF model compiled to llamas‑java 66 MB native that loads in ~6 ms and runs ~26 tokens/sec on CPU. Benchmarks Spring Petclinic showing JVM ~1.58k RPS and native image reaching parity after PGO, G1GC, –mtr‑native; native uses markedly less memory and produces SBOMs scanned by grype.
AI-written summary · about
chapters (12)
- 0:00Introduction to GraalVM
- 1:03What is GraalVM
- 3:30Native Image overview
- 6:17CLI application demo
- 10:11Full stack web app demo
- 14:44DIY LLM inference engine
- 21:46Peak performance benchmark
- 34:36Resource and energy savings
- 38:30Security features
- 43:50SBOM and vulnerability scanning
- 45:38Python in Java demo
- 46:20Resources and wrap-up
