~/talk

A CQRS Approach with Api Platform and Symfony Messenger

TalkinItalianat phpday PUG Edition 2021 · on Thursday, 2021-03-18· [php, microservices]
links:none on file
slides:none on file

A concrete CQRS implementation using Api Platform for the read side and Symfony Messenger for commands, with two endpoints: POST for user registration and GET for user retrieval. Commands are dispatched to a Messenger command bus and persisted via a Doctrine transport so they run asynchronously; the code includes a custom DataProvider for queries, command handlers, middleware to enforce transactional handlers, and decorator-based validation. The uploader reports this implementation is running in production.

AI-written summary · about

  1. 0:00Introduction
  2. 3:42What is CQRS and why
  3. 8:51Api Platform as framework
  4. 10:19Symfony Messenger async
  5. 11:48Example project structure
  6. 14:02Read flow with CQRS
  7. 21:48Query handling and providers
  8. 27:37Write flow with commands
  9. 31:56Async vs sync commands
  10. 35:30Command error handling
  11. 40:28Middleware and transactions
  12. 44:24CQRS pros and cons
  13. 46:39Summary
  14. 47:25Q&A
  15. 50:57Q&A
  16. 53:26Q&A
  17. 55:38Q&A
  18. 57:05Closing
~/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.