How event sourcing can be combined with several types of dictionary objects like Country
, Region
, Time Zone
etc. and dictionary types from particular domain model like Budget
or Availability
definitions. Some of dictionary objects should be possible to edit in admin UI but some not.
For example we decided, that we do not need admin UI for countries. Thus we do not need to implement AddCountry
/RemoveCountry
commands.
Should i generate set of CountryAdded
events i.e. should i persist dictionary objects as stream of events? Do we ever use source of truth other then event stream?
In case i can go without event stream for dictionary objects, how you ll solve this problem:
Display list of countries with the number of users in each country.
In this case i need representation of Country
objects in the read model with listener for UserAdded
event.
Thank you.