Skip to Content
ComputersComputers
  • Article
  • Open Access

29 April 2026

30 Pages

Empirical Performance and Operational Analysis of Monolithic and Distributed Database Architectures in Kubernetes Environments

,
,
and
Department of Cybersecurity and System Engineering, Algebra Bernays University, 10000 Zagreb, Croatia
*
Authors to whom correspondence should be addressed.

Abstract

This study presents a systematic empirical evaluation of monolithic and distributed database architectures deployed in Kubernetes environments. As containerized and cloud-native infrastructures become increasingly prevalent, understanding the performance implications of running stateful data systems under orchestration platforms has become critical. We evaluate five widely used database systems—PostgreSQL, MySQL, MongoDB, Redis, and Cassandra—using standardized workload generation frameworks, including pgbench, sysbench, YCSB, redis-benchmark, and cassandra-stress. Controlled experiments were conducted across varying concurrency levels and workload types to measure throughput, latency, and scalability in both single-node and distributed deployments. Redis achieves a maximum throughput of 4.2 million operations per second with sub-millisecond latency. In contrast, Cassandra delivers 214,743 distributed read operations per second at ONE consistency, approaching Redis’s non-pipelined baseline throughput (257,732–262,467 ops/sec) within a Kubernetes cluster. The write throughput of Cassandra decreases by 45.2% when the consistency level is elevated to QUORUM, accompanied by an elevenfold increase in run-to-run variability (CV from 7.1% to 84.7%), indicating that the consistency level is the primary performance determinant in distributed systems. PostgreSQL experiences a 72% decrease in write throughput in Kubernetes (74,072 → 20,805 TPS). In contrast, MySQL PXC anomalously attains a 37.3% increase in write throughput in Kubernetes compared to its monolithic deployment—the sole reversal noted among the five systems. These findings underscore a critical trade-off between vertical efficiency and horizontal scalability, illustrating that hybrid database architecture can be an effective solution for contemporary cloud-native applications compared to either paradigm independently.

1. Introduction

The rapid adoption of containerization and cloud-native computing has fundamentally altered the deployment and operation of contemporary software systems [1]. As a result, understanding the performance implications of these environments has become a critical concern in cloud-native systems engineering [2]. Container orchestration technologies, particularly Kubernetes, have emerged as the standard for managing distributed applications, offering automated deployment, horizontal scalability, fault tolerance, and efficient resource utilization [3]. However, these same characteristics introduce architectural complexities that can significantly influence database performance [4].
At the same time, these advancements have accelerated the transition toward microservice-based architectures designed to support highly dynamic and scalable workloads [5,6]. Despite these benefits, deploying stateful systems such as databases within container orchestration environments remains a significant challenge. Traditional database management systems are designed for stable, tightly coupled infrastructures. In contrast, Kubernetes introduces dynamic scheduling, container abstraction, distributed networking, and externalized storage layers, all of which can affect runtime behavior. In addition, factors such as network configuration, storage backend latency, and scheduling policies further influence the performance of stateful workloads independently of the database engine.
Database systems are pivotal in contemporary application architectures, and their design directly affects system performance, scalability, and operational complexity. Database architectures can be classified into monolithic and distributed systems. Monolithic databases function as single-node systems in which storage, query processing, and transaction management are tightly integrated. These systems generally rely on vertical scaling and are designed for low-latency transactional workloads that require robust consistency guarantees. Conversely, distributed databases comprise multiple nodes and distribute data through mechanisms such as sharding and replication. This enables horizontal scalability and enhances fault tolerance, yet incurs coordination overhead and escalates system complexity.
In this context, NoSQL databases have emerged as a prominent class of distributed data management systems designed to address the scalability and flexibility limitations of traditional relational models. NoSQL systems, such as wide-column and key–value stores, prioritize horizontal scalability, high availability, and schema flexibility, often adopting relaxed consistency models in accordance with the CAP theorem.
The rise of Kubernetes as a standard platform for cloud-native infrastructure has heightened interest in running both monolithic and distributed database systems within containerized environments. Kubernetes offers technologies such as StatefulSets, persistent volumes, and operators that facilitate the orchestration of stateful workloads, ensuring that storage persistence and network identity are maintained. The interplay between database architecture and orchestration infrastructure presents novel performance and operational challenges that remain poorly understood.
Current research has investigated database performance in both standalone and containerized environments, whereas few studies have assessed databases in Kubernetes. Nonetheless, these contributions remain disjointed—comparative analyses of relational and NoSQL systems generally occur outside orchestration contexts and fail to account for container networking, persistent volume access, and scheduler interference. At the same time, Kubernetes-focused research is typically confined to a single database system. No prior work provides a systematic, multi-system empirical evaluation of monolithic versus distributed architectures under controlled Kubernetes conditions. This gap motivates the present study.
This study presents a controlled empirical assessment of five prevalent database systems—PostgreSQL, MySQL, MongoDB, Redis, and Cassandra—encompassing both relational and NoSQL frameworks to address this gap. The assessment employs standardized workload generation frameworks, such as pgbench, sysbench, YCSB, redis-benchmark, and cassandra-stress, to quantify throughput, latency, and scalability across diverse workload types and concurrency levels. Experiments are performed in both single-node (monolithic) and distributed Kubernetes deployments to facilitate systematic comparison under uniform conditions.
This study aims to quantify performance disparities among database systems and to examine the architectural trade-offs between vertically scaled monolithic databases and horizontally scalable distributed databases within Kubernetes environments. Understanding these trade-offs is crucial for architecting database infrastructure that balances performance efficiency, scalability, and operational complexity in cloud-native applications.
This study addresses the following three research questions, deliberately structured to progress from measurement to explanation to practical guidance:
RQ1. How do monolithic and distributed database architectures differ in throughput and latency within Kubernetes environments across diverse workloads and concurrency levels?
RQ2. Which database architecture offers superior scalability and workload suitability for write-intensive transactional versus read-intensive distributed workloads?
RQ3. What operational trade-offs emerge when deploying monolithic versus distributed databases in Kubernetes, with respect to scalability, resource management, and system resilience?
These questions are interconnected: RQ1 establishes the empirical baseline, RQ2 interprets scalability and workload fit, and RQ3 contextualizes both within practical cloud-native operational constraints.
This study’s primary contributions are as follows:
  • Systematic empirical assessment: A comparative analysis of five prevalent database systems in both monolithic and Kubernetes-based distributed environments under uniform workloads;
  • Examination of architectural trade-offs: A study of the impact of database architecture on throughput, latency, and scalability across various workload profiles;
  • Operational insights for cloud-native implementations: Practical guidance for selecting effective database architectures in Kubernetes environments, covering cases where monolithic, distributed, or hybrid approaches are optimal.
The subsequent sections of this paper are structured as follows. Section 2 examines pertinent literature on cloud-native databases and their performance evaluation. Section 3 describes the experimental methodology. Section 4 presents the experimental results. Section 5 provides extended results and the complete dataset. Section 6 examines the findings and their implications. Section 7 closes the work and examines avenues for future research.

3. Materials and Methods

This study assesses the performance attributes of monolithic and distributed database architectures implemented in Kubernetes environments through a controlled experimental investigation. The methodology aims to ensure reproducibility and comparability among database systems and deployment models. Performance is evaluated using standardized workload-generating tools in controlled environments to measure throughput, latency, and scalability across various scenarios.
The experimental design contrasts single-node (monolithic) deployments with distributed deployments conducted within a Kubernetes cluster. The primary goal is to isolate the effects of deployment design while ensuring uniformity across hardware resources, operating system configurations, and workload characteristics.

3.1. Experimental Framework

