Time is of the Essence
First of all: We wish you a happy new year! We hope you had a wonderful Christmas and an amazing time! 🎉
Speaking of time, let's talk about one of the most commonly misunderstood concepts in event sourcing: when did something actually happen?
If you've worked with events for a while, you've probably noticed that every event comes with a timestamp. In CloudEvents, this is the time field, which EventSourcingDB sets automatically when an event is stored. It's tempting to use this timestamp for business logic. After all, it's right there, readily available. But doing so can lead to subtle bugs and incorrect assumptions. Here's why, and what to do instead.