An approach for supporting transparent ACID transactions over heterogeneous data stores in microservice architectures

Lazar Nikolić1, Vladimir Dimitrieski1 and Milan Čeliković1

  1. University of Novi Sad, Faculty of Technical Sciences
    Trg Dositeja Obradovića 6, 21000 Novi Sad, Serbia
    {lazar.nikolic,dimitrieski,milancel}@uns.ac.rs

Abstract

Microservice architectures (MSA) are becoming a preferred architectural style for data-driven applications. A transaction within MSA can include remote calls to multiple services, turning it into a distributed transaction. Participating services may have their own data stores running local transactions with varying levels of transactional support and consistency guarantees. Coordinating distributed transactions in such an environment is a key challenge for MSA. The existing approaches are either highly consistent at the expense of scalability or scalable at the expense of consistency. Furthermore, implementing any of them requires architectural and code adaptation. In this article, we present the Service Proxy Transaction Management (SPTM) approach, which offers scalable reads and ACID transactions in MSA. The novelty of this approach is that it is based on intercepting inbound messages to services, rather than having services directly communicate with a transaction manager. As a result, transaction management is completely transparent to services and has little-to-no impact on code or architecture. We provide experimental results showing that SPTM can outperform lock-based approaches by up to a factor of 2, while still providing high consistency without the scaling bottleneck associated with locking.

Key words

distributed transaction management, consistency, microservice, saga, 2pc, acid, base

Digital Object Identifier (DOI)

https://doi.org/10.2298/CSIS221210006N

Publication information

Volume 21, Issue 1 (January 2024)
Year of Publication: 2024
ISSN: 2406-1018 (Online)
Publisher: ComSIS Consortium

Full text

DownloadAvailable in PDF
Portable Document Format

How to cite

Nikolić, L., Dimitrieski, V., Čeliković, M.: An approach for supporting transparent ACID transactions over heterogeneous data stores in microservice architectures. Computer Science and Information Systems, Vol. 21, No. 1, 167–202. (2024), https://doi.org/10.2298/CSIS221210006N