Easier Microservice Persistence With Micronaut Data
summary
Micronaut Data claims to precompute SQL at compile time using AoT query compilation so repository interfaces become concrete implementations with no reflection or runtime proxies. Demo shows a small Book app using the JDBC flavor with H2 for local testing then swapped to an Oracle Autonomous DB, implements CRUD, dynamic finder methods, pageable results and DTO projections compiled at build time. Also shows native-image builds that cut runtime memory and startup compared with a JVM JIT run.
AI-written summary · about
chapters (13)
- 0:00Introduction and agenda
- 2:19What is Micronaut Data
- 4:45How Micronaut Data works
- 8:18Creating a domain model
- 14:07Creating a repository
- 16:37Building a controller
- 25:03Custom queries with dynamic finders
- 37:33Using DTOs for projections
- 40:48Explicit SQL queries
- 43:43Pagination with Pageable
- 46:20Native image benefits
- 48:52Connecting to a real database
- 51:30Conclusion and resources
related talks
48mEasier Microservice Persistence with Micronaut Data
51mEasier Microservice Persistence With Micronaut Data
02h 54mMicronaut Deep Dive
16mAhead of Time Data Access with Micronaut
22mspeaks with
01h 05mNatively Cloud Native: Building Agile Microservices
56mDeveloper experience in a modern Java framework
44mUnleash the power of your applications with Micronaut and GraalVM
