Therefore, I like the basic concept of CQS, where you can have a command that writes to one database and that updates the query database from which you are reading.
However, consider the scenario in which you enter data and want to prevent duplicates.
Using the new employee data entry, register the employee register as an example, working through a bunch of application forms to indicate details of new employees:
- Take the top sheet.
- Enter the username and unique payroll number in the user interface.
- Submit.
- Put the paper in the “completed pile”.
- Repeat
No matter how you now allow the user to enter the same payroll number again, for example, if they are distracted and cannot remember if they were already entered with the key, and the “message” does not have all the way back to the db request for the user to search ?
source
share