Efficient Write Operations in Event Sourcing with Replication
Event Sourcing (ES) is an architectural pattern where applications maintain a record of all events that alter their state. While replication of the event $\log$ can enhance dependability, existing ES frameworks do not exploit replication to accelerate write operations. The challenge lies in enabling write operations on replicas without disrupting the sequential ordering of the log or incurring significant communication overhead between geographically distributed replicas. Our approach addresses this by partitioning resources across replicas, ensuring that most operations require only local ordering, reserving interreplica communication for scenarios where resources are limited. We implemented this approach using the Axon framework and evaluated its performance against MongoDB Replica Sets, where writes must go through the primary replica. The results demonstrate that our method significantly improves the speed of local write operations, thereby fully leveraging the benefits of replication.
Authors
- Nuno Preguiça (ORCID: https://orcid.org/0000-0002-1513-1527)
- Filipe Araújo (ORCID: https://orcid.org/0000-0002-1663-1937)
- Tony Rolo
Institutions
- University of Coimbra (PT)
- Universidade Nova de Lisboa (PT)
Publication Details
- Published
- 2024-10-24
- DOI
- https://doi.org/10.1109/nca61908.2024.00016
- Citations
- 1
- Primary Topic
- Service-Oriented Architecture and Web Services
- Type
- article
- Field-Weighted Citation Impact
- 0.78
Funders
- Foundation for Science and Technology