has spent $13.9 billion on 50 new facilities since 2010 in a bid to outdo its rivals in getting products shipped to customers more quickly.

Call it the war of the warehouses. faces growing competition in electronic commerce from eBay and Wal-Mart. The amount that Amazon spent in the last few years exceeds the number it spent on warehouses prior to that in its entire existence.

At the end of 2012, Amazon had 89 warehouses. This year, it has added five more.

“We’ve standardized them in such a way that opening them and replicating them happens very fast,” Dave Clark, vice president of worldwide operations and customer service, said in an interview with Bloomberg.

Warehouse fulfillment can be expensive and has become Amazon’s top operating expense. It contributed to a $39 million loss at the Seattle-based company last year. But Jeff Bezos, chief executive, appears to be focused on beating out the competition. eBay has also rolled out same-day delivery in a number of cities, and Wal-Mart, which has 4,700 stores in the U.S., can tap its stores for online deliveries. Amazon is adding 5,000 employees to its warehouses staff of 20,000.

Speaking of how same-day delivery is affecting the e-commerce giants, see Michael Hart’s recent guest post “Bricks and mortar is back, baby — and same-day delivery service is the reason.”

VentureBeat's mission is to be a digital town square for technical decision-makers to gain knowledge about transformative enterprise technology and transact. Discover our Briefings.