OPTIMIZING BACKEND APPLICATION ARCHITECTURE THROUGH INCREMENTAL MONOLITH-TO-MICROSERVICES MIGRATION: PHP AND GO INTEGRATION

Published 2026-09-30
PHYSICS-MATHEMATICS Vol. 85 No. 3 (2026)
Том 85 № 3 2026
Authors:
  • TIMOSHENKO R.A.
  • BIGALIYEVA A.Z.
PDF (Kazakh)

The paper examines the problem of gradually migrating a monolithic backend application to a microservice architecture. The relevance of the study is determined by the limitations inherent in monolithic architectures that emerge as enterprise information systems grow, including high component coupling, the need to scale the system as a whole, limited opportunities for independent deployment of individual components, and the dependence of core business scenarios on external services. The aim of the study is to analyze architectural patterns for gradual migration from a monolithic to a microservice architecture and to develop a methodology for evaluating migration effectiveness using the integration of a PHP/Yii2-based monolith with a service developed in Go as an example. The study employs architectural and comparative analysis, experimental testbed design, and load testing methods. The Strangler Fig approach was selected as the migration strategy, combined with the API Gateway/Reverse Proxy, Anti-Corruption Layer, Outbox, and Circuit Breaker patterns, as well as idempotency mechanisms. The first migration stage involves extracting the notification module into a separate Go service. Order creation and event recording in the Outbox table are performed within a single local transaction, while the actual delivery of notifications is carried out asynchronously. To compare the monolithic and target configurations, an experimental testbed based on Docker and a k6-based load testing methodology were developed. The evaluation criteria include p50, p95, and p99 response-time percentiles, throughput, error rate, and system resilience in the event of a dependent component failure. The results of the study provide a methodological basis for organizing gradual migration as an alternative to a complete system rewrite. A full-scale load experiment and its statistical analysis will be conducted at the next stage of the research.

TIMOSHENKO R.A.

Master's student, Karaganda technical university named after Abylkas Saginov, Karaganda, Kazakhstan.

E-mail: rombik2004r@gmail.com, https://orcid.org/0009-0004-4099-8220

BIGALIYEVA A.Z.

PhD, associate professor, Abylkas Saginov Karaganda technical university, Karaganda, Kazakhstan

E-mail: bigalievaalfija@gmail.com, https://orcid.org/0000-0002-0136-5402

  1. Newman S. Building Microservices: Designing Fine-Grained Systems. 2nd ed. Sebastopol: O'Reilly Media, 2021. 612 p.
  2. Taibi D., Lenarduzzi V., Pahl C. Processes, Motivations and Issues for Migrating to Microservices Architectures: An Empirical Investigation // IEEE Cloud Computing. 2017. Vol. 4, № 5. P. 22–32. DOI: 10.1109/MCC.2017.4250931.
  3. Richardson C. Microservices Patterns: With Examples in Java. Shelter Island: Manning Publications, 2018. 520 p.
  4. Faustino D., Gonçalves N., Portela M., Silva A. R. Stepwise Migration of a Monolith to a Microservice Architecture: Performance and Migration Effort Evaluation // Performance Evaluation. 2024. Vol. 164. Art. 102411. DOI: 10.1016/j.peva.2024.102411.
  5. Microsoft. Strangler Fig pattern [Electronic resource]. URL: Microsoft Azure Architecture Center – Strangler Fig pattern. https://learn.microsoft.com/en-us/azure/architecture/patterns/strangler-fig
  6. Vernon V. Implementing Domain-Driven Design. Upper Saddle River: Addison-Wesley Professional, 2013. 656 p.
  7. Richardson C. Pattern: Transactional Outbox [Electronic resource]. URL: https://microservices.io/patterns/data/transactional-outbox.html
  8. Nygard M. T. Release It!: Design and Deploy Production-Ready Software. 2nd ed. Raleigh: Pragmatic Bookshelf, 2018. 368 p.
  9. Grafana Labs. Grafana k6 Documentation [Electronic resource]. URL: https://grafana.com/docs/k6/latest/
  10. Balalaie A., Heydarnoori A., Jamshidi P. Migrating to Cloud-Native Architectures Using Microservices: An Experience Report // Advances in Service-Oriented and Cloud Computing. 2016. P. 201–215. DOI: 10.1007/978-3-319-33313-7_15.
  11. Abgaz Y. M., McCarren A., Elger P., Solan D., Lapuz N., Bivol M., Jackson G. M., Yilmaz M., Buckley J. F., Clarke P. M. Decomposition of Monolith Applications IntoMicroservices Architectures: A Systematic Review // IEEE Transactions on Software Engineering. 2023. Vol. 49, № 8. P. 4213–4242. DOI: 10.1109/TSE.2023.3287297.
monolithic architecture, microservice architecture, gradual migration, Strangler Fig, Outbox pattern, PHP, Go

How to Cite

OPTIMIZING BACKEND APPLICATION ARCHITECTURE THROUGH INCREMENTAL MONOLITH-TO-MICROSERVICES MIGRATION: PHP AND GO INTEGRATION. (2026). Scientific Journal "Bulletin of the K. Zhubanov Aktobe Regional University", 85(3), 148-156. https://doi.org/10.70239/