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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Data
MongoDBreplica set, Prisma
Redisqueues, cache, presence
S3 + CloudFront
Services
SuppliersMystifly + Duffel
Ticketing jobsticket, void, refund
E-ticketsPDF + email
TURN serverCoturn, for calls
API
Booking APIsearch to refund
Chat APISocketCluster, JWT
Supplier webhooksDuffel, Mystifly
DELBOM
07:152h 10m · Non-stop09:25
Sample Air · SA 2144 out of 5 4.2
₹5,480Book
Cheaper if I leave a day later?
Yes, Thursday saves ₹900.

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.

  1. Chat API · APISocket servers check JWTs themselves, so chat skips the main API.
  2. Suppliers · ServicesMystifly and Duffel for flights, Duffel for stays.
  3. Ticketing jobs · ServicesJobs follow every ticket, void and refund until the airline settles it.
  4. TURN server · ServicesCalls go peer-to-peer, relayed by iloho’s own TURN server.
  5. Redis · DataOne Redis queue per node, so a job never runs twice.

Decisions I made

The booking flow

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  1. iloho home screen with flight search and airline ratings
    Search: one-way or return, travellers and cabin, with airline ratings below.
  2. Flight results sorted by fastest, with non-stop tags
    Results sorted by fastest, tagged non-stop, with sort and filters.
  3. Flight details sheet with each leg of a return trip
    Every leg of the trip before choosing it.
  4. Card payment step in Stripe test mode
    Pay by card. Stripe, here in test mode.
  5. Booking details with fare summary and baggage per segment
    After booking: fare type, fare summary and baggage per segment.
  6. Cancel booking sheet showing the refundable amount
    Cancelling shows the refundable amount first.

Stays Through Duffel’s hosted flow, inside the app.

  1. Hotel search by destination, dates and guests
    Search stays by destination, dates and guests.
  2. Room and rate selection for a hotel
    Pick a room and a rate.
  3. Billing summary and payment schedule for a stay
    Billing summary, then what’s due today and at the property.
  4. Booking confirmed screen
    Booked, with the confirmation sent by email.
  5. The booked stay in the trips list with Manage trip
    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.

The real tickets from sandbox bookings. Booking references, names and emails are redacted.

Built with