
Travelbeds: Distributed Microservices Ecosystem
High-performance microservices ecosystem handling global hotel inventory and real-time bookings with hybrid MongoDB/MSSQL architecture.
Project Overview
The Challenge
The legacy monolithic architecture struggled to handle the increasing load of real-time availability checks and booking requests, leading to performance bottlenecks during peak travel seasons.
Synchronizing inventory and pricing across multiple disparate systems (RTX, Core, V1) and databases (MongoDB, MSSQL) resulted in data inconsistencies and overbooking risks.
Onboarding new B2B partners required significant custom development due to rigid API structures, slowing down business expansion and partner integration.
A failure in one module (e.g., search) would often cascade and bring down the entire booking system, affecting revenue and partner trust.
Integrating modern JSON-based REST APIs with legacy SQL Server-based backends required complex middleware and data transformation layers.
Architected a distributed microservices ecosystem for BoosterBC (Travelbeds) to manage global hotel inventory, real-time bookings, and data exchange (RTX). The system aggregates data from multiple providers, offering a unified API for B2B partners while handling millions of requests with high availability.
Designed a hybrid data architecture utilizing MongoDB for high-speed document storage (hotel content, logs) and MSSQL for transactional integrity and legacy system compatibility. Implemented an event-driven synchronization mechanism to ensure data consistency across distributed stores.
Solved critical scalability challenges by decoupling the monolithic legacy system into four distinct microservices (Core, Hotel, RTX, V1), deploying Redis caching layers for high-performance search, and building a centralized error handling system for real-time monitoring.
Technical Architecture
Core API (api.travelbeds.pro): The central orchestration service handling authentication, booking management, and suggestion engines. It serves as the primary entry point for general platform operations.
Hotel API (api.hotels.travelbeds.pro): A specialized microservice dedicated to serving static hotel data (content, images, facilities) and real-time availability. Optimized for high read throughput using MongoDB.
RTX API (api.rtx.travelbeds.pro): The Real-Time Exchange service acting as a bridge between modern MongoDB storage and legacy MSSQL systems. It handles complex data synchronization and transformation tasks.
V1 API (api.rtx.travelbedsV1.pro): A compatibility layer ensuring backward compatibility for legacy partners while gradually migrating traffic to the new microservices architecture.
Hybrid Data Storage: Utilizes MongoDB for flexible, high-speed document storage (hotel content, logs) and MSSQL for transactional integrity and legacy system compatibility.
Key Challenges & Solutions
Distributed Data Consistency
Implemented an event-driven synchronization mechanism within the RTX API. When a booking occurs, an event triggers a reliable transaction to update MSSQL, ensuring eventual consistency without blocking the user experience.
High-Performance Search & Availability
Deployed Redis caching layers for frequently accessed static data and availability results. Optimized MongoDB indexes and implemented geospatial queries for location-based searches, reducing response times by 60%.
Error Tracking in Distributed Systems
Developed a centralized error handling module (nodeMailer integration) that captures stack traces, request context (body, query, headers), and user details, sending real-time alerts to the development team.
Legacy Protocol Adaptation
Built a transformation middleware in api.rtx.travelbedsV1.pro that normalizes legacy responses into standard JSON format, allowing the frontend to consume both new and old APIs transparently.
Secure Multi-Tenant Access
Implemented API Key authentication middleware across all services. Each request is validated against a secure registry, and specific routes (e.g., /admin) are protected with additional role-based access controls.
Impact & Results
99.9% System Availability achieved by decoupling services, ensuring failures in legacy modules don't impact the core booking engine
50% Faster Partner Onboarding due to standardized API gateway and clear separation of concerns
Real-Time Reporting enabled by hybrid MongoDB/MSSQL architecture for operational dashboards and financial auditing
Scalable Infrastructure allowing independent scaling of high-traffic components like the Hotel API
Seamless Legacy Integration providing backward compatibility while migrating to modern microservices
Key Features
- Distributed microservices architecture
- Hybrid MongoDB/MSSQL data storage
- Real-time data synchronization (RTX)
- High-performance Redis caching
- Centralized error tracking & alerting
- Secure multi-tenant B2B access
Technologies Used
Project Gallery

Project Details
Client
BoosterBC
Timeline
2022-2023
Role
Lead Backend Engineer
© 2025 Firas Jday. All rights reserved.

