Skip to content

Event Sourcing - Recreate user with id from the UserCreatedEvent instead of creating a new one#13719

Merged
kasramp merged 1 commit into
eugenp:masterfrom
FabioBentoLuiz:fix/es-userutility
May 24, 2023
Merged

Event Sourcing - Recreate user with id from the UserCreatedEvent instead of creating a new one#13719
kasramp merged 1 commit into
eugenp:masterfrom
FabioBentoLuiz:fix/es-userutility

Conversation

@FabioBentoLuiz

Copy link
Copy Markdown
Contributor

As the events are geting replayed, it should recreate the user with the ID as it is provided on the UserCreatedEvent, otherwise it will generate a new ID for each read request.

@kasramp

kasramp commented May 24, 2023

Copy link
Copy Markdown
Contributor

Thanks for the correction @FabioBentoLuiz

@kasramp kasramp merged commit c44f766 into eugenp:master May 24, 2023
pingm26 pushed a commit to pingm26/tutorials that referenced this pull request May 6, 2026
Event Sourcing - Recreate user with id from the UserCreatedEvent instead of creating a new one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants