What happens to Instacart in the Amazon-Whole Foods deal?

Amazon is buying Whole Foods for $13.7 billion, and that could be bad news for Instacart.

Instacart is the on-demand delivery startup that promises grocery deliveries in as little as one hour. Customers are assigned a personal shopper who scours the aisles, purchases and delivers items from retailers like Whole Foods.

The relationship between Instacart and Whole Foods(WFM) dates back to 2014 but deepened in 2016, when they announceda new five year deal. That made Instacart an exclusive partner for Whole Foods' perishable business. At the time, Whole Foods called Instacart its largest partner for online ordering and delivery. According to multiple reports, Whole Foods also invested in Instacart.

But Instacart is also a competitor to Amazon's growing grocery delivery service, AmazonFresh. Amazon is also experimenting with a "click and collect" model that lets customers buy groceries online and pick them up at new AmazonFresh locations.

Cooper Smith, head of Amazon research at L2, said it's likely that Instacart will be the loser in Friday's deal.

"The first thing Amazon is going to do in this acquisition is to remove all those third party vendor services. Why would it keep Instacart?" said Smith. "Amazon is the master at keeping as much margin as possible. Why is Amazon going to let a third party vendor take margin off of their sale?"

Shoppers will continue to have access to Whole Foods through Instacart while the Amazon(AMZN) deal is going through the approval process, a source familiar with the partnerships told CNN Tech. The same goes for Shipt, an Alabama-based grocery delivery service that's also a Whole Foods partner.

Revenue from Whole Foods accounts for less than 10% of Instacart's revenues, according to a different source familiar with the partnership. Instacart allows some retail partners to take small investments in the company, and Whole Foods owns less than 1%, the source said. However, Whole Foods does not have access to Instacart's financial numbers and analytics.

Similarly, Instacart was not privy to the news that Amazon was acquiring Whole Foods until the deal became public on Friday. According to the source, Whole Foods reaffirmed its partnership with Instacart on Friday.

"From the beginning, we've been committed to helping grocers compete online," an Instacart spokesperson said in a statement. "That's more important than ever given Amazon just declared war on every supermarket and corner store in America."

Whole Foods did not immediately respond to request for comment.

Hrach Simonian, an investor in Instacart and general partner at Canaan Partners, stressed that Instacart has many other partners.

"As far as Instacart's partnership with Whole Foods is concerned, their business is far diversified away from any single grocery chain," Simonian told CNNTech.

When it raised $400 million in March, Instacart said it operated in 35 markets and had 135 partnerships with grocery retailers around the country. That includes major chains like Costco(COST), Supervalu(SVU) and Wegmens, which was just announced this week. The company gets a revenue share from retailers based on the size of each basket. It also charges customers delivery fees. In addition, Instacart has a number of advertising partnerships with consumer packaged goods companies that pay to reach out to Instacart customers as they're shopping digitally.

Simonian said he believes Friday's deal "lights a fire under WalMart to make a big move here."