Optimizing Backend Service Performance Through Multi-Level Caching and Database Query Optimization
Main Article Content
Abstract
As the number of concurrent users continues to increase, backend systems often experience performance degradation caused by frequent database access and inefficient query execution. This paper investigates the impact of multi-level caching and database optimization techniques on the performance of backend services. The proposed architecture combines Redis caching, SQL query optimization, connection pooling, and asynchronous request processing to reduce database workload and improve response efficiency. A prototype system was developed using Spring Boot, MySQL, and Redis, and evaluated under different workload conditions using Apache JMeter.
The experiments were conducted with workloads ranging from 200 to 3,000 concurrent users. Before optimization, the average API response time reached 486 ms at 3,000 concurrent requests, while the throughput was approximately 1,280 requests per second (RPS). After applying the proposed optimization strategy, the average response time decreased to 214 ms, and the system throughput increased to 1,865 RPS, representing a 45.7% improvement. Database CPU utilization was reduced from 81% to 58%, while the cache hit rate remained above 93% during peak traffic. In addition, slow SQL statements were reduced by 61% after index optimization and query restructuring. The results demonstrate that combining multi-level caching with efficient database access strategies can significantly improve backend performance and maintain stable service quality under high-concurrency workloads. These findings provide practical guidance for designing scalable and reliable backend systems in modern web applications.
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
Mind forge Academia also operates under the Creative Commons Licence CC-BY 4.0. This allows for copy and redistribute the material in any medium or format for any purpose, even commercially. The premise is that you must provide appropriate citation information.
References
Newman, S. (2021). Building Microservices (2nd ed.). O'Reilly Media.
Richardson, C. (2018). Microservices Patterns: With Examples in Java. Manning Publications.
Fowler, M., & Lewis, J. (2014). Microservices: A Definition of This New Architectural Term. Martin Fowler. https://martinfowler.com/articles/microservices.html
Kreps, J., Narkhede, N., & Rao, J. (2011). Kafka: A Distributed Messaging System for Log Processing. Proceedings of the NetDB Workshop.
Dean, J., & Barroso, L. A. (2013). The Tail at Scale. Communications of the ACM, 56(2), 74–80. https://doi.org/10.1145/2408776.2408794
Lakshman, A., & Malik, P. (2010). Cassandra: A Decentralized Structured Storage System. ACM SIGOPS Operating Systems Review, 44(2), 35–40. https://doi.org/10.1145/1773912.1773922
Burns, B., Grant, B., Oppenheimer, D., Brewer, E., & Wilkes, J. (2016). Borg, Omega, and Kubernetes. Communications of the ACM, 59(5), 50–57. https://doi.org/10.1145/2890784
Verma, A., Pedrosa, L., Korupolu, M., Oppenheimer, D., Tune, E., & Wilkes, J. (2015). Large-Scale Cluster Management at Google with Borg. Proceedings of the Tenth European Conference on Computer Systems (EuroSys '15). https://doi.org/10.1145/2741948.2741964
Ongaro, D., & Ousterhout, J. (2014). In Search of an Understandable Consensus Algorithm (Raft). Proceedings of the USENIX Annual Technical Conference (ATC), 305–319.
Barlocker, B., & Yan, X. (2021). Contrastive Representation Learning for Anomaly Detection in Cloud-Based Backend Services. Artificial Intelligence and Computing Innovations, 1(2).
Bolanowski, M., Żak, K., Paszkiewicz, A., Ganzha, M., Paprzycki, M., Sowiński, P., Lacalle, I., & Palau, C. E. (2022). Efficiency of REST and gRPC Realizing Communication Tasks in Microservice-Based Ecosystems. New Trends in Intelligent Software Methodologies, Tools and Techniques. https://doi.org/10.3233/FAIA220242
Kleppmann, M. (2017). Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems. O'Reilly Media.