The experimental assessment was performed in two separate settings: a monolithic database environment and a distributed Kubernetes cluster. These settings were designed to represent deployment scenarios representative of contemporary cloud-native application architectures.
The monolithic setup comprised a singular high-performance workstation that hosted independent database instances. The system had a 13th-generation Intel Core i7-13700 processor (Intel Corporation, Santa Clara, CA, USA), 64 GB of DDR5 RAM, and a 1 TB NVMe SSD. A Realtek RTL8125 2.5 GbE controller (Realtek Semiconductor Corp., Hsinchu, Taiwan) facilitated network access. This design exemplifies a standard single-node deployment tailored for low-latency transactional applications.
The distributed environment was configured as a Kubernetes cluster hosted on virtualized infrastructure administered via VMware vSphere Client version 8.0.1 (Broadcom Inc., Palo Alto, CA, USA). The cluster had three nodes, each equipped with an Intel Xeon Gold 6326 processor, 24 virtual CPUs, and 64 GB of DDR4 RAM. HPE Nimble Fiber Channel storage (Hewlett Packard Enterprise, Spring, TX, USA) offered 1 TB of persistent storage, presented as block storage volumes to guarantee low-latency access appropriate for database workloads. Cluster networking was implemented via VMXNET3 virtual network interfaces with a capacity of 10 Gbps. All nodes were connected in a single virtualized network environment, reducing external network unpredictability while maintaining inter-node communication overhead. The cluster was deployed utilizing Kubernetes version 1.30, with containerd serving as the container runtime. The architecture is shown in Figure 1.
Figure 1. Architecture of the experimental framework. Left: monolithic single-node deployment. Right: distributed Kubernetes cluster (on VMware vSphere) with shared Fiber Channel persistent storage.
Kubernetes was chosen over Docker Compose for multiple reasons. Kubernetes offers StatefulSets, PersistentVolumeClaims, and headless Services were essential for production-like stateful clusters [3]. Docker Compose lacks functionality for these at a cluster scale. Second, Kubernetes is the definitive standard for cloud-native applications, making the outcomes immediately relevant to deployment decisions. Third, previous research indicates that Kubernetes networking, scheduling, and storage abstractions impose overhead distinct from Docker’s paradigm [21,22], and our analysis isolates this overhead.
Both environments used Ubuntu Server 24.04.2 LTS (Noble Numbat) to ensure consistent operating system performance across deployments. This homogeneity reduces variability caused by system-level discrepancies and enables reproducible experimentation.

3.2. Assessed Database Systems

The experimental assessment encompasses a selection of commonly used database administration solutions that exemplify both relational and NoSQL paradigms, as well as various architectural methodologies for data management. These systems were chosen to represent a diverse array of database technologies frequently utilized in cloud-native and microservice-oriented applications.
The systems under evaluation comprise:
  • Relational databases: PostgreSQL version 17.5 and MySQL version 8.0.41;
  • Document-oriented database: MongoDB version 7.0.5;
  • In-memory key-value database: Redis 8.2.0;
  • Distributed wide-column database: Cassandra version 4.0.3.
PostgreSQL, MySQL, MongoDB, and Redis were assessed in monolithic (single-node) setups. PostgreSQL, MySQL, MongoDB, and Cassandra were assessed in distributed setups within the Kubernetes cluster.
Redis was assessed solely in a monolithic setup, as it is fundamentally engineered as an in-memory datastore suited for vertical scaling and minimal latency operations. In contrast, Cassandra was assessed solely in a distributed configuration, as its architecture is fundamentally intended for multi-node deployment and does not exemplify a significant monolithic use case. These selections signify the designated operational functions of the respective systems.

3.3. Kubernetes Deployment Configuration

Distributed database deployments were executed via containerized instances orchestrated by Kubernetes. Stateful workloads were implemented using Kubernetes-native methods that support persistent storage and consistent network identities.
Persistent storage was implemented using Kubernetes PersistentVolume (PV) and PersistentVolumeClaim (PVC) resources, ensuring data retention independent of container lifecycle events. This design enables resistance to pod restarts and rescheduling.
Kubernetes StatefulSets were used to manage database instances that require persistent identities and ordered deployment. StatefulSets offer predictable naming, stable network endpoints, and durable storage associations, which are crucial for distributed database systems that depend on consistent cluster membership and node identity.
Supplementary Kubernetes resources, such as Services, ConfigMaps, and Secrets, were used to manage network connections, configuration parameters, and sensitive credentials. These components ensured uniform configuration across cluster nodes and reliable connectivity between database instances and workload-generation clients.
Distributed database systems were implemented utilizing their inherent clustering processes. PostgreSQL and MySQL were set up with primary-replica architectures using asynchronous replication; MongoDB was implemented as a replica set without sharding; and Cassandra functioned as a multi-node cluster with a replication factor of 3 and configurable consistency levels, representing a typical production setup for a three-node deployment. These configurations exemplify frequently employed production deployment methods.
Database performance in distributed contexts is significantly influenced by configuration options, including replication techniques, consistency levels, storage backends, and network configurations. This study selected configurations that represent frequently used production settings to ensure practical relevance. Nonetheless, other combinations may produce varying performance attributes. Subsequent research should investigate a broader configuration space to more accurately assess each system’s sensitivity to deployment and tuning settings.

3.4. Workload Generation and Workload Design

The performance of the database was assessed using recognized workload-generation tools that replicate real-world application behavior across several database paradigms:
  • PostgreSQL was assessed using pgbench, which simulates transactional workloads in accordance with the TPC-B benchmark;
  • MySQL was assessed using sysbench, which supports variable transactional workloads with adjustable read/write ratios;
  • MongoDB was assessed using the Yahoo! Cloud Serving Benchmark (YCSB), which provides well-defined workload profiles that reflect prevalent cloud application trends;
  • Redis was assessed using redis-benchmark, which produces high-concurrency key-value operations;
  • Cassandra was assessed utilizing cassandra-stress, which enables adjustable distributed read and write workloads.
Custom workload scripts were developed for PostgreSQL: (1) write-test.sql—randomized INSERTs and UPDATEs; (2) read-test.sql—randomized point-select queries; (3) oltp-test.sql—mixed reads, updates, and transaction logging. For MySQL, sysbench provided five standardized profiles: oltp_read_only (16 SELECT/txn), oltp_point_select (single-row lookups), oltp_write_only (INSERT/UPDATE/DELETE), oltp_update_index (indexed-column updates), and oltp_read_write (mixed OLTP). For MongoDB, YCSB workloads A (50/50 read-update), B (95/5), C (100% read), and F (read–modify–write) were applied. For Cassandra, cassandra-stress was configured at consistency levels ONE and QUORUM for read, write, and mixed workloads.
For dataset sizes, we used PostgreSQL at pgbench scaling factors 500 and 1000 (~7.2 GB and ~14.4 GB); MySQL at 100 and 200 tables; MongoDB at 5 million and 10 million records; Cassandra at 5 million and 10 million partitions; Redis at 100,000 operations (256-byte payload) and 10 million operations (1024-byte, pipelined). Table 2 shows the workload parameter matrix used for all evaluated database systems:
Table 2. Workload parameter matrix for all evaluated database systems.
Workloads were formulated to exemplify various access patterns, encompassing read-intensive, write-intensive, and mixed transactional workloads. The concurrency levels were adjusted by varying the number of client connections and worker threads. In distributed deployments, concurrency levels were deliberately adjusted—specifically reduced for PostgreSQL (64c/20t vs. 72c/24t monolithic) and increased for MySQL (64–72t vs. 24–48t monolithic)—to reflect realistic multi-client cluster workloads and the differing saturation points of each deployment configuration, rather than applying identical parameters across architectures. This modification illustrates authentic deployment behavior, in which various designs achieve optimal performance at distinct concurrency levels. Imposing uniform concurrency in both monolithic and distributed contexts would create unnecessary limitations and could distort the true operational capacity of any system. Consequently, concurrency was adjusted to align with the saturation points for each configuration, ensuring that performance comparisons reflect practical deployment scenarios rather than consistent yet artificial testing criteria.

3.5. Performance Metrics

The experimental assessment focuses on throughput and latency as primary performance metrics, consistent with established database benchmarking methodology [9,10]. Table 3 formally defines all metrics used.
Table 3. Performance metrics: definitions and units.
These metrics collectively provide a comprehensive perspective on system performance across both monolithic and distributed deployment modes.

3.6. Methodology of Experimentation

The experimental technique adhered to a systematic, replicable methodology to ensure uniform comparability across database systems and deployment environments.
Each database system was assessed under controlled workload parameters, including dataset size, concurrency level, and execution time. Where relevant, equivalent workload metrics were employed across deployment strategies to facilitate meaningful comparison.
Each run lasted between 300 and 600 s, depending on the tool used. A warm-up period was observed in all runs. Each evaluation configuration was completed at least three distinct times; MySQL Kubernetes runs utilized two baseline runs for each table-scale configuration (resulting in four K8s runs per workload type). The values shown in Section 4 are the means across repetitions; standard deviations and interval-level statistics are detailed in the tables throughout the paper.
The experimental design, constrained to a cluster size of three nodes, effectively illustrates essential attributes of distributed database functionality, such as replication, partitioning, and inter-node coordination, which scale proportionately in bigger implementations. Standardized benchmarking techniques facilitate reproducibility and controlled comparisons among systems; nonetheless, it is crucial to recognize that these workloads exemplify simulated access patterns. While they resemble typical database operations, they fail to capture the intricacies of real-world applications, where database interactions are frequently integrated into multi-tier architectures, involve diverse query patterns, and are affected by application logic, caching mechanisms, and network fluctuations. Thus, the findings of this study should be regarded as indicative of essential system behavior under regulated conditions, rather than precise forecasts of performance in operational settings.

