It's been called the "holy grail" of online retail. Providing same-day product delivery on a national scale promises to be a huge advantage to any company that's able to bring it to online retailing. But it's a logistical nightmare, loaded with costs that could balloon out of control. 

The reigning king of that space, Amazon.com (AMZN 3.43%), offers same-day delivery in a few cities but has worked instead on shortening its overall delivery window and lowering shipping costs to its customers. In a conference call this summer, management dismissed the whole same-day idea, saying that "we don't really see a way to do same day delivery on a broad scale economically." 

Two other major retailers are testing that premise, though. And they're aiming to get deliveries into customers' hands just hours from when they make their order online. These attempts could spell a boost to e-commerce and a serious challenge to Amazon's growing dominance of the retail world. That's if the retailers manage to pull it off.

Your personal shopping valet
eBay
(EBAY 1.32%), for its part, is taking a service-driven approach to the problem, with a delivery service it just launched in San Francisco. The program, called "eBay Now," is available only in that market, but the company plans to expand it to other cities soon. Through the service, Bay area bidders can order products from eBay.com or any Apple device and receive them just hours later. 

The app works as a sort of personal shopper service, whereby local merchants including Best Buy, Target, and Macy's offer their own goods for sale. Once you make your order, a courier from the company, a shopping "valet," calls you up and arranges delivery. One of the first reviewers of the app on Apple's iTunes gave the service five stars, bragging of "shoes delivered to Golden Gate Park in under an hour! "

eBay is betting that customers will pay up for instant gratification like that and is offering the service at a rich fee of $5 per item.

The service dovetails well with eBay's recent moves away from its role as silent middleman and into a more full-service facilitator of commerce. The company has also taken to helping sellers export  their products overseas, for a fee. This service-for-a-fee strategy stands in stark contrast to Amazon's aggressive shipping offers, which are aimed at shouldering a growing portion of the shipping costs and offering rock-bottom prices. As the company spells out in its annual report, "[W]e believe that offering low prices to our customers is fundamental to our future success, and one way we offer lower prices is through shipping offers."  

An army of warehouses
Wal-Mart
(WMT -0.08%) has taken a very different approach to the same-day-delivery problem. Call it the big footprint model. 

To get their Wal-Mart wares the same day, customers just need to place orders online before noon and then choose a four-hour window for delivery. Wal-Mart sends the shipment out for delivery from its own stores using UPS trucks. For now, the retailer is offering the service on a wide selection of products in select cities. The cost is a flat fee of just $10 per order, making it more economical for buyers to load up on multiple items from Wal-Mart's huge selection.

The key to the company's success here is that it boasts 4,000 stores , which are nicely spread out across all 50 states . Many of these locations could function as mini-distribution centers for a national delivery service. 

Contrast that footprint with Amazon and its 40 domestic distribution centers in just a handful of states, and you can see Wal-Mart's potential advantage. After all, logistics and distribution built Wal-Mart into the powerhouse that it is, so there's good reason to think that if anyone has a shot at cracking the same-day-delivery nut, it's Wal-Mart.

Foolish takeaway
But both eBay and Wal-Mart's services are limited test runs that shouldn't have much of an impact on sales this holiday quarter. So we won't know for a while whether they're a success. The long-term trend is clear, though: Retailers are close to breaking the same-day-delivery barrier and have every reason to keep trying until they do.

And that spells bad news for Amazon. Valued at more than 250 times earnings, Amazon needs to sustain the 30%-plus revenue growth it's been notching lately. That doesn't seem likely to me, particularly with competitors offering nearly instant gratification at a reasonable price.