Universidade de Coimbro
Towards Efficient Write Operations with Replicated Event Sourcing
Abstract
dc:description.abstractIn distributed systems, Event Sourcing (ES) is an architectural pattern in whichapplications maintain an audit log of all state changes, stored as an immutable se-quence of events. Although replicating the event log can improve dependability,existing ES technologies do not exploit replication for efficient write operations.The explored technologies use methods based on master/slave replication meth-ods. In these approaches, clients far away from the "master" node, only leveragefrom read operations, as the "slaves" can be deployed within the same region asthe client.The primary objective of this thesis is to address the limitations within the cur-rent ES replication landscape and propose a solution for a replication mechanismthat supports independent write operations across two replica nodes. The workpresents a complete analysis of ES topics, technologies, and related literature,from which the proposed solution takes inspiration.The thesis addresses the challenges associated with adapting the ES pattern forindependent writes focusing on concurrency control. When two nodes can simul-taneously write to the log, and access shared resources, they eventually will runlow, and it might result in both replicas consuming the same resource. This washandled by partitioning the resources across the two nodes, and using a mecha-nism that requests to the peer node for additional resources, when they are ex-hausted locally.The outcome of this thesis is the design and implementation of a replicationmethod integrated into an ES-powered Application Programming Interface (API),replicated across two different geographic regions. The mechanism’s performancewas tested using a custom tool developed specifically for this context. The resultsindicate favourable local write operations performance, no matter the node usedfor the execution.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Rolo, Tiago José Bibiu
- Advisor dc:contributor.advisor
-
- Araújo, Filipe João Boavida Mendonça Machado de
Subjects
dc:subject × 9Rights
dc:rights- Statement dc:rights
-
- openAccess
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Dc Identifier Tid
- 203827597