I want to convert a relatively new web application with a clear domain model into a more CQRS style system. My new application is essentially an improved replacement for the old existing system.
My organization’s existing systems share a set of common databases that are updated by a variety of applications (developed using the chaos method) that exist in silos throughout the company. (In its current form, I believe that no one in the company can identify them all.)
So my question is about the read model (s) for my application. Because various status changes, common user data, etc. Updating by other applications beyond my control, what is the best way to handle the construction of read models in such a way that I can deal with external updates, but still keep things relatively simple?
I reviewed the following:
- Creating database views for reading models that read all tables, obsolete and new
- Add triggers to existing tables to update new tables of read models
- Add code to the database (CLR Stored proc / etc [sql server]) to update the external data store for read models.
- Give up hope
What is the general consensus on how to approach this? Is it really stupid to think that I can clean up an inherited system without completely rewriting everything from scratch?
reallyJim
source share