← All projects
Food delivery · UK

Heathways Foods

Food delivery with live stock and depot routing

Stock stays right at busy times, and customers only see delivery slots that can be met.

Role
Full Stack Developer
Built at
Backendz
Platform
Web
Type
E-commerce
Stack
Next.js, Node.js, MongoDB, AWS
Live
Visit site ↗
StorefrontNext.jsOrder APICheckout · routesMongoDBStock · ordersDepot dispatchDelivery slots

A customer checks out with a delivery slot.

Problem

Perishable stock moves fast and deliveries run across several routes. At busy times the stock count drifted and orders slipped.

Approach

Stock is reconciled as orders come in rather than at the end of the day, and delivery slots are tied to depot routes, so the store only offers slots it can actually meet.

Key decisions

  1. Deduct stock inside the checkout transaction

    Instead of: Updating stock from a background queue

    Perishable items can sell out in seconds during a promotion. Updating stock in the same transaction as the order stops one item being sold twice.

  2. Delivery slots grouped by depot route

    Instead of: One shared slot calendar

    Postcodes are grouped into routes per depot, so customers only see slots a van can actually reach.

What I did

  • Maintenance of order processing, depot dispatch scheduling and stock reconciliation.