Your Coffee Shop Doesn’t Use Two-Phase Commit (Starbucks async processing model)
eaipatterns.com
eaipatterns.com
Some cool lessons from this:
* If you just look at the infrastructure, there is obviously one optimal way to do it, however if you look at the people doing each task at a station, this may change. We would abstract this out in our systems thinking to imagine various people as various systems or processing algorithms with different runtimes, and which we had no control over. This had strange implications in terms of efficiency, and which method would work best for the feeding and consuming steps around those stations. Also taught us about reordering and parallelizing certain tasks, even if those orders and parallelizations were not optimal in their own right.
* If you know there will be a heavy bunch of orders for a certain type of item (e.g. daily special) you can start cooking batches before the orders come in, even if there are not yet orders, optimizing the cook time. Essentially just in time delivery stuff. Similar with fries (this place used a 2 stage fry cooking process).
* Exceptional orders and out of band mechanisms: instead of trying to make the main workflow handle exceptional orders (very large, weird items, etc) it is is easier to have a second workflow or an ad-hoc workflow for that situation - it prevents interruptions, starvation issues, etc for the main queue.
* It is very amusing to watch the puzzled look on customer's faces when they see the cooks white-boarding math equations during lulls :)
Joking aside, I love that you were applying the modeling, design, and performance analysis ideas to a different domain like this. It's the classic case of cross disciplinary teams or cross discipline thinking yielding surprising benefits. I love that you used it to teach CS as well, which makes a powerful reciprocal relationship.
I used to wonder why the fast food places didn't have hefty pattern analysis going on to predict needs, e.g. "it's Tuesday at 4:30, we almost always need 28 chicken strips in the next 30 minutes so put them down" even to the point of balancing speed vs waste and other issues. Maybe they are doing that now, but it's got a lot of potential.
http://www.inc.com/magazine/20080801/how-hard-could-it-be-go...
They're taking your order as soon as you walk in the door so that by the time you realize that you'll be standing there for 20 minutes waiting for your coffee you're already committed. You'd feel guilty walking out, so they get your business where they otherwise might not.
a.) released when I get my coffee
b.) released with a timeout (I don't want to wait any longer)
2. no paper cups
3. no useless lids
4. no endless variants of latte, mocha and what have you [1]
Let's suppose the rush hour is after lunch, then everyone will be getting an espresso, someone macchiato (only tourists drink cappuccino after 11 am), but the price is the same. And basically you have a line at the bar and a line to pay. The bar can usually make up to 8 espresso at a time and people cram in front of it by the dozen and drink it in under a minute. You can pay before or after according to where the queue is shorter.
I've got an Illy cafe machine at home :)
That sounds awesome. I can't even count the number of times I've waited for some goofball's complex six-word drink to be made so I can give the cashier $2 and get a cup in return. (Most places around here sell you the cup and you pour your own coffee from a vacuum pot.)
* I shit you not. It happened at a Starbucks in Wisconsin.
Bonus points if it's cheaper.
The customer insisted on the order as originally stated, and happily paid the extra two bucks for it.
Coffeehouses here in the States make things way too complicated but I guess they only continue to sell what the customers buy so it's our own fault.
As far as pricing, I don't think you can make a living selling shots of espresso for $1, unless you sell an awful lot of shots or sell a lot of other things.
Saying "one espresso" is cheaper in Italy than the US doesn't really mean anything. Prices vary, cost of doing business varies, cost of living varies.