Room Mapping Services
Room mapping services handle hotel-supplier-room relationships for accurate booking.
Architecture Diagram
graph TB
subgraph ROOM_MAPPING["Room Mapping Architecture"]
subgraph HAPROXY_RM["Room Mapping Load Balancers"]
HARP1["HAProxy-RoomMapping1"]
HARP2["HAProxy-RoomMapping2"]
end
subgraph MONGO_RM["Room Mapping Storage"]
MONGORM["MongoDB-RoomMapping<br/>10.32.8.96<br/>8.5M mappings"]
end
subgraph MAPPING_SERVICE["Mapping Services"]
NEWMAP["NewHotelMapping<br/>Service"]
end
end
subgraph API["API Servers"]
APIS["7 API Servers"]
end
APIS --> HARP1 & HARP2
HARP1 & HARP2 --> MONGORM
NEWMAP --> MONGORM
style MONGORM fill:#90EE90
style HAPROXY_RM fill:#87CEEB
Server Details
| Component |
IP Address |
Type |
Purpose |
| MongoDB-RoomMapping |
10.32.8.96 |
VM (XCP-1) |
Room mapping storage |
| HAProxy-RoomMapping1 |
- |
VM |
Load balancer 1 |
| HAProxy-RoomMapping2 |
- |
VM |
Load balancer 2 |
| NewHotelMapping |
- |
Service |
Mapping processing |
Room Mapping Data
| Metric |
Value |
| Total Mappings |
8.5M documents |
| Hotels Mapped |
9.3M properties |
| Supplier Mappings |
33M relationships |
| Storage |
MongoDB 10.32.8.96 |
| Load Balancer |
HAProxy-RoomMapping 1 & 2 |
Mapping Flow
sequenceDiagram
participant API as API Server
participant LB as HAProxy<br/>RoomMapping
participant MONGO as MongoDB<br/>10.32.8.96
participant MAP as Mapping<br/>Service
API->>LB: Request room mapping
LB->>MONGO: Query mapping
alt Mapping exists
MONGO-->>LB: Return mapping
LB-->>API: Room details
else No mapping
MONGO-->>LB: Not found
LB-->>API: Unmapped room
API->>MAP: Create mapping request
MAP->>MONGO: Store new mapping
end
Mapping Structure
| Field |
Description |
| Hotel ID |
WithinEarth hotel identifier |
| Supplier Hotel ID |
Supplier's hotel identifier |
| Room Type |
Room category mapping |
| Supplier Code |
Supplier identifier |
| Rate Plan |
Rate plan mapping |
Last Updated: 2025-12-02