Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3405894
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:33:41+00:00 2026-05-18T05:33:41+00:00

How event sourcing can be combined with several types of dictionary objects like Country

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T05:33:42+00:00Added an answer on May 18, 2026 at 5:33 am

    If you use event sourcing as the persistence mechanism, then:

    • event stream is the only source of truth (object snapshots generated from event stream could be used to improve the performance, but they are just the technique).
    • When you use event sourcing, you don’t need to generate event explicitly – just publish actual events generated while processing the command.
    • if you have a predefined list of countries, that are never going to change, you can just hard-code and reference them by their country codes. However this implies that view model and UI know about that and countries are not going to change.

    BTW I recommend posting questions like these to DDD/CQRS group. It’s the most active community on the questions of CQRS/DDD/ES.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

event.preventDefault(); return false; event.stopPropagation(); any of them can prevent focus event from happening when
Typical Event Log message looks like below. There you can find very interesting fields
If I were to adopt CQRS with something like Event Sourcing, then what would
I'm making my way into using Event Sourcing pattern, and there is one thing
I've studied some CQRS sample implementations (Java / .Net) which use event sourcing as
my_event = Event.objects.get(id=4) current_time = datetime.datetime.now() How do I do check if my current
We are trying CQRS and DDD and event sourcing. Let's say I have a
I have my first CQRS project which uses event sourcing and I was wondering
My event handler looks like this: private void List_KeyPress(object sender, KeyPressEventArgs e) I saw
Besides missing some of the benefits of Event Sourcing, are there any other drawbacks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.