Hi,
I'm realizing a simple Cqrs app (in term of architecture..not philosophically :)) and i'm wondering if for the command handling part is correct to marshall (into Bson, 'cause i've choosen mongoDb as write and read datastore) the write models in the same thread of the command execution..The unmarshalling into commands (using
https://code.google.com/p/fast-serialization/) is handled in the same thread too in order to allow the escape analysis to turn the business commands and produced entities into stack allocated objects..is a good way of think?For the sake of completeness , prior to the unmarshall-command execution-marshall, the messages are consumed by a java-chronicle based journalizer while the marshalled entities are published to a second ringbuffer with only a mongodb sender consumer...