Improvement of API Request Throughput of Article Platform with Cache Memory on Headless CMS Platform
Main Article Content
Abstract
This study examines the impact of caching techniques on the throughput and response time of RESTful APIs in a headless CMS architecture developed with PHP Laravel that connected with external CMS. End users frequently experience issues such as slow page loading, delayed content updates, and occasional system errors. These factors contribute to a diminished user experience and undermine the overall reliability of the system. The primary objectives are to enhance the API response time between the Presentation Layer and the CMS and to evaluate the most effective caching technique for optimizing Laravel’s API performance. Various caching drivers, including file-based caching, MySQL caching, and Redis caching, were tested to assess their effects on API throughput. All three caches have their own advantages and disadvantages, with File and Redis being built-in cache mechanisms, while MySQL is a database adapted for caching purposes. WRK was used to simulate realistic API usage by generating concurrent user requests to the API. Each test involved sending requests to the application with a single concurrent user per thread for 60 seconds, using varying payload sizes of 20KB, 200KB, and 2000KB. The results indicate that caching significantly improves API performance, with file-based caching achieving a throughput of 126.82 requests per second compared to 5.55 requests per second without caching at payload 20 KB. Among the three cache drivers tested, file-based caching provided the greatest performance improvement, with 20 times increase compared to no caching. However, file-based caching while easy to config, has limitations in terms of scalability and deployment flexibility, making it more suitable for small applications. Redis was found to be a superior alternative for high-performance applications due to its horizontal scalability. In contrast, MySQL caching was not recommended due to its relatively low performance, except in scenarios of low cache loads where other caching options were impractical.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
The content and information in the articles published in the Journal of Science and Technology, Sisaket Rajabhat University reflect the opinions and responsibilities of the respective authors. The editorial board of the journal does not necessarily agree with, nor share responsibility for, these views.
Articles, information, content, images, etc., published in the Journal of Science and Technology, Sisaket Rajabhat University are copyrighted by the Faculty of Science and Technology, Sisaket Rajabhat University. If any individual or organization wishes to republish all or part of the content, or use it for any other purpose, they must obtain written permission from the Journal of Science and Technology, Sisaket Rajabhat University beforehand.
References
Ahmed, MK., Bello, AH., Jauro, SS., & Dawaki, M. (2024). A comparative analysis of performance optimization techniques for benchmarking PHP frameworks: Laravel and CodeIgniter. Dutse Journal of Pure and Applied Sciences, 10(3c), 284–295.
Arifiany, I., & Kusuma, GP. (2025). Leveraging headless content management system as a service in a service-based architecture: Enhancing user experience and overcoming resource limitations for start-ups. Journal of Theoretical and Applied Information Technology, 103(7), 2991–3011.
Babovic, ZB., Protic, J., & Milutinovic, V. (2016). Web performance evaluation for internet of things applications. IEEE Access, (4), 6974-6992.
Bang, H., Kim, SH., & Jeon, S. (2024). Comparative Evaluation of Data Processing Performance between MySQL and
Redis. Journal of Internet Computing and Services, 25(3), 35-41.
Bautista, PB., Comellas, J., & Urquiza-Aguiar, L. (2023). Evaluating scalability, resiliency, and load balancing in software-defined networking. Engineering Proceedings, 47(1), 16.
Bhatt, S. (2024). Best practices for designing scalable REST APIs in cloud environments. Journal of Sustainable Solutions, 1(4), 48–71.
Camilleri, C., Vella, JG., & Nezval, V. (2024). Horizontally Scalable Implementation of a Distributed DBMS Delivering Causal Consistency via the Actor Model. Electronics, 13(17), 3367.
Chen, X., Ji, Z., Fan, Y., & Zhan, Y. (2017). Restful API Architecture Based on Laravel Framework. Journal of Physics: Conference Series, 910(1), 1-6.
Fielding R. (2000). Architectural Styles and the Design of Network-based Software Architectures. Dissertation. California: University of California.
Hasnain, M., Pasha, MF., & Ghani, I. (2020). Drupal core 8 caching mechanism for scalability improvement of web services. Software Impacts, 3, 100014.
Kamal, J. (2022). Design and Development of a Headless Content Management System. International Research Journal of Engineering and Technology (IRJET), 9(7), 697-700.
Mertz, J., & Nunes, I. (2017). Understanding application-level caching in web applications: A comprehensive introduction and survey of state-of-the-art approaches. ACM Computing Surveys, 9(4), Article 39.
Rodríguez, C., Báez, M., Daniel, F., Casati, F., Trabucco, J. C., Canali, L., & Percannella, G. (2016). REST APIs: A large-scale analysis of compliance with principles and best practices. International Conference on Web Engineering, Lecture Notes in Computer Science, 9671, 21–39.
Shi, L., Qiao, H., Yang, C., Jiang, Y., Yu, K., & Chen, C. (2024). Research and application of distributed cache based on Redis. Journal of Software, 19(1), 1-8.
Sudda, PR. (2024). Optimizing PHP API calls with pagination and caching. Master’s thesis. USA: Michigan Technological University, Michigan.
Vemasani, P., & Modi, S. (2024). Optimizing cloud computing performance: How CDNs revolutionize global content delivery. Journal of Advanced Research Engineering and Technology (JARET), 3(1), 11–24.