← All projects

Technical lab · Public challenge · non-production

Travel technical challenge

Offer search with simulated suppliers.

  • NestJS
  • Prisma
  • Next.js
  • TypeScript
Actual partial-search interface from the technical challenge, with simulated offers
Actual technical challenge frontend · simulated supplier responses

Challenge

Combine concurrent supplier responses and make partial results available.

My contribution

Technical challenge separate from professional work, with publicly available source code.

Architecture and approach

Independent technical challenge: NestJS/Prisma/PostgreSQL API, Next.js frontend, and simulated suppliers. Search aggregates concurrent responses and also offers an incremental SSE channel separate from the aggregate endpoint.

What was implemented

  • A shared deadline distributes the time budget across suppliers; partial results can be returned without indefinitely waiting for remaining responses.
  • Adapters normalize heterogeneous responses and retain incomplete offers as non-bookable when mandatory information is missing.
  • A quote is persisted before being exposed to the client, allowing an offer received through streaming to enter the booking flow.
  • Booking uses an idempotency key with a unique PostgreSQL constraint. Repeated searches use caching where appropriate and per-instance single-flight.

Trade-offs and decisions

  • A time limit prioritizes predictability at the cost of losing late simulated supplier responses.
  • SSE enables progressive offer display without replacing REST, but increases frontend state and persistence complexity.
  • The database backs the idempotency guarantee; local single-flight reduces work within a process but does not coordinate all instances. Caching and expiry require clear policies.

Validation and current status

The public README documents 64 tests across 10 suites, including normalization, partial search, cache, streaming, and concurrent bookings; the integration suite requires infrastructure. The frontend was built and captured with simulated responses, without external API calls or real orders; the integration suite and production metrics were not verified in this review.

Engineering decisions

  1. 01

    Concurrency and caching

    Explore partial responses and reuse of results.

  2. 02

    Idempotency and streaming

    Model repeated calls and progressive data delivery.

Evidence and limitations

Project description and materials; no quantitative metrics were verified in this review.

More project screenshots

Booking form in the technical challenge
Technical challenge booking form · no real booking

Public references

Let's build something like this.

Tell me about your problem and we'll evaluate the best approach.

Get a quote

Other projects in this category