~/talk

DDD & REST - Domain Driven APIs for the Web

Talkat GOTO Berlin 2015 · 2015-12-03..12-04· [api-design, software-architecture]
slides:none on file

Domain aggregates map to REST resources so repositories become collection/item URIs, with spring data rest and spring hateoas used to expose HAL hypermedia and navigation links. A Spring Boot example implements a coffee-order flow (create → pay → prepare → acknowledge) with a HAL browser and automated tests that create two orders, follow a discovered payment link, and assert a 405 when cancel is attempted after payment. Uses Lombok, Jackson customizations, ETag/Last-Modified headers, resource processors, and Spring REST Docs; the demo and tests run and demonstrate the approach.

AI-written summary · about

  1. 0:00Start
  2. 2:14What does it take to bridge the worlds of DDD & REST?
  3. 6:04Entities & Repositories
  4. 9:19Aggregates form nice representation boundaries.
  5. 11:38Try to avoid bi-directional relationships.
  6. 14:02If you're calling two setters in a row, you're missing a concept.
  7. 15:14Domain events as state transitions.
  8. 17:40Representation design matters
  9. 19:45Hypermedia
  10. 21:33Trading domain knowledge with protocol complexity in clients.
  11. 21:53Reducing decisions in clients to whether a link is present or not.
  12. 23:12Prefer explicit state transitions over poking at your resources using PATCH
  13. 34:44Jackson Customizations Externalize tweaks to the general JSON design
  14. 35:19Spring Data REST for the CRUDdy parts.
  15. 42:38Questions?
~/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.