Calendar round robin and collective booking mix
Round Robin
Distributes appointments among team members in a rotating order.
E.g.: Sales calls, onboarding sessions.
Collective Booking
Multiple hosts meet with one participant.
E.g.: Panel interviews, committee reviews.
Round Robin and Collective Booking MIX
Distributes appointments among Multiple hosts/Multiple team members (for example masseurs) in a rotating order
E.g.: Dou Massage, Couples massage.
Booking for a appointment for which flexible hosts are always needed, and these rotate through the booking process like a round robin.
Example
Initial situation:
Calendar: Slot from 10:00–11:00 a.m. (1 hour)
Maximum bookings: 5
Masseurs: 10
Booking process:
One client books a "duo massage" for this treatment / appointment are 2 masseurs required-> 2 masseurs are booked, 8 masseurs remain available.
next client books a "duo massage"-> 2 masseurs are booked, 6 masseurs remain available.
After 5 bookings, all 10 masseurs are booked, and the slot is marked as "full."
Booking is only possible if at least 2 masseurs are available.
No further bookings are possible for this slot.
Example code (pseudocode):
python
def book_slot(slot_id, masseurs_needed=2):
Get slot information
slot = get_slot_by_id(slot_id)
Check if enough masseurs are available
if slot.available_masseurs >= masseurs_needed:
slot.available_masseurs -= masseurs_needed
slot.current_bookings += 1
Mark slot as full when maximum bookings are reached
if slot.current_bookings >= slot.max_bookings:
slot.status = "full"
return f"Booking successful for slot {slot_id}"
else:
return f"Slot {slot_id} is full or not enough masseurs are available"