Walmart has announced a new in-house pilot delivery service that crowdsources independent drivers to fulfill the “last-mile” delivery process.

The grocery giant is working with a third-party company called Delivery Drivers Inc. (DDI), which manages contract driver recruitment, screening, payments, and more. This partnership will ultimately serve as the backbone to the new Walmart service, which will be known as Spark Delivery.

Walmart has offered delivery services for a while already, initially partnering with Uber and Lyft before ditching the ride-hailing firms in favor of the likes of Postmates, DoorDash, and Deliv. But Spark Delivery represents Walmart’s first attempt at building its own internal platform that allows drivers to sign up for delivery slots and access order details.

The Amazon factor

Walmart and Amazon have increasingly competed against each other in the retail realm, a battle that hit fever pitch last year when Amazon entered the brick-and-mortar grocery realm in a big way with its $14 billion Whole Foods acquisition.

Spark Delivery represents Walmart’s latest attempt to fend off Amazon by leveraging technology, though the service is very much like Amazon Flex, a delivery platform that effectively lets anyone who owns a car become a courier. Amazon Flex is focused on parcels, while Spark Delivery’s raison d’être is groceries — but the principle is the same.

Moreover, the big online retailers just can’t get enough drivers to fulfill demand for super-fast deliveries. A couple of months back, Amazon announced that it is looking to create a network of independent…