The coffee shop is buzzing with activity. With just one barista, a rush of customers leads to long lines, especially when someone orders a complex latte that slows everything down. You've used the M/M/1 model to predict wait times and queue lengths for a single barista, but adding more baristas could handle bigger crowds. How much does it help, and what are the tradeoffs? The M/M/c model describes queues with multiple baristas, letting you analyze the coffee shop with two or three working at once. In this chapter, we'll explore how multiple baristas improve the queue, tackle delays from complex orders, and let you experiment with the numbers to balance staffing costs and customer wait times.
The M/M/c model extends the M/M/1 model to handle multiple baristas—c servers working simultaneously. It assumes:
The represents the number of baristas. With , two baristas serve customers at the same time, doubling the shop's capacity compared to M/M/1 (). Customers join a single line and are served by the next available barista, keeping the process efficient.
The M/M/c model provides formulas to predict queue performance with multiple baristas. These are more complex than M/M/1, but you can test them below by adjusting , , and the number of baristas to see how they work in the coffee shop.
How busy the baristas are, calculated as:
.
For , , and , , meaning baristas are busy 83% of the time. For stability, must be less than 1. Try it:
The chance no customers are waiting (though some may be served). This is a stepping stone for other metrics:
Test how changes:
The average number of customers waiting (not being served):
For , , , is smaller than M/M/1 because two baristas clear the line faster. Try it:
How long a customer waits before a barista serves them:
With these numbers, is shorter than M/M/1 thanks to multiple baristas. See the difference:
These formulas show how extra baristas reduce wait times, especially when complex orders cause delays.
The M/M/c model helps you optimize the coffee shop. Suppose you expect 10 customers per minute (), and each barista serves 6 per minute (). With one barista (M/M/1):
With two baristas (c = 2):
Adding a third barista (c = 3) reduces L_q and W_q further, but the improvement diminishes, and staffing costs increase. The model helps you decide if adding baristas is worth it or if other strategies, like limiting queue depth, are better.
One major advantage of multiple baristas is reducing head-of-line blocking, where a complex order at the front of the queue delays everyone behind it. Picture a customer ordering a custom latte with extra foam and a specific temperature—it takes the barista several minutes. In a single-barista (M/M/1) queue, everyone else waits, even if the next customer just wants a quick black coffee. This bottleneck frustrates customers and lengthens the line.
With multiple baristas (M/M/c), the queue moves faster because others can serve simpler orders in parallel. While one barista works on the complex latte, another can whip up that black coffee or a quick espresso. This parallel processing means simpler orders don't get stuck, reducing overall wait times and clearing the queue more efficiently. The more baristas you have, the less a single complex order disrupts the system, as others keep the line moving.
The simulator below lets you explore the M/M/c model. Adjust the arrival rate (), service rate (), and number of baristas (c) to see how they affect queue length and wait time. Try a busy queue with a high , then add baristas to reduce head-of-line blocking. Compare the simulator's metrics to the formula calculators. How many baristas keep the coffee shop running smoothly without overstaffing?
The M/M/c model shows how multiple baristas improve queue performance by handling more customers and reducing delays from complex orders. It's especially useful for managing head-of-line blocking, where parallel service keeps simpler orders moving. In the coffee shop, you might use these predictions to schedule baristas for peak hours, balancing customer satisfaction against payroll costs. By experimenting with the formulas and simulator, you're learning to optimize queues for efficiency, preparing you for scenarios where some customers need faster service.
Next, we'll explore queues where VIP customers get served first, using a hospital to show how priority changes the system.