- Published on
Event Sourcing
- Authors
- Name
- Hao Chen
- @haoel
Content
这个不是很清楚。
正在看 https://martinfowler.com/eaaDev/EventSourcing.html
刚好提到 Event Replay,Event Replay: If we find a past event was incorrect, we can compute the consequences by reversing it and later events and then replaying the new event and later events. (Or indeed by throwing away the application state and replaying all events with the correct event in sequence.) The same technique can handle events received in the wrong sequence - a common problem with systems that communicate with asynchronous messaging.
看到这里时也想到 TCP 的这种方式,应该是可以做到的
Link Preview
- https://martinfowler.com/eaaDev/EventSourcing.html
- Event Sourcing
- Capture all changes to an application state as a sequence of events.