Comparative Performance Analysis of Laravel Application with and without Redis Caching in High-Load Environments

Authors

  • M. BAHRIL ILMI Politeknik Hasnur
  • Hengki Dwiyan Hermawan Politeknik Hasnur

DOI:

https://doi.org/10.35316/.v11i1.9575

Keywords:

Laravel, , Redis, , caching, , pengujian beban, , waktu respons, , throughput, , kinerja aplikasi web.

Abstract

Laravel-based web applications are susceptible to significant performance degradation when user traffic increases, primarily due to the repeated execution of identical database queries that put excessive stress on MySQL. This study investigates the extent to which Redis, used as an in-memory caching layer, can offset this stress and measures the performance improvements achieved compared to a baseline configuration without caching.

Load testing was conducted using k6s against a Docker-based containerized environment to ensure identical and fully reproducible test conditions. The tests included four concurrent user scenarios: 50, 100, 200, and 500 users, each sustained for 60 seconds. The application stack consisted of Laravel 11.x running PHP 8.3, MySQL 8.0 as the primary data store, and Redis 7.2 as the caching layer. The implemented caching strategies included query caching, route caching, and configuration caching.

Observed metrics included response times at the P50, P95, and P99 percentiles, throughput in requests per second, server-side CPU and memory utilization, and error rates. The results showed that Redis reduced response times by 92% on average and increased throughput by up to 947% in a scenario with 500 concurrent users, while error rates remained below 1% across all test scenarios. The performance gap between configurations with and without caching widened consistently as load increased, with the most significant differences becoming apparent in scenarios with 100 users and above.

These findings confirm that Redis is a highly effective caching solution for increasing the scalability of Laravel applications and is highly recommended for any deployment serving more than 100 concurrent users. Future research could investigate Redis's behavior under more extreme load conditions and explore adaptive cache invalidation strategies for handling high-frequency data writes.

Downloads

Download data is not yet available.

References

"Stack Overflow Developer Survey," 2023. [Online]. Available: https://survey.stackoverflow.co/2023/.

T. Otwell, "Laravel Documentation, Version 11.x," 2024. [Online]. Available: https://laravel.com/docs/11.x.

A. Niarman, Iswandi and a. A. K. Candri, "Comparative Analysis of PHP Frameworks for Development of," International Journal Software Engineering and Computer Science (IJSECS), vol. III, p. 424–436, 2023.

"Redis Documentation 7.2," Redis Ltd, 2024. [Online]. Available: https://redis.io/documentation.

H. M. Kabamba, M. Khouzam and a. M. Dagenais, "Advanced Strategies for Precise and Transparent Debugging of Performance Issues in In-Memory Data Store-Based Microservices," arXiv, pp. 1-14, 2023.

D. Richardson and W. Hao, "An Empirical Study of Caching," IEEE Xplore, 2024.

B. C. Ghosh, S. K. Addya, N. B. Somy and C. Hota, "Caching Techniques to Improve Latency in Serverless," IEEE Xplore, p. 336–341, 2020.

H. Calderón-Gómez, L. Mendoza-Pittí, M. Vargas-Lombardo, J. M. Gómez-Pulido, D. Rodríguez-Puyol, G. Sención and M.-L. Polo-Luque, "Evaluating Service-Oriented and Microservice Architecture Patterns to Deploy eHealth Applications in Cloud Computing Environment," MDPI, vol. 11, pp. 1-28, 2021.

M. K. Ahmed, A. H. Bello, S. S. Jauro and a. M. Dawaki, "A comparative analysis of performance optimization techniques for benchmarking PHP frameworks: Laravel and Codeigniter," Dutse Journal of Pure and Applied Sciences, vol. 10, p. 284–295, 2024.

D. E. Ukene, "Assessing Performance Optimization Strategies In Cloud-Native Environments Through Containerization And Orchestration Analysis," Georgia Southern Commons, 2024.

P. Sarkar, K. Chakravarty, B. Sahoo, R. Singh, S. M. Turjyaa and A. Bandyopadhyay, "Efficient Resource Utilization for Web Applications in Mobile Cloud Computing," IEEE Xplore, 2024.

"k6 Documentation: Open Source Load Testing," Grafana Labs, 2024. [Online]. Available: https://k6.io/docs/.

Published

30-06-2026 — Updated on 30-07-2026

Versions

How to Cite

M. BAHRIL ILMI, & Hengki Dwiyan Hermawan. (2026). Comparative Performance Analysis of Laravel Application with and without Redis Caching in High-Load Environments. Jurnal Ilmiah Informatika, 11(1), 117–130. https://doi.org/10.35316/.v11i1.9575 (Original work published June 30, 2026)

Issue

Section

Articles

Similar Articles

1 2 3 4 5 6 > >> 

You may also start an advanced similarity search for this article.