iloho
A trip gets booked on one site, the hotel on another, plans kept somewhere else and the details sorted out in a group chat. iloho puts all of it in one app.
My part: Lead full-stack developer: system design, architecture and backend.
The problem
Travellers book flights on one site and hotels on another, keep plans somewhere else and sort out the details with their group in a messenger. Every handover between apps is a place where a plan goes stale.
Booking travel is also slower than it looks. Airlines don’t always ticket the moment someone pays, fares move between search and checkout, and a cancellation can be a void, a refund or nothing at all. One backend has to handle all of that, next to live messaging and calls.
What I built
Two suppliers, one booking model
Flights come from Mystifly inside the app’s own flow and from Duffel’s hosted flow, which books hotel stays too. Every booking ends up in the same Bookings tab.
Ticketing that waits for the airline
A booking is confirmed only when the airline tickets it. A job checks every 2 minutes for up to 100 minutes, and the booking shows its status until then.
Cancellations with the number up front
Voids and refunds start as a quote, so the traveller sees what they’ll get back before confirming. Each is then tracked by its own job until the airline settles it.
A messenger built to scale out
Chat runs on SocketCluster, calls go peer-to-peer through iloho’s own TURN server, and I designed the move from two servers to load-balanced nodes that share socket state.
How it’s built
Flights and stays, airline ratings, a trip planner and a messenger with voice and video calls, in one app.
Socket servers check JWTs themselves, so chat skips the main API.
Mystifly and Duffel for flights, Duffel for stays.
Jobs follow every ticket, void and refund until the airline settles it.
Calls go peer-to-peer, relayed by iloho’s own TURN server.
One Redis queue per node, so a job never runs twice.
- Chat API · APISocket servers check JWTs themselves, so chat skips the main API.
- Suppliers · ServicesMystifly and Duffel for flights, Duffel for stays.
- Ticketing jobs · ServicesJobs follow every ticket, void and refund until the airline settles it.
- TURN server · ServicesCalls go peer-to-peer, relayed by iloho’s own TURN server.
- Redis · DataOne Redis queue per node, so a job never runs twice.
Decisions I made
One Redis queue per node
Instead ofOne global queue every node subscribes to
Because: With a shared queue, several nodes could process the same entry. Each node finishes the jobs it started.
Socket servers verify JWTs themselves
Instead ofRouting chat authentication through the main API
Because: Chat traffic stays off the main application.
Socket state shared through a state server and broker
Instead ofIndependent socket servers
Because: Separate servers don’t share state. These keep one picture as more servers are added.
iloho runs its own TURN server
Instead ofRelying on direct peer-to-peer alone
Because: Calls still connect when a client is behind a firewall.
The booking flow
Search
What the traveller seesOne-way or return, dates, travellers and cabin. Results are tagged fastest and non-stop, with sort and filters.
What the system doesSearches go to the supplier through a session the backend opens and reuses.
Review the fare
What the traveller seesEvery leg, layover and baggage allowance before choosing a flight.
What the system doesThe fare is revalidated with the supplier and its fare rules fetched, so nobody pays a stale price.
Travellers
What the traveller seesSaved travellers (adult, child or infant) with passport details, picked for each booking.
What the system doesTravellers live on the account and are attached to each booking, so passport details are entered once.
Pay
What the traveller seesThree steps: review, travellers, pay by card.
What the system doesStripe takes the payment. Only a successful payment moves the booking on; a failed one lands under Failed.
Ticketing
What the traveller seesThe booking appears under Upcoming and turns to Ticket confirmed when the airline issues it.
What the system doesA job checks the ticketing status every 2 minutes for up to 100 minutes.
E-ticket
What the traveller seesA PDF e-ticket and an email: PNR, seat, baggage and the fare breakdown.
What the system doesThe backend generates the ticket from the booking, for flights and hotel stays alike.
Change of plans
What the traveller seesCancelling shows the refundable amount before the traveller confirms.
What the system doesVoids and refunds start as quotes, then their own jobs track them: voids for up to an hour, refunds for up to two.
In the app
Real screens from iloho’s test builds, in the order a traveller meets them.
Flights In iloho’s own flow, booked through Mystifly.

Search: one-way or return, travellers and cabin, with airline ratings below. 
Results sorted by fastest, tagged non-stop, with sort and filters. 
Every leg of the trip before choosing it. 
Pay by card. Stripe, here in test mode. 
After booking: fare type, fare summary and baggage per segment. 
Cancelling shows the refundable amount first.
Stays Through Duffel’s hosted flow, inside the app.

Search stays by destination, dates and guests. 
Pick a room and a rate. 
Billing summary, then what’s due today and at the property. 
Booked, with the confirmation sent by email. 
The stay in the traveller’s trips, ready to manage.
Recorded against the suppliers' sandboxes, so the airline and hotel are test ones. No personal details are shown.
What travellers get
Every booking ends in a ticket the backend generates: the PNR, seat, baggage and fare for a flight; the billing summary, payment schedule and refund-by date for a stay.

Flight e-ticket 
Stay ticket
The real tickets from sandbox bookings. Booking references, names and emails are redacted.
Built with
- NestJS
- Node
- SocketCluster
- WebRTC
- Coturn
- MongoDB
- Prisma
- Redis
- Stripe
- Duffel
- Mystifly
- Nginx
- React Native
- Next.js
- AWS