Event sourcing: Storing events instead of discarding data
Event sourcing // Modern software technologies need to meet more and more complex business requirements. Effective concepts are needed to handle data efficiently. The traditional approach of storing state-based data is reaching its limits. Event sourcing fundamentally changes this.
To illustrate this, let’s take the simple example of a company that holds data about its employees. During the recruitment process, the company initially collects data such as ID, fi rst name, last name, role and department. This information changes over time, such as when the employee is promoted or moves to a new department. When something changes, the corresponding dataset is usually updated to refl ect the current state. This works well for simple requirements.