Database Applications with Micronaut Data and GraalVM
summary
Micronaut Data generates queries at build time and type-checks repository methods, avoiding runtime reflection and catching bad queries before launch; implementations include JPA/Hibernate, pure JDBC with Java records, reactive R2DBC (Flux/Mono) and MongoDB via Micronaut Serialization. Demos show eliminating N+1 selects by adding joins, automatic created/updated timestamp population, Flyway schema migrations, and lightweight record mapping for DTO-style selects. Works out‑of‑the‑box with GraalVM native image and claims JIT/native runs can improve throughput and latency by ~20–30%.
AI-written summary · about
chapters (14)
- 0:00Introduction to talk
- 1:32What is Micronaut
- 3:40Overview of GraalVM
- 4:43Micronaut Data introduction
- 6:08History of repository pattern
- 9:47Demo with Micronaut Data JPA
- 17:44Optimizing queries in JPA
- 21:59Custom queries and type checking
- 28:37Demo with Micronaut Data JDBC
- 35:22Optimized data retrieval in JDBC
- 41:04Micronaut Data R2DBC
- 45:23Micronaut Data MongoDB
- 49:38Resources and future plans
- 51:22Summary and Q&A