4. Results

This section presents the findings of the experimental assessment comparing monolithic and distributed database implementations in Kubernetes environments. The research emphasizes throughput and latency as the principal performance metrics, supplemented by assessments of system resource utilization. The aim is to deliver a systematic and comprehensible assessment of database performance across various architectures and workload categories.
Due to the inherent uncertainty in distributed systems, the results are accompanied by a comprehensive statistical analysis that includes variability metrics, confidence intervals, and trend evaluations. This level of information aims to ensure transparency and reproducibility, and to document performance attributes that may be obscured by mean values alone, especially in systems exhibiting significant fluctuations or non-deterministic behavior.
Results are presented for each database system, followed by a comparative summary highlighting overarching performance trends and architectural trade-offs.

4.1. PostgreSQL

PostgreSQL was assessed as a prototypical relational database system tailored for transactional workloads. The results provide a foundation for comprehending the behavior of classic OLTP systems across various deployment methods.

4.1.1. PostgreSQL Monolithic and Distributed Results

The performance of PostgreSQL in monolithic and distributed systems is shown in Table 4:
Table 4. PostgreSQL performance in monolithic and Kubernetes deployments. Mean +/− StdDev from 60 ten-second intervals per run (n = 2 runs per configuration). CV% = coefficient of variation.
Kubernetes write workloads suffer a 66–72% throughput reduction compared to monolithic, with latency standard deviation inflating from 1.160 ms to 6.666 ms. Read workloads degrade by only 15% and maintain identical stability (CV ~3%), demonstrating that Kubernetes overhead is specifically a write-path phenomenon. The 10-s interval data show K8s write TPS swinging between 12,000 and 38,000 within individual runs—variability invisible in mean values alone.
The statistical analysis of scale sensitivity across the two dataset sizes is presented in Table 5:
Table 5. PostgreSQL performance change between pgbench scale 500 (~7.2 GB) and scale 1000 (~14.4 GB). All |Δ| < 5% in the monolith confirms scale invariance within the tested range.
Our analysis illustrates that PostgreSQL performance is largely scale-invariant across the two evaluated dataset sizes in the monolithic deployment, with all throughput and latency variations remaining under 5.1% between scaling factors 500 and 1000.

4.1.2. PostgreSQL Analysis

Analysis of results from the two dataset sizes examined indicates that, for the monolithic PostgreSQL deployment, the TPS variance between scales is under 5.1%, and latency discrepancies are comparably minimal. This stability is due to PostgreSQL’s buffer pool and NVMe SSD’s ability to manage the working set with consistently low latency, regardless of dataset size; larger datasets do not significantly increase cache misses or I/O wait times within this range. The Kubernetes deployment reveals a more intricate narrative: read and OLTP-mixed workloads maintain comparable scale stability (Δ < 1%), the write workload exhibits an 18.6% enhancement in TPS and a 17.1% decrease in latency when transitioning from scale 500 to scale 1000. The slight sensitivity in distributed writes presumably indicates a favorable alignment between the larger dataset’s write distribution pattern and the persistent volume’s sequential I/O characteristics, rather than a fundamental architectural effect. Although this discrepancy does not alter the study’s primary conclusions, it suggests that distributed PostgreSQL deployments exhibit somewhat greater sensitivity to dataset expansion than their monolithic counterparts—an important factor when generalizing these findings to substantially larger production datasets.
The read:write throughput ratio analysis is shown in Table 6:
Table 6. PostgreSQL read:write throughput ratio by deployment. Kubernetes amplifies the read/write asymmetry by 3× because replication overhead falls exclusively on the write path.
In the monolithic PostgreSQL configuration, read operations are 4.66× faster than write operations, reflecting the intrinsic asymmetry between read and write paths in a transactional RDBMS. In the Kubernetes implementation, this ratio escalates to 14.1×, representing a 3.03× amplification. The mechanism is simple: replication overhead affects only the write path (which must wait for replica acknowledgments before committing), while reads are served locally from the primary without coordination costs. The amplification of asymmetry indicates that allocating a write-intensive workload in Kubernetes does not impose a consistent burden; it systematically reallocates costs to writes.
Time-trend analysis with p-values is as shown in Table 7:
Table 7. Pearson correlation (elapsed time → per-interval TPS), n = 60 intervals. Two-sided p-values; 95% CI via Fisher z-transform. Bonferroni-corrected threshold for 12 tests: α* = 0.004.
Applying Bonferroni correction for twelve simultaneous tests (α* = 0.004), only the two Kubernetes read workloads show correlations surviving correction: scale 500, r = −0.402, p = 0.0015, 95% CI [−0.595, −0.165]; scale 1000, r = −0.351, p = 0.0060, 95% CI [−0.555, −0.106]. The absence of any significant trend in write workloads—including all Kubernetes write runs—indicates that K8s write instability (CV 40–42%) is a random, non-systematic process consistent with sporadic replication coordination delays rather than progressive resource exhaustion.
PostgreSQL demonstrates a distinct sensitivity to distributed execution. The noted decline in throughput and rise in latency can be attributed to coordination costs arising from replication and inter-node communication. PostgreSQL also exhibits one of the most significant performance disparities between monolithic and distributed installations among the systems subsequently assessed, underscoring its robust optimization for vertically scaled environments. Resource use patterns suggest that the distributed deployment is constrained not by hardware capacity but by the complexity of orchestration and synchronization. These findings underscore PostgreSQL’s appropriateness for latency-sensitive transactional tasks, especially in a single-node setup.

4.2. MySQL

MySQL was assessed in analogous situations to enable a comparative analysis of relational database systems. The findings demonstrate the response of an alternative engine to distributed deployment.

4.2.1. Performance Results

