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