biglietti, prego! - a ticket for the (command) bus
TRANSCRIPT
Ticket Office
Un compagnia di treni ad alta velocità ci ha commissionato un
sistema per la vendita di biglietti online
La vita è una sola, falli magna’ ‘sti controller.
Disclaimer: @agilegigi non ha mai detto questa cosa, ma secondo me potrebbe farlo.
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)
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 ]
A wave of command buses by Matthias Nobackhttp://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 Sourcinghttps://drive.google.com/file/d/0B_enB2DMKeyzbF96VjdKdjIzOHc/view
Links
Ticket Office Sample Projecthttps://github.com/magobaol/ticket-office