The Perils of Error Reduction; or, Starbucks for Programmers
This article was originally published at Planet PHP
on 5 August 2010.
By taking advantage of an asynchronous approach Starbucks also has to deal with the same challenges that asynchrony inherently brings. Take for example, correlation. Drink orders are not necessarily completed in the order they were placed. This can happen for two reasons. First, multiple baristas may be processing orders using different equipment. Blended drinks may [...]