Skip to content
← All work

Tabist, Lead Frontend Engineer, 2024 to 2026

A 78% faster booking site

Moved the direct booking site to Next.js SSR/SSG with multi-layer API caching, keeping the booking flow under 3 s at P90 across 311 properties.

API P90 latency
−78%
TTFB
−65%
FCP
−59%

The problem

Tabist's direct booking website sells rooms for 311 properties without an OTA commission, so every slow page costs bookings. [Add what was slow before: the old rendering setup, and the P90 or Core Web Vitals numbers you started from.]

My role

I owned the frontend architecture of the booking site and led the performance work across rendering and the API layer.

[Add team size and anyone you worked with on the backend or infrastructure.]

Constraints

  • Prices and availability change constantly, so caching could not serve stale rooms or rates.
  • The booking flow had to stay under 3 seconds at P90.
  • [Add any other constraint, e.g. SEO, traffic peaks or the hosting setup.]

How it works

  1. Visitor

    Search and booking pages

  2. Next.js

    SSG for stable pages, SSR for live ones

  3. Multi-layer API cache

    [Name the layers]

  4. Booking APIs

    Rates and availability

Stable pages are prerendered; live data passes through cache layers before reaching the booking APIs.

Key decisions

Render each page the cheapest way it can be

Pages that rarely change are statically generated; pages that need fresh rates are server-rendered, so the browser gets HTML quickly either way.

Cache in layers, with short lifetimes for live data

Multi-layer API caching cut repeated calls to the booking APIs while keeping rates and availability fresh. [Add the cache lifetimes or invalidation approach.]

Outcome

API P90 latency fell by 78%.

Time to first byte improved by 65% and first contentful paint by 59%.

The booking flow stays under 3 seconds at P90.

Stack

  • Next.js
  • React
  • TypeScript
  • SSR/SSG
  • API caching