Digitus : Journal of Computer Science Applications
Vol. 4 No. 1 (2026): January 2026

PostgreSQL Versus MongoDB for E-Commerce Order Management: Comparing Transaction Consistency, Throughput, and Latency under Concurrent Access

Azlyn Ahmad Zawawi (Universiti Teknologi MARA)
Roy Mubarak (Universitas Mercu Buana)



Article Info

Publish Date
30 Jan 2026

Abstract

Order management systems in e-commerce must sustain throughput and transactional correctness under concurrent client requests. This study evaluated PostgreSQL and MongoDB through functionally equivalent e-commerce order management implementations, measuring throughput, latency, retry behaviour, and adherence to eight business-rule invariants across five concurrency levels, three dataset sizes, and three workload patterns. A controlled factorial experiment with 450 benchmark runs was conducted on three-node clusters with identical hardware. PostgreSQL operated at Repeatable Read isolation with synchronous replication; MongoDB used multi-document snapshot-isolated transactions with majority write concern. An HC3-robust paired contrast model estimated system effects on the log scale. Globally, the MongoDB-to-PostgreSQL geometric mean ratio for throughput was 0.994 and for P95 latency was 0.997. MongoDB throughput was 8.7% higher at low-concurrency read-heavy workloads, while PostgreSQL demonstrated a relative advantage under write-heavy conditions (GMR coef −0.202, p < 0.001). Both systems reached the ten-second deadline ceiling at 400 clients, producing failure fractions above 36% and 56%, respectively. No consistency violations were observed across all 450 runs and 40 directed tests. Performance differences are modest at low-to-moderate concurrency but diverge under write-heavy, high-concurrency workloads. Practitioners should consider workload composition, concurrency demands, and data model fit rather than treating either system as universally superior.

Copyrights © 2026






Journal Info

Abbrev

digitus

Publisher

Subject

Computer Science & IT Decision Sciences, Operations Research & Management

Description

Digitus : Journal of Computer Science Applications with ISSN Number 3031-3244 (Online) published by Indonesian Scientific Publication, is a leading peer-reviewed open-access journal. Since its establishment, Digitus has been dedicated to publishing high-quality research articles, technical papers, ...