Stays marketplace, like Airbnb

hunchboard

Search by place and date, reserve without double-booking, pay out to hosts after the stay.

Comments

    What is on this board

    Parts

    • Guest Web app
    • Host Web app
    • Search Service
    • Listings Search index · Elasticsearch
    • Places Maps / geocoding API · Mapbox
    • Reservations Service
    • Reservations Relational DB · PostgreSQL
    • Listings Service
    • Photos Object storage · S3
    • Thumbnails Media processor
    • Payments and payouts Payment provider · Stripe
    • Payout after check-in Workflow engine · Temporal
    • Messages Service
    • The database says no Decision record

    How they connect

    • Guest → Search: Lisbon, 3 nights
    • Search → Listings: query
    • Search → Places: where is it?
    • Guest → Reservations: reserve
    • Reservations → Reservations: SQL
    • Reservations → Payments and payouts: authorize
    • Reservations → Payout after check-in: start
    • Payout after check-in → Payments and payouts: pay the host
    • Host → Listings: edit
    • Listings → Listings: reindex
    • Listings → Photos: upload
    • Photos → Thumbnails: new photo
    • Guest → Messages: ask the host

    Notes and decisions

    • Reservations: A date range per listing, no overlaps
    • Reservations: An exclusion constraint on the dates
    • The database says no: An exclusion constraint on (listing, dates) makes a double booking impossible, whatever the code does.

    More like this