Description
WooCommerce Plugin
Throughput Guard – Capacity Dispatcher
Pizzeria accepts eight deep-dish pizza orders for 3PM Saturday timeslot. Customers excited. Kitchen confident. Reality strikes 2:45 PM. Each deep-dish requires 15 capacity points baking time. Eight orders equal 120 CP total. Oven maximum capacity: 100 CP per hour. Physically impossible. Four pizzas complete on time. Four pizzas delayed 45 minutes. Customers furious. Negative reviews posted. Lost future business. Traditional booking systems treat all timeslots as infinite capacity regardless product mix complexity. Accept unlimited orders until operationally impossible. This plugin implements token bucket algorithm preventing throughput disasters. Resources have CP limits per timeslot. Products have CP costs. System tracks usage automatically. Timeslots gray out when capacity reached. Professional operational protection computational infrastructure.
Token Bucket Algorithm
Capacity Point Tracking
Real-time Availability
Zero Overbooking
The infinite capacity fallacy
Bakery specializes wedding cakes birthday cakes cupcakes. Wedding cakes require 120 capacity points (intricate decoration fondant work multi-tier construction). Birthday cakes require 30 CP (standard decoration single tier). Cupcakes require 5 CP (batch production simple frosting). Oven capacity: 150 CP per two-hour timeslot. Saturday morning customer books two wedding cakes for 10AM slot online booking system. System accepts order confirmation sent. Saturday 10AM arrives. Two wedding cakes require 2 × 120 CP = 240 CP total. Oven limit: 150 CP available. Physically impossible to complete. Baker discovers problem Friday night reviewing schedule. Calls customer frantically explaining situation. Customer wedding tomorrow needs cakes urgently. Baker offers reschedule. Customer refuses cancels entire $800 order switches competitor. Lost revenue plus negative review plus reputation damage. Root cause: booking system treated timeslot as infinite capacity. Accepted any number orders regardless complexity mix. No computational tracking throughput limits. Professional bakeries medical practices salons restaurants need capacity enforcement preventing operational collapse systematically.
Token Bucket Algorithm
Network traffic shaping computational method adapted for order capacity. Resources have CP limits per timeslot. Products consume CP. System tracks usage real-time. When timeslot reaches limit system prevents additional bookings. Professional throughput management preventing kitchen collapse.
Capacity Point System
Assign CP costs reflecting actual production complexity. Deep-dish pizza = 15 CP (slow baking). Regular pizza = 5 CP (quick baking). Wedding cake = 120 CP (complex decoration). Cupcakes = 2 CP (batch production). System calculates total CP required multiplying product cost by quantity ordered.
Transient Holds
Customer adds product to cart system reserves capacity for 10 minutes during checkout. If order completes hold converts to permanent booking. If cart abandoned or 10 minutes expires CP automatically released for other customers. Prevents abandoned carts blocking capacity indefinitely.
Visual Timeslot Selector
Customer selects quantity system displays available timeslots dropdown. Each slot shows remaining capacity (“2:00 PM – 30 CP available”). Full timeslots automatically grayed out. Customer must choose different time. Real-time availability preventing overbooking disasters. Professional customer experience.
Perfect for capacity-constrained operations
Restaurant Kitchens
Oven capacity limits prevent accepting impossible order volumes. Deep-dish vs regular pizza CP differentiation. Professional kitchen throughput management.
Salons & Spas
Chair and stylist capacity tracking. Complex services consume more CP than simple cuts. Prevents overbooking station capacity causing customer delays.
Bakery Production
Wedding cakes vs cupcakes CP differentiation. Oven throughput limits enforce realistic scheduling. Eliminates Friday night panic calls rescheduling impossible orders.
How token bucket capacity works
Step-by-step computational throughput management preventing operational disasters through systematic capacity tracking enforcement.
1. Configure Resources
Create resource “Main Oven” with 150 CP per two-hour timeslot. System generates timeslots automatically based on business hours slot duration settings.
2. Assign Product CP Costs
Edit products. Enable capacity booking. Set CP costs: Wedding Cake = 120 CP, Birthday Cake = 30 CP, Cupcakes = 5 CP. Assign to resource “Main Oven”.
3. Customer Selects Timeslot
Customer adds wedding cake to cart. Product page displays available timeslots dropdown. System shows: “Saturday 10AM – 150 CP available”. Customer selects timeslot.
4. Capacity Reserved & Locked
System reserves 120 CP for 10 minutes during checkout. Customer completes order. Hold converts to permanent booking. Timeslot now shows “Saturday 10AM – 30 CP available”. Second wedding cake order automatically prevented.




