Agoda introduced a modular monolith framework, named Platform, into its post-booking API. This framework aims to decrease code coupling and enforce domain boundaries without requiring a complete rewrite of the existing service. The implementation combines component-based code organization, automated architecture validation, and an incremental migration strategy.
Following the framework's adoption, Agoda reported a 64% reduction in median code review time for framework-backed changes. The time to receive initial substantive feedback also decreased by 34% compared to legacy code. These improvements address maintenance challenges in the BAPI, which handles cancellations, booking amendments, refunds, and customer communications.
The post-booking API, extracted from Agoda's core monolith in 2019, experienced significant growth, with merge requests quadrupling between 2022 and 2025. Some files grew to over 4,000 lines, indicating increasing complexity and maintenance overhead. The modular approach was chosen as a tactical design trade-off to prioritize speed to market over a full strategic redesign.
The Platform framework organizes code around business domains like cancellations, rebooking, and payments, rather than technical layers. Each component encapsulates its business logic and data access behind defined interfaces, containing application, service, repository, and model layers. This package-by-component structure localizes changes and reduces inter-domain dependencies. Agoda uses the Data Mapper pattern to separate repository-specific models from business logic and employs typed builders for centralized object creation and transformations.
Agoda integrates ArchUnit to encode architectural constraints as automated tests within its continuous integration pipeline. These tests ensure rules, such as repository-specific models only being accessible by their respective repositories, are enforced. Violations automatically fail the build, preventing unauthorized dependencies from being introduced and reducing reliance on manual code review for architectural compliance.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Agoda implemented a modular monolith framework in its post-booking API, reducing median code review time by 64% and time to initial feedback by 34%. This approach organizes code by business domain, enforces architectural boundaries with automated checks, and addresses growing maintenance challenges in the API.