How to determine the source of the event with several types of dictionary objects such as Country, Region, Time Zoneetc. and types of dictionaries of a domain specific model, e.g., determining Budgetor Availability. Some of the dictionary objects must be editable in the admin user interface, and some not.
For example, we decided that we did not need an admin user interface for countries. Thus, we do not need to implement the AddCountry/ command RemoveCountry.
Should I generate a set of events CountryAddedi.e. Should I save dictionary objects as an event stream? Do we ever use a source of truth besides a stream of events?
In case I can go without event flow for dictionary objects, how do you solve this problem:
Display a list of countries with the number of users in each country.
In this case, I need a representation of the objects Countryin the reader model with the listener for the event UserAdded.
Thank.
source
share