Empower your Spring Applications with Python Features on GraalVM
summary
Shows how GraalVM runs Python side‑by‑side with Spring Boot by installing GraalVM CE Java 17, using GraalPy + numpy via gu/qi inside a Dockerfile, creating a polyglot Context with forceImportSite and pythonPath, and injecting a Python class as implementation of a Java interface so the recommender runs as a Spring bean. Demonstration builds a recommender that computes Euclidean distances with numpy in one line, tests via Spring integration tests, and notes slower startup and no native‑image support yet.
AI-written summary · about
chapters (12)
- 0:00GraalVM and polyglot intro
- 2:31Python in Spring Boot
- 3:35GraalVM theory
- 16:30Spring Boot with Python setup
- 20:19Recommendation service interface
- 23:58Python context in Spring
- 26:32Python in Java injection
- 29:04Java models in Python
- 32:12Postman testing
- 36:25Enterprise readiness testing
- 38:37Conclusion and future
- 40:32Q&A on GraalVM Python
related talks
47mSupercharge your Java Applications with Python!
35mRunning Spring Boot applications as GraalVM native images
47mGraalVM for Endless Performance
56mJourney from Java to Python: Two Worlds, One JEP
50mGraalVM for Java developers
52mGraalVM, the polyglot virtual machine
03h 07mEverything you need to know about GraalVM
49mGraalVM: Run Programs Faster Anywhere
