~/talk

CQRS in the Small with Java Records and jOOQ

Talkat JCON EUROPE 2024 · 2024-05-13..05-16· [databases]
slides:none on file

Demo application on GitHub shows CQRS applied on one Postgres database using Spring Boot, Flyway and jOOQ to model Java Records for immutable commands and return nested read models with a jOOQ multiset JSON query. Traditional JPA flow suffers N+1 and takes ~3s for the sample request; the jOOQ CQRS version issues one SQL and drops to ~1.5s while removing MapStruct mapping. Generation uses a testcontainers jOOQ generator that spins the DB and produces the meta model automatically.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15The problem with rest
  3. 2:52Traditional architecture
  4. 4:32Demo application setup
  5. 7:12Performance issues
  6. 9:40Over-fetching issues
  7. 11:58CQRS fundamentals
  8. 14:13Modern Java features
  9. 18:46Command implementation
  10. 20:52Introduction to jOOQ
  11. 26:16jOOQ setup and generation
  12. 31:06jOOQ in practice
  13. 35:37Query optimization
  14. 39:04Conclusion and benefits
  15. 40:27Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.