Usare command bus e event bus in progetti symfony, per scrivere software facilmente adattabili a nuove necessità.
Codice di esempio: https://github.com/magobaol/ticket-office
How to use command bus and event bus in symonfy project to create easily adaptive applications.
Final sample code: https://github.com/magobaol/ticket-office
57. Cosa è un comando?
È un messaggio tramite
il quale si comunica al
sistema che si vuole
fare qualcosa
[ request ]
[ command ]
[ command bus ]
[ command handler ]
(non restituisce nulla)
58. Cosa è un evento?
È un messaggio tramite
il quale il sistema
comunica che è accaduto
qualcosa
[ tipicamente in un
command handler ]
[ event ]
[ event bus ]
[ subscriber 1 ] [ subscriber 2 ]
61. A wave of command buses by Matthias Noback
http://php-and-symfony.matthiasnoback.nl/2015/01/a-wave-of-command-buses/
SimpleBus Library
http://simplebus.github.io/MessageBus/
Martin Eckardt Bachelor Thesis on CQRS and Event Sourcing
https://drive.google.com/file/d/0B_enB2DMKeyzbF96VjdKdjIzOHc/view
Links
Ticket Office Sample Project
https://github.com/magobaol/ticket-office