Table 8 shows the throughput and latency recorded for MySQL:
Table 8. MySQL performance summary: monolithic vs. Kubernetes (PXC) across all sysbench workload types. Means across runs (monolith n = 2; K8s n = 4). 95% CIs from run-level replicates.
Unlike PostgreSQL, throughput remains consistently stable across deployment patterns; however, latency significantly escalates in the distributed setup.
MySQL exhibits a heterogeneous performance profile that differentiates it from the other relational systems assessed in this study. Read-intensive workloads significantly deteriorate in the Kubernetes PXC implementation. Write-only workloads, nevertheless, exhibit the opposite trend—the sole instance among all five assessed systems in which a Kubernetes deployment surpasses its monolithic equivalent in throughput. Update and mixed workloads occupy an intermediate position: throughput remains largely consistent between deployments, latency increases significantly in Kubernetes, and confidence intervals expand markedly, indicating run-to-run variability due to the Galera cluster’s warm-up behavior. The results illustrate the architectural features of the Percona XtraDB Cluster: its Galera-based multi-primary replication efficiently distributes write load, but introduces network overhead that adversely impacts read latency, as shown in Table 9:
Table 9. MySQL throughput and latency change from monolithic to Kubernetes.
Read-oriented workloads demonstrate good stability in both monolithic and Kubernetes deployments, indicating that read performance is consistently predictable regardless of deployment mode. Write and update workloads exhibit moderate stability in the monolith but deteriorate to low stability in Kubernetes, characterized by significant fluctuations, including near-total write stalls that recover in the subsequent measurement window. The mixed read–write workload shows low stability across both systems, driven by intermittent InnoDB lock contention in the monolith and cumulative replication latency in Kubernetes.
Table 10 reports interval-level throughput stability across workload types and deployments, revealing considerable variation across configurations:
Table 10. MySQL throughput stability (CV%) from interval-level measurements. n = number of 10-s measurement intervals. Stability classification: HIGH = CV < 15%, MEDIUM = 15–30%, LOW ≥ 30%.
Table 10 reports interval-level throughput stability across workload types and deployments. Throughput stability varies significantly across workload types and deployments. Read-oriented workloads demonstrate good stability in both monolithic and Kubernetes deployments, signifying that read performance is reliably predictable irrespective of deployment mode. In the monolith, write and update workloads exhibit moderate stability; however, in Kubernetes, they deteriorate to low stability, characterized by significant fluctuations, including near-total write stalls that recover in the subsequent measurement window. The mixed read–write workload shows low stability across both systems, driven by intermittent InnoDB lock contention in the monolith and cumulative replication latency in Kubernetes.
Table 11 presents Pearson correlation coefficients between elapsed time and per-interval throughput for each MySQL run, testing for systematic trends within individual benchmark executions:
Table 11. Pearson r (elapsed time → TPS) for MySQL runs. n = 30 or 60 intervals. Two-sided p-values; 95% CI via Fisher z-transform. Positive r = throughput rises over time; negative r = throughput falls.
Table 11 demonstrates one of the most diagnostically significant patterns in the MySQL dataset. All oltp_read_write executions—both in monolithic and Kubernetes deployments—exhibit robust, statistically significant upward trends over time, initially indicating increased throughput. This does not represent a true warm-up advantage; instead, it illustrates a typical crash-and-recovery cycle in which throughput initially approaches its zenith, declines mid-execution due to InnoDB lock contention, and then gradually recovers. The recovery phase predominates the linear fit for the entire run duration. Write and update workloads exhibit slight yet statistically significant declining trends in the monolith, aligning with gradual lock accumulation, whereas all Kubernetes write executions demonstrate no significant temporal trend, thereby affirming that Kubernetes write instability is random and non-progressive rather than indicative of systematic degradation.
Table 12 compares MySQL performance between the 100-table and 200-table dataset configurations, assessing whether results are sensitive to dataset size in either deployment mode:
Table 12. MySQL performance change between 100-table and 200-table dataset configurations. All |Δ| < 5% confirms complete scale invariance within the tested range.
Table 12 confirms that MySQL performance exhibits perfect scale invariance across the two table-count configurations evaluated, in both monolithic and Kubernetes installations. The performance disparities between the 100-table and 200-table configurations are minimal across all workload types, suggesting that InnoDB’s buffer pool effectively manages both dataset sizes inside its working set without significant cache pressure. This outcome reinforces the legitimacy of comparisons among deployments, affirming that the noted performance disparities are attributable to architectural elements rather than byproducts of dataset size.
Table 13 reports throughput and latency for the two independent Kubernetes baseline runs at each configuration, quantifying how much performance varies between successive runs of the same workload:
Table 13. MySQL Kubernetes run-to-run variability: Baseline Run 1 vs. Run 2 TPS and average latency, by workload and table scale.
Table 13 demonstrates significant run-to-run variability in the Kubernetes deployment, especially for write-intensive workloads. The second baseline run consistently achieves significantly higher throughput and lower latency than the first under identical configurations, reflecting the warm-up behavior of the Galera cluster: the initial run incurs additional inter-node synchronization overhead as the cluster establishes its write-set certification state, which diminishes in subsequent runs. Read workloads and mixed workloads have significantly reduced inter-run variations, indicating that the warm-up impact is particular to the write certification process. This discovery has a practical implication: benchmarking Galera-based MySQL clusters requires either a dedicated warm-up phase or numerous iterations to obtain consistent results.

4.2.2. MySQL Analysis

MySQL has a more variable reaction to distribution. Although latency increases considerably, throughput is maintained by increased concurrency. This pattern contrasts with PostgreSQL, where both throughput and latency deteriorate more significantly.
MySQL demonstrates a heterogeneous deployment profile, in contrast to the other assessed relational systems. Three distinct patterns emerge: read-intensive workloads deteriorate in Kubernetes (oltp_read_only −37.3%, oltp_point_select −48.6%); write-intensive workloads exhibit improvement (+37.3% for oltp_write_only), enabled by PXC’s multi-primary write distribution; and update and mixed workloads demonstrate comparable TPS but significantly increased latency in K8s (oltp_read_write: 5.91 ms mono vs. 18.52 ms K8s, 3.13×). This aligns with PXC’s Galera-based synchronous replication design, optimized for write distribution at the expense of per-transaction latency.
The findings indicate that MySQL may use horizontal scaling more effectively for throughput; however, it still incurs unavoidable latency penalties due to coordination overhead. This underscores a significant distinction: not all relational systems respond uniformly to distributed deployment, even when subjected to analogous workloads.
Thus, MySQL may be more appropriate than PostgreSQL in distributed settings where throughput is emphasized over latency.

4.3. MongoDB

MongoDB was assessed using various workload profiles to encompass a spectrum of application scenarios, including read-intensive, write-intensive, and mixed workloads.

4.3.1. Monolithic Performance

Table 14 presents MongoDB performance in the monolithic deployment across the four YCSB workload profiles, including read and update latency at the average and 99th-percentile levels.
Table 14. MongoDB performance in monolithic deployment. YCSB workload profiles, 10M record dataset, 64 threads. All latency values in µs. p99 values reveal tail behaviour under single-node write contention.
MongoDB in the monolithic deployment provides generally consistent throughput across the four YCSB workload profiles evaluated. Throughput is consistently stable across various workloads, including read-only, read-heavy, balanced, and read–modify–write, suggesting that the monolithic arrangement accommodates all access patterns within a comparable performance range. The average read delay is minimal in read-heavy workloads and increases marginally as the proportion of updates rises, indicating the additional burden from write operations in WiredTiger’s MVCC paradigm. The elevated p99 latency values across all workloads indicate sporadic, substantial tail events during prolonged single-node write contention that are not discernible from mean values alone.

4.3.2. Distributed Performance

The effects of Kubernetes deployment are illustrated in Table 15.
Table 15. MongoDB performance in Kubernetes distributed deployment (10M records, 64 threads). All latency values in µs. Ranges reflect variation across 5M and 10M dataset sizes and multiple runs.
Deploying MongoDB as a Kubernetes replica set consistently reduces throughput and significantly increases latency compared to a monolithic deployment across all demand profiles. The ranges documented across dataset sizes and multiple executions demonstrate substantial variability in the distributed configuration, especially for update operations, in contrast to the stricter consistency noted in the monolithic deployment.
The next evaluation is related to MongoDB throughput scalability, as shown in Table 16:
Table 16. MongoDB throughput scalability (64 → 200 threads). Scalability ratio < 1.0 = regression. The monolithic Workload A regression is the only throughput reversal observed across all systems in this study.
The monolithic MongoDB deployment exhibits a decline in throughput under Workload A at 200 threads, from approximately 91,333 to 54,247 ops/sec (−41%, scalability ratio of 0.59×). This results from MVCC lock contention during high-concurrency mixed read–write access, where conflicting update operations impede one another in WiredTiger. The Kubernetes deployment does not demonstrate this problem, as the replica set allocates update operations and the principal write path experiences less contention. Independently, Workload C (read-only) at 200 threads exhibits super-linear scaling in Kubernetes (30.8×), attributable to secondary-read offloading, attaining 87,825 ops/sec—the sole setting in this analysis where a Kubernetes deployment surpasses its monolithic counterpart.
Table 17 examines the ratio of update latency to read latency within each MongoDB deployment, using this ratio as a sensitive indicator of the additional write-path overhead introduced by replication:
Table 17. MongoDB update-to-read latency ratio across deployment modes. A ratio > 1.0 means updates are slower than reads; the increase from monolithic to Kubernetes reflects the additional write-path penalty imposed by replication.
In the monolithic deployment, Workload A exhibits an update latency of 1.14 times the read latency, indicating a slight overhead commensurate with local Write-Ahead Logging and journal commitments. In Kubernetes, the ratio increases to 1.49×, representing a 31-percentage-point gain. This excessive update latency inflation verifies that replication within the MongoDB replica set incurs overhead specifically on the write path: each acknowledged write must be propagated to at least one secondary before the client receives confirmation, resulting in a network round-trip that is not present in reads. This pattern is uniform across workload categories and serves as structural evidence of distributed write amplification.

4.3.3. MongoDB Analysis

MongoDB exhibits a performance pattern directionally similar to PostgreSQL—distributed deployment consistently degrades both throughput and latency—though the two systems are measured with different tools and workloads and are not directly numerically comparable. Distributed deployment leads to diminished performance and heightened latency, especially for read operations.
In contrast to relational systems, MongoDB’s performance is not limited by hardware use, as CPU and storage usage are kept to a minimum. This indicates that performance deterioration is mostly influenced by network latency and coordination procedures rather than resource constraints.
The findings suggest that although MongoDB is engineered for distributed contexts, it does not inherently benefit from distribution under moderate workloads and may incur performance drawbacks akin to those of relational systems.

