Asynchronous Programming as Seen at Starbucks

Samer Buna
EdgeCoders
Published in
3 min readMar 21, 2016

--

You can order from Starbucks either by driving your car to a drive-thru lane or by going inside and waiting for your order there. In both cases, you are waiting for a resource: a worker to prepare your beverage.

There is a subtle but big difference between the 2 ways you can order. When you line up your car in the single lane drive-thru, you are blocking every one behind you. No one…

--

--

Samer Buna
EdgeCoders

Author for Pluralsight, O'Reilly, Manning, and LinkedIn Learning. Curator of jsComplete.com