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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Efficient Write Operations in Event Sourcing with Replication

Nuno Preguiça, Filipe Araújo, Tony Rolo
1 citations
Service-Oriented Architecture and Web Services
0.78
article

Efficient Write Operations in Event Sourcing with Replication

Nuno Preguiça, Filipe Araújo, Tony Rolo
article en
1 citations

Abstract

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.

University of Coimbra (PT), Universidade Nova de Lisboa (PT)
Foundation for Science and Technology
Openalex Percentile: Top 17%
Service-Oriented Architecture and Web Services
0.78
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.