4.4. Redis

Redis was evaluated as a high-performance in-memory system, providing a reference point for the upper limits of monolithic database performance.

4.4.1. Performance Results

Table 18 presents Redis throughput and full latency percentile data for SET and GET operations under the baseline benchmark configuration:
Table 18. Redis performance at baseline configuration (50 clients, 256-byte payload, 100k operations, no pipelining).
Table 18 confirms that Redis provides outstanding throughput with sub-millisecond latency for both SET and GET operations under standard settings. Performance is highly consistent across the two operation types, and the tight latency distribution—with p99 remaining well below one millisecond—reflects the predictability of in-memory key-value access with no coordination overhead.
Table 19 presents the comprehensive ranking of Redis operation throughput across eleven operation categories in pipelined, high-throughput scenarios, including average and tail latency metrics:
Table 19. Redis full operation throughput ranking (pipelined: 200 clients, 1024-byte payload, pipeline depth 64, 10M operations). Ranked by throughput.
Table 19 shows that throughput varies significantly across Redis operation types, even within a single in-memory system. All O(1) operations are concentrated inside a limited range, indicating that for basic data structures, throughput is constrained by network serialization rather than computational expense. The sorted-set operation is the distinct outlier, attaining significantly poorer performance than all other operation types due to the logarithmic complexity of its insertion mechanism. The p99-to-average latency ratio varies across activities, with set-based operations exhibiting elevated tail ratios, possibly indicating sporadic contention when multiple clients access the same underlying data structure.

4.4.2. Redis Analysis

Redis significantly outperforms all other systems in both throughput and latency. This is primarily due to its in-memory architecture and lack of distributed coordination.
In contrast to Cassandra, which also achieves high throughput, Redis demonstrates that reducing network overhead can significantly lower latency. This performance entails compromises in scalability and persistence.
Redis thus epitomizes the maximum performance attainable in monolithic systems, serving as a benchmark for evaluating other designs.

4.5. Cassandra

Cassandra was evaluated as a distributed system designed for scalability and high availability.

4.5.1. Performance Results

Table 20 provides a comprehensive statistical assessment of Cassandra’s performance across various workload types and consistency levels, encompassing percentile latency tiers and run-to-run variability.
Table 20. Cassandra’s performance in a distributed Kubernetes deployment. Means across multiple runs at 5M and 10M partition dataset sizes. All latency values in ms.
Table 20 indicates that Cassandra’s performance characteristics are significantly influenced by the selected consistency level. Reading workloads at ONE consistency yields the highest throughput and lowest latency across all distributed configurations in this investigation, demonstrating exceptional run-to-run stability. Writing workloads at ONE achieve robust throughput with minimal variability; however, transitioning to QUORUM consistency significantly reduces throughput, increases latency, and markedly amplifies run-to-run variability, making QUORUM write performance the most unpredictable configuration across all assessed systems and deployments. The mixed workload at QUORUM occupies a middle ground, indicating the aggregate expense of implementing QUORUM limitations on both read and write operations.
Table 21 presents Pearson correlation coefficients and inferential statistics about the association between Cassandra consistency levels and key performance indicators across all write benchmark executions.
Table 21. Pearson correlation: consistency level (ONE = 1, QUORUM = 2) vs. performance metrics across n = 8 Cassandra write benchmark runs. Two-sided p-values; 95% CI via Fisher z-transform.
Table 21 provides empirical evidence of the correlation between consistency level and performance. The correlation between consistency level and throughput is nearly perfectly linear and highly significant, as is the correlation with average latency, confirming that the performance cost of enhancing consistency is not a threshold effect but a proportional, predictable penalty across the evaluated configurations. The correlation with p99 latency, although positive, does not reach statistical significance at this sample size, suggesting that factors beyond the consistency level alone influence tail latency.
Table 22 quantifies the performance penalty associated with transitioning from ONE to QUORUM consistency across all evaluated dimensions, including mean throughput, extreme tail latency, and run-to-run variability:
Table 22. Quantified cost of moving from ONE to QUORUM consistency for Cassandra write workloads. All figures are means across runs at 5M and 10M partition dataset sizes.
Table 22 quantifies the comprehensive cost of transitioning from ONE to QUORUM consistency across all evaluated dimensions. The drop in throughput and increase in latency are considerable; nevertheless, the most operationally critical observation is the behavior at the extremes: the p99.9 latency escalates significantly more than the mean, and run-to-run variability rises markedly. QUORUM consistency entails not a uniform latency threshold but rather a high-variance, tail-heavy penalty, in which the most adversely impacted requests endure delays that significantly exceed those implied by mean or even p99 metrics.

4.5.2. Cassandra Analysis

Cassandra demonstrates the strengths of distributed database architecture. It achieves high throughput through parallel execution across nodes, particularly for read operations.
Compared to Redis, Cassandra incurs slightly higher latency due to network communication, but offers significantly greater scalability and fault tolerance. Unlike MongoDB and PostgreSQL, Cassandra benefits from distribution because its architecture is explicitly designed for partitioned, horizontally scalable workloads.
These results confirm that distributed systems can outperform monolithic systems in throughput when designed for scalability, particularly under relaxed consistency constraints.

4.6. Comparative Analysis

The subsequent subsections provide a comprehensive comparison of the assessed database systems to emphasize significant performance trends across designs. This comparison highlights relative variations in throughput and latency, rather than analyzing individual systems in isolation, thereby clarifying how architectural decisions affect overall system performance. The study reveals overarching trends by aggregating results that are not readily discernible from individual system evaluations alone.
Alongside throughput and delay, resource utilization was assessed throughout all studies. CPU and memory utilization consistently stayed below saturation limits in both monolithic and distributed configurations for all assessed systems. No setup demonstrated persistent CPU or memory depletion that would suggest hardware-level constraints. Performance reduction in remote deployments was consistently linked to coordination overhead, network latency, and replication techniques, rather than resource constraints. These observations affirm that the performance disparities are primarily due to architectural and orchestration factors, rather than to inadequate computational or memory resources.

4.6.1. Throughput Comparison

Table 23 summarizes peak throughput across all systems:
Table 23. Peak throughput across all evaluated systems and deployments.
Both monolithic and distributed architectures can achieve high peak throughput; however, the findings indicate that this capability is predominantly influenced by architectural design rather than solely by deployment strategy. Redis and MySQL achieve the highest throughput among monolithic systems through distinct mechanisms: in-memory access and optimized single-row keyed reads, respectively. In contrast, Cassandra attains similar distributed throughput due to its design for partitioned horizontal execution. The remaining systems aggregate at significantly reduced throughput, with distributed implementations of general-purpose relational and document databases consistently underachieving relative to their monolithic equivalents, thereby affirming that distribution alone does not confer a throughput benefit unless the system’s architecture is specifically engineered to leverage it.
The study indicates that in-memory monolithic systems achieve the highest performance, closely followed by purpose-built distributed architectures operating under relaxed consistency. In distributed Kubernetes installations, general-purpose relational and document databases consistently exhibit lower throughput, regardless of the number of client threads used.

4.6.2. Latency Overview

Table 24 summarises the minimum observed average latency for each system and workload category, providing a consolidated view of the latency floor achievable under each architectural configuration.
Table 24. Minimum observed average latency across all evaluated systems and workload categories.
Table 24 confirms that the lowest latencies in the study are achieved by in-memory and read-optimized monolithic systems, in which data locality eliminates coordination overhead. Distributed systems achieve optimal latency only when the foundational architecture is intentionally designed for distributed execution, as exemplified by Cassandra with ONE consistency. Latency significantly increases across all general-purpose systems in Kubernetes installations, with mixed read–write workloads exhibiting the highest average latency recorded in the study.
Latency results clearly favor monolithic systems, particularly those optimized for in-memory or single-node execution.

4.6.3. Synthesis of Findings

