Platform & Integration Decoupling
Large decoupling effort for integrations against our platform. Built a hexagonal architecture with domain-driven design in order to prevent integration leakage into the application core with a common domain model that handles business rules.
- Fullstack Engineer
- 2026–now
- Integrations
Context
I work on a team that builds and maintains the most important integrations in a sales product for hotels. Each integration connects the product to an external hospitality system.
Problem
The integrations had become tightly coupled to the platform and hard to maintain. The codebase also showed the usual cost of moving fast: tangled code that was hard to reason about and few shared design patterns or principles. Once agents started working in the codebase, these problems surfaced at an alarming pace.
Integrations leaked into the platform. Each integration pushed its own domain details and wire shapes into the platform, so the platform had to know how every external system worked.
New consumers hit the same problems. Agents multiplied what we could build, so we wanted more products on top of the platform and its integrations. Existing applications, AI pipelines and MCP servers all tried to build on the platform, and each one ran into the same pitfalls and inconsistencies.
My role
Designed the architecture in collaboration with platform and growth teams.
Decisions
Rebuild instead of patch
We decided to break things down and rethink the approach from the start. The platform team redesigned the platform so that any integration or app could build on it. My team rebuilt how we build integrations, starting with a core that any external hospitality system can extend.
Model the domain first
We approached the rebuild with domain-driven design, which made it straightforward to break down the pieces we would need. Once the base requirements were sketched out, a hexagonal architecture was the clear fit.
A hexagonal core with one adapter per integration
The application core holds a generic domain model that each integration extends for its own needs. Each integration lives in its own adapter and translates into the shared domain language. An anti-corruption layer in each adapter keeps integration specifics out of the core.