could you keep the single db and put views on it that split it up into bc's? to get things rolling, to work out the kinks? then move to truly independent ones?
It can show you where you have coupling between 2 contexts. To break off a single contexta db you have to ensure you can handle events emitted by other contexts that would fill each view if they were tables, wherever you need views, is where this coupling exists.
You have your model per context but each context uses the same database. Whats not clear is if there is a single BC owner for each table in the database (ie avoid a shared kernel at db level).
If I was you my first step would be ensure there is a clear mapping between each domain model and the subset of tables in the db thst it is responsible for. I would ensure there is only one BC owner of each table in the database so that you could firstly uses db schemas to clearly define the BC boundaries in the db.
When one bounded context needs a copy of data from another, use views to replicate this at the start. When you are ready to move a bounded context to its own dh, replace these views with tables and allow the event handlers to populate these when handling events from other bounded contexts. You will obviously need an. Initial bulk insert at the beginning and go live is tricky!
--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/dddcqrs.
For more options, visit https://groups.google.com/d/optout.
> email to dddcqrs+unsubscribe@googlegroups.com.
> Visit this group at https://groups.google.com/group/dddcqrs.
> For more options, visit https://groups.google.com/d/optout.
--
Studying for the Turing test
--
You received this message because you are subscribed to the Google Groups "DDD/CQRS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dddcqrs+unsubscribe@googlegroups.com.