~/talk

CQRS Meets Modern Java

Talkat XtremeJ 2024 · on Tuesday, 2024-11-05· [java]
slides:none on file

Repository with 3,000 orders triggers about 5,000 SQL statements and a ~3 second response via a naïve JPA mapping, causing the N+1 selects problem and over‑/under‑fetching. Replacing the monolithic DTO endpoints with separate command records (Java 17 sealed interfaces and records), Jackson type info for polymorphic commands, and a SQL-first query side (jOOQ-like multiset queries) yields a single SQL statement and about 3x faster reads while keeping commands as simple inserts/updates.

AI-written summary · about

  1. 0:00Introduction to CQRS
  2. 3:08Traditional Java API issues
  3. 7:02Problems with over and under fetching
  4. 10:36Introducing CQRS pattern
  5. 13:08Command side implementation
  6. 16:27Query side with jOOQ
  7. 19:38CQRS endpoint demo
  8. 21:23Benefits of CQRS
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.