← All stories
● Covered by 1 source · 1 reportMedium impact1 neutral

Agoda Reduces API Code Review Time by 64% Using Modular Monolith Framework

🔄 Updated 2d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Modular monolith framework implemented in Agoda's post-booking API.
  • Reduced median code review time by 64% and feedback time by 34%.
  • Organizes code by business domain with encapsulated logic and data access.
  • Uses ArchUnit for automated architectural constraint checks in CI.

Modular Monolith Implementation

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.

Improved Development Metrics

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.

Addressing API Growth Challenges

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.

Framework Design and Components

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.

Automated Architectural Enforcement

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 →

The daily brief

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.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 26

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

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.