Optimizing Microservices Architecture and NoSQL Databases for High-Concurrency E-Commerce Web Applications
Keywords:
concurrency, distributed transactions, microservices architecture, NoSQL databases, web applicationsAbstract
The exponential growth of e-commerce has intensified the demand for web applications capable of handling high concurrency, low latency, and continuous availability, especially during peak sales events. Traditional monolithic architectures backed by relational databases (RDBMS) often fail to meet these requirements due to tight coupling, vertical scaling limitations, and transactional locking bottlenecks. This paper presents an optimized architectural framework that integrates Microservices Architecture (MSA) with distributed NoSQL databases using a polyglot persistence model. The proposed e-commerce platform is decomposed into independent services including User Management, Product Catalog, Shopping Cart, Order Processing, and Payment Gateway, where each service employs a purpose-built datastore - MongoDB for flexible catalog data and key-value stores for high-throughput session management. Through empirical evaluation using Apache JMeter and k6 simulating 500 to 10,000 concurrent users, we measured throughput, latency, resource utilization, and fault tolerance. Results demonstrate that the NoSQL-backed microservices achieved 4,200 requests/second with 45ms average latency under 5,000 concurrent users, compared to 1,800 requests/second and 210ms latency in monolithic RDBMS setup. The study also addresses distributed transaction management through the Saga pattern and eventual consistency trade-offs, providing a scalable and fault-isolated solution for modern e-commerce systems.