Across all systems, a consistent pattern emerges. Monolithic databases offer lower latency and higher efficiency due to the absence of coordination overhead, whereas distributed systems introduce additional latency but enable scalability and resilience.
Importantly, the results demonstrate that architecture has a greater impact on performance than the specific database engine. Systems such as Redis and Cassandra achieve high performance not because of their data models, but because of their architectural design.
System resource usage was observed during all benchmark executions. In monolithic PostgreSQL and MySQL deployments, CPU consumption peaked at 85–95% of available cores during intensive write and OLTP workloads, while memory usage remained consistent at 8–12 GB, well within the 64 GB capacity, indicating compute saturation rather than memory limitation. In Kubernetes distributed deployments, CPU utilization per node was significantly lower (20–45% during write workloads), suggesting that performance degradation is primarily due to coordination overhead—including network round-trip time for replication acknowledgments, distributed lock management, and inter-pod communication—rather than resource exhaustion. MongoDB’s monolithic execution demonstrated persistently low CPU utilization (<30%) even during peak traffic, aligning with its event-loop I/O architecture. Redis exhibited nearly total use of a single CPU core during the first benchmarks (single-threaded server), indicating that design rather than hardware limitations determine its throughput limit. These observations confirm that distributed performance penalties are driven by coordination overhead rather than resource exhaustion across all systems.

4.6.4. Final Interpretation

Taken together, the results reveal a fundamental trade-off that directly answers the research questions of this study. Monolithic systems are best suited for latency-sensitive transactional workloads, where minimizing coordination overhead is critical. In contrast, distributed systems are better aligned with large-scale, read-intensive, and fault-tolerant applications, where scalability and availability are prioritized.
Rather than indicating a universally superior architecture, the findings suggest that optimal system design depends on workload characteristics and operational requirements. This reinforces the practical importance of hybrid architectures, which combine the strengths of both monolithic and distributed systems in modern cloud-native environments.

5. Additional Results

To ensure clarity and focus, Section 4 offers a refined compilation of the most significant experimental findings; the entire dataset is available at: https://github.com/vEddYcro/DBAppendix (accessed on 24 April 2026).
The repository contains both processed results (figures and aggregated metrics) and unprocessed, text-based benchmark outputs utilized in the investigation. These resources facilitate independent validation of the reported findings and offer further insights into performance behavior under diverse workload conditions and system configurations.
The extended results maintain the basic trends outlined in Section 4 but provide a more detailed perspective on system behavior, particularly regarding concurrent scaling, workload variability, and resource usage patterns. Consequently, they bolster the coherence and robustness of the conclusions articulated in this study.

6. Discussion

Before analyzing specific findings in depth, it is beneficial to contextualize them within the existing research. Multiple findings corroborate previously identified trends in isolated environments: the dominance of monolithic databases for low-latency transactional tasks has been recognized in relational analyses [11,23], and Cassandra’s efficacy in distributed reads has been recorded in IoT and cloud scenarios [19]. This study offers three additions that expand beyond current research. First, it illustrates these tendencies across five database systems—PostgreSQL, MySQL, MongoDB, Redis, and Cassandra—within a single controlled Kubernetes architecture, a comparison that has not been undertaken before. Second, it measures the precise impact of Kubernetes orchestration overhead on performance degradation, distinguishing it from the inherent costs of data dissemination (Section 6.3). The multi-scale, multi-concurrency findings demonstrate behaviors that cannot be anticipated from prior single-configuration research. MongoDB’s decline in write-contention throughput under high monolithic concurrency, MySQL PXC’s superior write throughput compared to its monolithic configuration, and the nearly perfect linear correlation between Cassandra’s consistency level and throughput (r = −0.983, p < 0.001). These findings collectively enhance empirical comprehension of database–infrastructure interaction in cloud-native systems.
The results indicate that database performance in Kubernetes systems is largely determined by the interplay among architectural design, workload characteristics, and orchestration-induced overhead.

6.1. Performance Attributes of Monolithic Architectures

Monolithic database deployments offer a distinct, uniform benefit for latency-sensitive transactional tasks. This phenomenon is particularly pronounced in PostgreSQL and MySQL, where single-node systems exhibit lower latency and greater efficiency than their distributed counterparts.
This benefit stems directly from architectural locality. In monolithic systems, query execution, transaction coordination, and store access occur within a single execution environment, thereby obviating the need for inter-node communication and synchronization. Consequently, transaction processing circumvents the delay penalties associated with distributed coordination.
Redis marks the upper limit of this behavior. The in-memory architecture eliminates disk I/O delay, facilitating exceptionally high throughput with sub-millisecond response times. This underscores a key principle: performance in monolithic systems is predominantly influenced by data locality and hardware efficiency, rather than coordination overhead.
This efficiency is fundamentally limited. Monolithic systems rely on vertical scaling and are ultimately constrained by the resources of a singular node. Although they perform exceptionally well in predictable, low-latency settings, they lack the scalability and fault tolerance necessary for extensive distributed systems.

6.2. Distributed Architectures: Trade-Offs in Scalability and Coordination

Distributed database systems offer distinct benefits in scalability, fault tolerance, and task allocation. Systems like Cassandra achieve high throughput by distributing data across nodes and executing requests concurrently.
This behavior exemplifies a fundamental characteristic of distributed systems: horizontal scalability is attained by partitioning tasks into independently executable parts. When workloads are efficiently partitioned—especially in read-intensive contexts—distributed systems achieve high throughput and preserve stable performance under escalating demand.
Nonetheless, this scalability incurs inevitable expenses. The processes of replication, consistency enforcement, and inter-node communication introduce coordination overhead that directly increases latency and system complexity. These impacts were uniformly found across PostgreSQL, MySQL, and MongoDB when implemented in distributed settings.
These findings align with essential characteristics of distributed systems: scalability and fault tolerance are achieved at the expense of increased coordination and communication costs. The noted performance disparities are thus not products of implementation, but rather direct outcomes of architectural design.
The results indicate that distributed deployment does not consistently enhance performance. Cassandra derives advantages from distribution because its architecture is specifically engineered for partitioned functionality. Conversely, PostgreSQL and MongoDB exhibit significant performance declines in distributed settings because their designs are ill-suited to coordination-intensive contexts.

6.3. The Function of Kubernetes as a Dynamic Performance Layer

This study concludes that Kubernetes functions as an active performance layer rather than a neutral deployment substrate. By abstracting computing, storage, and networking resources, it significantly transforms database performance in ways that cannot be solely ascribed to the database engine.
It is essential to differentiate between two sources of performance overhead in distributed Kubernetes deployments: (a) distributed architecture overhead, which stems from replication protocols, consistency enforcement, and inter-node coordination—present in any multi-node deployment irrespective of orchestration; and (b) Kubernetes orchestration overhead, which arises from container networking (via CNI plugins), persistent volume access through storage interfaces, and resource contention induced by the scheduler. The current architecture facilitates partial separation. The read performance of PostgreSQL in Kubernetes (293,758 TPS, 0.195 ms) is comparable to that of its monolithic equivalent (345,459 TPS, 0.208 ms), reflecting a 15% decrease, mostly due to container networking and storage virtualization, since reads do not require replication. Performance diminishes by an additional 66–72%, indicating the cumulative expense of replication and orchestration. MySQL offers a supplementary isolation assessment: PXC write throughput in Kubernetes rises by 37.3%, indicating that when a system is architected for distributed multi-primary write operations, the Kubernetes infrastructure overhead is outweighed by the advantages of the distributed framework. This decomposition is consistent with the findings that the Kubernetes CNI setting alone incurs a quantifiable latency penalty for stateful services [20,21].
The findings indicate that database installations in Kubernetes environments consistently experience greater delays than analogous monolithic deployments. This phenomenon results from both distributed execution and infrastructure-level overhead, encompassing network virtualization and remote storage access.
In addition to performance benefits, Kubernetes offers substantial operational advantages: automated scheduling, self-healing, and horizontal scalability significantly improve system resilience and manageability in microservice-oriented and cloud-native architectures. Collectively, these attributes convert database performance from a hardware-dependent issue to one mediated by infrastructure, necessitating a simultaneous consideration of system design and orchestration behavior.

6.4. Selection of Architecture Based on Workload

The nature of its workload significantly influences a database’s performance. No singular architecture delivers optimal performance in every case.
Monolithic systems provide enhanced performance in:
  • Write-dominant tasks;
  • Latency-sensitive transactional systems in contexts necessitating robust consistency;
Distributed systems exhibit optimal performance for:
  • Read-intensive workloads at scale;
  • Applications requiring high availability and fault tolerance across geographically distributed infrastructure.
