DEV Community

Discussion on: Event Sourcing: What it is and why it's awesome

Collapse
 
bhunwal profile image
bhunwal

@Barry O Sullivan,

thanks for this wonderful post, I have been reading about event sourcing a lot, and have few doubts can you please me here?

I have a simple CRUD based blogging system with versioning. User see version v1 of a post. He does a put call a new version is created in DB with version v2. If somebody else comes to update the post with version V1, I reject the call saying their version is not latest. and they are forced to refresh their browser.

Here are the problem that i see while doing it with event sourcing

  1. we will have to build a pipe from server to browser because nothing is immediately known. For example if I am updating latest version of the post will only be apparent when I have processed all the events related to this post occurring before current time.

  2. This brings in extra complexity of feedback loop to user. If their operation was successful or not? wait for how long?

Can you please share your thoughts on this? Maybe I am missing the whole point??