Slotmorrow
A Bubble booking app rebuilt around one durable reservation per slot
- Grow
- Appointment scheduling
- Bubble
10days
Delivery
0/100
Last-slot race
560ms
60% lower
Booking response, p95
300/300
Future appointments
Illustrative before/after figures.
The product
Customers selected a service, chose a time and received confirmation by email. A scheduler viewed upcoming appointments and cancelled bookings. There were no online payments, recurring appointments or external calendars. The product used one business timezone, but it still needed to handle daylight-saving boundaries correctly. A reservation's resource, interval and cancellation state mattered more than the calendar card that displayed it.
The challenge
In the starting state, a stale availability screen and a repeated submission could lead the operator to investigate apparently conflicting confirmations. The team separated three questions: whether the slot was available when displayed, whether the reservation was committed, and whether email was accepted by its provider. Slotmorrow also needed an incoming engineer to own the rules. That combination justified the selected rebuild after the current workflow had been reviewed.
The scheduling lead's trigger was a last-slot race: two customers could both believe they had booked the same resource. Staff then called one customer to apologise and rebook. We focused on the interval reservation itself, including cancellation and retries after a slow response. The business requested a single accepted booking, a clear conflict message for the other customer and a visible confirmation status. Payments and calendar sync were deliberately absent from this ten-day example.
How we tackled it
- 01
Define the reservation. We documented active intervals, cancellation rules and the meaning of an accepted booking.
- 02
Make acceptance atomic. The database enforced the non-overlap rule for active reservations; the server returned a clear conflict when another request had already taken the slot.
- 03
Make retries safe. A stable request identifier returned the original booking rather than creating another record.
- 04
Separate notification. Email followed the committed reservation through a durable delivery record. A provider failure did not cancel the customer's booked slot.
What we built
Next.js, TypeScript and Tailwind reproduced the customer and scheduler screens. Postgres with Drizzle stored resources, reservations and delivery records. Reservation instants were normalised while the business timezone remained available for display and policy checks. A small worker retried email with a stable operation reference. The scheduler used managed authentication; customer lookup followed the agreed booking-reference flow rather than adding unnecessary account registration.
The rehearsal compared the 300 future reservations by resource, time, status and customer link. Tests included cancellation before a retry and simultaneous attempts at the same interval. During launch, both versions stopped accepting reservations until the final delta was reconciled, then one system became the write authority. The recovery guide required preserving new bookings before reopening the earlier app. That is what made rollback an operational procedure rather than a traffic switch.
Before & after — illustrative results
The example race uses 20 concurrent requests, repeated 100 times. Each run ends with one accepted reservation and 19 explicit conflicts. The latency comparison uses ten mixed sessions over 15 minutes, with expected conflicts reported separately from errors. Notification timing ends at provider acceptance; it does not promise arrival in the customer's inbox. These distinctions keep the illustrative results tied to the parts of the booking experience the application actually controls.
Illustrative before/after values. No tests or client measurements were performed for this story. The comparison conditions describe how an equivalent real migration would be evaluated; they are not a test report.
| Metric | Before | After | Comparison conditions |
|---|---|---|---|
| Last-slot race | 9/100 fixture races produce an invalid overlap | 0/100; one winner per race | Illustrative workload: 20 simultaneous requests for one interval, repeated 100 times. |
| Booking response, p95 | 1,400 ms | 560 ms — 60% lower | Ten mixed sessions, 15 minutes; expected conflicts excluded from unexpected errors. |
| Future appointments | 300 source reservations | 300/300 reconciled | Match resource, interval, customer and cancellation state, including timezone edges. |
| Confirmation dispatch | 455/500 accepted within 60 seconds | 497/500 — 99.4% | Healthy-provider fixture; timing stops at provider acceptance, not inbox delivery. |
| Availability-page LCP, lab p75 | 4.5 s | 1.9 s — 2.4× faster | Ten fixed resource/date combinations; 40 cold loads each; same mobile/network profile; booking acknowledgement measured separately. |
| Manual handling per booking exception, median | 12 min | 4 min | Ten scripted conflict and delayed-confirmation scenarios; same trained operator; count time to a correct resolution, not lost-sales recovery. |
The outcome
Slotmorrow finished the story with a scheduler who could distinguish a committed booking from a pending notification and an engineer who could reproduce the last-slot race. The handover included timezone rules, a reservation export and a notification-recovery guide. The example's commercial lesson is that a booking migration should protect the promise to the customer, not merely redraw the calendar.
Why these improvements mattered
The new interface treated a rejected collision as a normal business outcome rather than a broken booking. Operators saw the reservation and notification states separately. That reduced investigation steps; the concurrency tests, rather than the page-load number, supported the core promise of one accepted reservation per slot.
Scope & timeline
Scope
The Grow scope covered availability, reservation, cancellation and one confirmation integration. Bubble to Code delivered the booking contract, source-to-target reservation map and scheduler recovery guide. Keeping payments and calendar synchronisation out of scope avoided introducing more authorities into a narrow workflow. A short coordinated booking pause was selected for cutover instead of continuous two-way synchronisation, which would have added complexity without enough benefit for this small business.
Delivery timeline
Delivery schedule: 10 working days. Team: One senior full-stack engineer, shared QA and a scheduling lead. The clock starts after scope approval, usable source data, test access and agreed UI are available. Waiting for external approvals is excluded. This is a bounded example, not a turnaround guarantee.
Days 1–2: define interval rules, timezones and race fixtures.
Days 3–6: build transactional reservations and confirmation dispatch.
Days 7–9: rehearse simultaneous booking, cancellation and source reconciliation.
Day 10: pause bookings briefly, import the final delta and reopen.
FAQ
- Does moving a booking app to code automatically prevent double booking?
- No. Reservation constraints, transaction boundaries and retry behaviour must be designed and tested explicitly.
- Can future appointments be preserved during migration?
- Yes, with interval-level mapping, a controlled final write window and reconciliation of appointments created after the snapshot.
Discuss a similar migration
Bring your busiest slot, a duplicate-submission example and the cancellation rules. Bubble to Code can assess the current authority over availability and define a focused Grow migration. Start by agreeing what happens when two customers request the same time; additional scheduling features can then be scoped deliberately.