This results in an unequivocal conclusion—the selection of database design should be dictated by workload requirements rather than deployment trends or technological biases.
The findings further indicate that architectural mismatch results in quantifiable performance decline. Implementing coordination-sensitive systems in distributed contexts lacking explicit scaling constraints incurs overhead without yielding proportional advantages.
Performance disparities among all assessed systems are predominantly influenced by the degree to which each architecture corresponds with the execution environment, rather than solely by the type of database.

6.5. Design Considerations for Cloud-Native Systems

This study’s findings have immediate relevance to the design of cloud-native database systems.
First, architectural alignment exerts a more significant influence on performance than incremental adjustment. Choosing a suitable database architecture results in considerably more benefits than fine-tuning configuration options in an incompatible system.
Second, distributed deployment ought to be a conscious design choice rather than a default presumption. Although cloud-native platforms facilitate horizontal expansion, distribution incurs quantifiable costs that genuine scalability or availability needs must validate.
Third, hybrid architectures offer a pragmatic and efficient resolution. Integrating monolithic systems for transactional workloads with distributed systems for scalable data processing enables systems to capitalize on the strengths of both paradigms while mitigating their shortcomings.

6.6. Limitations

This study offers a controlled and systematic assessment of database performance in Kubernetes systems, although it has several limitations. The experiments were conducted on a three-node cluster, facilitating reproducibility and consistent comparisons, yet failing to capture the complexity and variability inherent in large-scale production installations. While the observed performance trends reflect fundamental architectural behaviors, absolute performance parameters may vary in larger, more heterogeneous systems.
The assessment largely emphasizes throughput and latency as fundamental performance measures. Although these criteria are crucial for database benchmarking, additional factors—such as failure recovery, long-term stability, elasticity under dynamic workloads, and operating overhead—were not thoroughly examined. These factors are especially pertinent in practical cloud-native systems and may affect architectural choices beyond mere performance.
Third, database configurations were chosen to represent standard deployment techniques; however, alternative configurations—such as varying replication algorithms, consistency levels, or storage backends—may yield divergent performance outcomes. Distributed systems are particularly sensitive to configuration decisions, with performance varying with tuning and workload-specific optimizations.
Ultimately, although the Kubernetes environment was carefully controlled, factors such as network topology, storage performance fluctuations, and multi-tenant resource contention were not adequately represented. These factors can introduce significant heterogeneity in real-world cloud systems and may also affect observed performance behavior.
Notwithstanding these constraints, the experimental design describes critical variables and elucidates the essential trade-offs between monolithic and distributed database designs. The results yield significant, generalizable insights into database performance in Kubernetes-based systems and highlight crucial avenues for further research.

7. Conclusions and Future Work

This study conducts a thorough empirical evaluation of monolithic and distributed database systems within Kubernetes environments, examining the impact of architectural design on throughput, latency, and scalability across five prevalent database systems—PostgreSQL, MySQL, MongoDB, Redis, and Cassandra—utilizing standardized benchmarking frameworks across various workload types, dataset sizes, and levels of concurrency.
The results indicate that monolithic and distributed systems have inherently different performance traits. PostgreSQL achieves 74,072 TPS with an average latency of 0.969 ms in a single-node setup. In contrast, it attains 20,805 TPS with a latency of 3.059 ms in Kubernetes—a 72% decrease in throughput attributed to write-path coordination overhead rather than hardware limitations. MySQL PXC, in contrast, attains superior write throughput in Kubernetes compared to a monolithic deployment (+37.3%), illustrating that specialized distributed write architectures can gain advantages from deployment. Redis achieves a baseline throughput of 262,467 operations per second at 0.098 ms latency, scaling to 4.2 million ops/sec under pipelined conditions. Cassandra attains 214,743 operations per second for reads at ONE consistency, nearing Redis throughput within a distributed Kubernetes cluster; however, write throughput declines by 45.2% when consistency is elevated to QUORUM, accompanied by an 11-fold increase in run-to-run variability (CV 7.1% → 84.7%).
Three primary conclusions arise from the experimental data. First, architectural alignment influences performance more than engine selection: systems engineered for distributed execution (Cassandra) gain advantages from distribution, while those intended for monolithic operation (PostgreSQL, MongoDB) suffer considerable performance drawbacks. MySQL PXC holds a mediating position—advantageous for write operations but less so for read operations. Kubernetes is not a neutral deployment layer; it incurs around a 15% loss in throughput for read-only workloads, and this overhead combines multiplicatively with replication overhead for write workloads. The type of workload is the principal factor influencing architectural suitability: write-intensive OLTP workloads typically prefer monolithic deployments unless the distributed system is specifically engineered for write distribution; conversely, read-intensive, high-availability workloads favor distributed architectures.
Practitioners developing cloud-native data infrastructure should: (a) maintain monolithic or vertically scaled deployments for latency-sensitive OLTP applications necessitating strong consistency; (b) implement purpose-built distributed systems—Cassandra for extensive distributed reads, MySQL PXC or analogous for write-distributed workloads—where scalability and high availability are paramount; and (c) evaluate hybrid architectures that integrate monolithic systems for transactional workloads with distributed systems for read-scaling or analytical layers. These architectures leverage the advantages of both paradigms while alleviating their respective shortcomings.
Future research should expand this analysis in four areas: (1) larger cluster configurations (five or more nodes) to determine if distributed performance penalties decrease at a larger scale; (2) a wider array of consistency models and replication strategies, particularly synchronous versus asynchronous replication for PostgreSQL and varying write concern levels for MongoDB; (3) assessment of cloud-native database systems specifically engineered for Kubernetes—CockroachDB and YugabyteDB, TiDB—which may not demonstrate the same coordination penalties as systems originally designed for monolithic environments; and (4) longitudinal stability and failure-recovery experiments to evaluate how each architecture reacts to node failure, pod rescheduling, and network partitions under sustained load.
In conclusion, database performance in cloud-native settings arises from the interplay of architecture, infrastructure, and workload. Effective and scalable data system design requires a holistic, systems-oriented perspective that accounts for all three dimensions.

Author Contributions

Conceptualization: J.R. and V.D.; Data curation: N.M.; Formal Analysis: J.R., A.K. and N.M.; Investigation: N.M.; Methodology: J.R., A.K. and N.M.; Resources: J.R. and A.K.; Software: J.R. and A.K.; Supervision: J.R.; Validation: J.R., A.K. and N.M.; Visualization: N.M.; Writing—original draft: N.M.; Writing—review & editing: J.R., V.D. and A.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The entire experimental dataset, including all raw benchmark outputs, time-series interval measurements, and comprehensive results for all five database systems, is freely accessible at https://github.com/vEddYcro/DBAppendix (accessed on 24 April 2026). The processed results are included in this article.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript.
OLTPOnline Transaction Processing
YCSBYahoo! Cloud Serving Benchmark
TPSTransactions Per Second
IOPSInput/Output Operations Per Second
PVPersistent Volume
PVCPersistent Volume Claim
CPUCentral Processing Unit
RAMRandom Access Memory
SSDSolid State Drive
NVMeNon-Volatile Memory Express

