At the end of the day, Bezos, Wilke, and their colleagues reached a conclusion: the equipment and software from third-party vendors simply wasn’t designed for the task at hand. To escape from batches and move toward a continuous and predictable flow of orders through the facility, Amazon would have to rewrite all the software code. Instead of exiting the business of distribution, they had to reinvest in it.