The Front-Desk Fragility Problem
In a busy healthcare practice, front-desk computers are subject to routine operational disruptions:
- A receptionist steps away for lunch or closes their laptop.
- Windows updates trigger an unexpected system restart.
- An ethernet cable is bumped or Wi-Fi experiences temporary signal loss.
If your clinic synchronizer relies on a single computer, any of these events immediately pauses LamaniHub online booking.
The Solution: Active / Warm-Standby Lease Election
LamaniSync solves this with a Distributed Lease Election Protocol modeled after modern cloud consensus engines:
LamaniHub Cloud Coordinator
│
├── Heartbeat (15s Lease) ──> [Workstation 1 (Front Desk)] -> ACTIVE LEADER (Writes)
├── Heartbeat (15s Lease) ──> [Workstation 2 (Reception 2)] -> WARM STANDBY (Listening)
└── Heartbeat (15s Lease) ──> [Workstation 3 (Office Mgr)] -> WARM STANDBY (Listening)
How Lease Election Operates:
- One Active Leader: Only ONE workstation holds the active write lease at any given second. This workstation handles all appointment dispatch and readback verification.
- Warm Standby Nodes: All other paired workstations remain in "Warm Standby." They keep authenticated CMS tabs open and maintain an active WebSocket connection to LamaniHub.
- 15-Second Heartbeat: The Active Leader sends a cryptographic heartbeat every 5 seconds to renew its 15-second lease.
- Seamless Automatic Failover (< 20 Seconds):
- If Workstation 1 loses power or goes to sleep, its 15-second lease expires.
- LamaniHub automatically promotes Workstation 2 to Active Leader.
- Online bookings continue without dropping a single appointment.
- Front-desk staff require zero training and need not touch a single button.
Best Practice Deployment Recommendations
For maximum clinic uptime, we recommend installing LamaniSync on:
| Workstation Location | Recommended Mode | Purpose |
|---|---|---|
| Front Desk Primary PC | Normal Use | Primary Active Leader during clinic open hours |
| Front Desk Secondary PC | Normal Use | Instant backup failover node |
| Office Manager Desktop | Normal Use | Stable wired backup node |
| Dedicated Server / Mini PC | Headless Chrome (Optional) | For 24/7 night-time and weekend automated bookings |
Double-Booking Shield & Mutex Locks
When multiple workstations are connected to the same clinic CMS:
- Idempotency Keys: Every LamaniHub booking intent contains a unique UUIDv4 token.
- Atomic Mutex: Before executing a calendar write, the active workstation acquires a distributed mutex lock in memory.
- Even if two patients click "Confirm" on WhatsApp at the exact same millisecond, LamaniHub serializes the dispatches, guaranteeing zero double bookings.