References

  1. Deng, S.; Zhao, H.; Huang, B.; Zhang, C.; Chen, F.; Deng, Y.; Yin, J.; Dustdar, S.; Zomaya, A.Y. Cloud-Native Computing: A Survey From the Perspective of Services. Proc. IEEE 2024, 112, 12–46. [Google Scholar] [CrossRef] [Scilit]
  2. Dong, H.; Zhang, C.; Li, G.; Zhang, H. Cloud-Native Databases: A Survey. IEEE Trans. Knowl. Data Eng. 2024, 36, 7772–7791. [Google Scholar] [CrossRef] [Scilit]
  3. Carrión, C. Kubernetes Scheduling: Taxonomy, Ongoing Issues and Challenges. ACM Comput. Surv. 2022, 55, 1–37. [Google Scholar] [CrossRef] [Scilit]
  4. Cesarano, C.; Natella, R. KubeFence: Security Hardening of the Kubernetes Attack Surface. In Proceedings of the 2025 55th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN), Naples, Italy, 23–26 June 2025; pp. 497–510. [Google Scholar] [CrossRef] [Scilit]
  5. Balalaie, A.; Heydarnoori, A.; Jamshidi, P. Microservices Architecture Enables DevOps: Migration to a Cloud-Native Architecture. IEEE Softw. 2016, 33, 42–52. [Google Scholar] [CrossRef] [Scilit]
  6. Toomwong, N.; Viyanon, W. Performance Comparison between Monolith and Microservice Using Docker and Kubernetes. Int. J. Comput. Theory Eng. 2021, 13, 91–95. [Google Scholar] [CrossRef] [Scilit]
  7. Bjørndal, N.; Mazzara, M.; Bucchiarone, A.; Dragoni, N.; Dustdar, S. Migration from Monolith to Microservices: Benchmarking a Case Study. J. Object Technol. 2021, 20, 1–18. [Google Scholar] [CrossRef] [Scilit]
  8. Taipalus, T. Database management system performance comparisons: A systematic literature review. J. Syst. Softw. 2024, 208, 111872. [Google Scholar] [CrossRef] [Scilit]
  9. Wang, Y.; Yu, M.; Hui, Y.; Zhou, F.; Huang, Y.; Zhu, R.; Ren, X.; Li, T.; Lu, X. A study of database performance sensitivity to experiment settings. Proc. VLDB Endow. 2022, 15, 1439–1452. [Google Scholar] [CrossRef] [Scilit]
  10. Difallah, D.E.; Pavlo, A.; Curino, C.; Cudre-Mauroux, P. OLTP-Bench: An extensible testbed for benchmarking relational databases. Proc. VLDB Endow. 2013, 7, 277–288. [Google Scholar] [CrossRef] [Scilit]
  11. Iqbal Thirupattur, J.; Theng Tan, A.X.; Lim, S.-L.; Wong, L.H.-E.; Yong, M.J.; Veerappampalayam Easwaramoorthy, S. Comparative Performance Analysis of SQL and NoSQL Databases for Optimizing Retail and E-Commerce Operations. In Proceedings of the 2024 9th International Conference on Communication and Electronics Systems (ICCES), Tamil Nadu, India, 16–18 December 2024; pp. 1063–1070. [Google Scholar] [CrossRef] [Scilit]
  12. Győrödi, C.A.; Dumşe-Burescu, D.V.; Zmaranda, D.R.; Győrödi, R.Ş. A Comparative Study of MongoDB and Document-Based MySQL for Big Data Application Data Management. Big Data Cogn. Comput. 2022, 6, 49. [Google Scholar] [CrossRef] [Scilit]
  13. Cooper, B.F.; Silberstein, A.; Tam, E.; Ramakrishnan, R.; Sears, R. Benchmarking Cloud Serving Systems with YCSB. In Proceedings of the 1st ACM symposium on Cloud computing 2010, Indianapolis, IN, USA, 10–11 June 2010; pp. 143–154. [Google Scholar] [CrossRef] [Scilit]
  14. Makris, A.; Tserpes, K.; Spiliopoulos, G.; Zissis, D.; Anagnostopoulos, D. MongoDB Vs PostgreSQL: A comparative study on performance aspects. GeoInformatica 2020, 25, 243–268. [Google Scholar] [CrossRef] [Scilit]
  15. Alzaidi, M.; Vagner, A. Application-Based Benchmarking on Redis and MongoDB for Trip Planning using GTFS Data. TEM J. 2023, 12, 2583–2592. [Google Scholar] [CrossRef] [Scilit]
  16. Ferreira, S.; Mendonça, J.; Nogueira, B.; Tiengo, W.; Andrade, E. Benchmarking Consistency Levels of Cloud-Distributed NoSQL Databases Using YCSB. IEEE Access 2025, 13, 63428–63438. [Google Scholar] [CrossRef] [Scilit]
  17. Sharma, B.; Bansal, P.; Chugh, M.; Chauhan, A.; Anand, P.; Hua, Q.; Jain, A. Benchmarking geospatial database on Kubernetes cluster. EURASIP J. Adv. Signal Process. 2021, 2021, 43. [Google Scholar] [CrossRef] [Scilit]
  18. Cardas, C.; Aldana-Martín, J.F.; Burgueño-Romero, A.M.; Nebro, A.J.; Mateos, J.M.; Sánchez, J.J. On the performance of SQL scalable systems on Kubernetes: A comparative study. Clust. Comput. 2022, 26, 1935–1947. [Google Scholar] [CrossRef] [Scilit]
  19. Gkamas, T.; Karaiskos, V.; Kontogiannis, S. Performance Evaluation of Distributed Database Strategies Using Docker as a Service for Industrial IoT Data: Application to Industry 4.0. Information 2022, 13, 190. [Google Scholar] [CrossRef] [Scilit]
  20. Lee, J.; Kang, H.; Yu, H.; Na, J.; Kim, J.; Shin, J.; Noh, S. MDB-KCP: Persistence framework of in-memory database with CRIU-based container checkpoint in Kubernetes. J. Cloud Comput. 2024, 13, 124. [Google Scholar] [CrossRef] [Scilit]
  21. Novianti, S.; Basuki, A. The Performance Analysis of Container Networking Interface Plugins in Kubernetes. In 6th International Conference on Sustainable Information Engineering and Technology; Association for Computing Machinery: New York, NY, USA, 2021; Volume 2021, pp. 231–234. [Google Scholar] [CrossRef] [Scilit]
  22. Bhattacharya, M.H.; Mittal, H.K. Exploring the Performance of Container Runtimes within Kubernetes Clusters. Int. J. Comput. 2023, 22, 509–514. [Google Scholar] [CrossRef] [Scilit]
  23. Pantelic, N.; Matic, L.; Jakovljevic, L.; Eric, S.; Eric, M.; Stefanović, M.; Djordjevic, A. Benchmarking SQL and NoSQL Persistence in Microservices Under Variable Workloads. Future Internet 2026, 18, 53. [Google Scholar] [CrossRef] [Scilit]
  24. Kemper, A.; Neumann, T. HyPer: A Hybrid OLTP&OLAP Main Memory Database System Based on Virtual Memory Snapshots. In Proceedings of the 2011 IEEE 27th International Conference on Data Engineering, Hannover, Germany, 11–16 April 2011; pp. 195–206. [Google Scholar] [CrossRef] [Scilit]
  25. Salunke, S.V.; Ouda, A. A Performance Benchmark for the PostgreSQL and MySQL Databases. Future Internet 2024, 16, 382. [Google Scholar] [CrossRef] [Scilit]
  26. Choina, M.; Skublewska-Paszkowska, M. Performance analysis of relational databases MySQL, PostgreSQL and Oracle using Doctrine libraries. J. Comput. Sci. Inst. 2022, 24, 250–257. [Google Scholar] [CrossRef] [Scilit]
  27. Sandell, J.; Asplund, E.; Ayele, W.Y.; Duneld, M. Performance Comparison Analysis of ArangoDB, MySQL, and Neo4j: An Experimental Study of Querying Connected Data. arXiv 2024, arXiv:2401.17482. [Google Scholar]
  28. Han, J.; Choi, Y. Analyzing Performance Characteristics of PostgreSQL and MariaDB on NVMeVirt. arXiv 2024, arXiv:2411.10005. [Google Scholar]
  29. Liyanage, D.; Pandey, S.; Goldstein, J.; Cahill, M.; Dey, A.; Fekete, A.; Röhm, U. A Benchmark for Databases with Varying Value Lengths. arXiv 2025, arXiv:2508.07551. [Google Scholar] [CrossRef] [Scilit]
  30. Topcu, A.E.; Rmis, A.M.; Alzoubi, Y.I.; Çibikdiken, A.O.; Chowdhury, D.; Elbasi, E.; Abdel-Maguid, M.; Almadhun, S. Evaluating the Performance of NoSQL Databases for Big Data in Cloud Computing Environments. HighTech Innov. J. 2025, 6, 808–830. [Google Scholar] [CrossRef] [Scilit]
  31. Khan, W.; Kumar, T.; Zhang, C.; Raj, K.; Roy, A.M.; Luo, B. SQL and NoSQL Database Software Architecture Performance Analysis and Assessments—A Systematic Literature Review. Big Data Cogn. Comput. 2023, 7, 97. [Google Scholar] [CrossRef] [Scilit]
  32. Li, Y.; Wang, L.; Wang, S.; Sun, Y.; Zheng, B.; Peng, Z. A learned cost model for big data query processing. Inf. Sci. 2024, 670, 120650. [Google Scholar] [CrossRef] [Scilit]
  33. Lehmann, C.; Sulimov, P.; Stockinger, K. Is Your Learned Query Optimizer Behaving As You Expect? A Machine Learning Perspective. arXiv 2023, arXiv:2309.01551. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.