Skip to content

Retail · E-commerce · 2024

One inventory figure across Pakistani stores and a website

Storefront, till and warehouse on one live stock figure across dozens of Pakistani stores.

Client
Retail chain, Pakistan
Industry
Retail
Duration
26 weeks
Team
6 engineers, 2 designers, 1 QA, 1 PM
Omnichannel retail platform

1 The problem

A retail chain’s website and its stores kept separate stock, reconciled overnight. Customers ordered items that had sold in a shop that afternoon. Staff had no view of the next branch. Online cancellations were heading toward one in six — expensive in a market where cash-on-delivery already eats margin.

2 Our approach

Stock became one real-time service both the storefront and every till write to, with reservation on add-to-basket. When a store line drops — and in Pakistani retail it does — the till queues locally and reconciles on reconnect. Conflict rule: the customer standing at the counter wins. Click-and-collect and ship-from-store came after that truth existed, not before.

3 What we built

  • Live inventory as the single source of truth
  • Basket reservation, released on timeout
  • Offline-tolerant POS with a written conflict rule
  • Click-and-collect and ship-from-store
  • Search and merchandising through Algolia
  • Load test before the peak season, not during it

4 Technology

Next.js Laravel PostgreSQL Redis Stripe Algolia

The results

~16% → ~2%

Online order cancellations

Peak held

Traffic spike without a storefront outage

Higher

Revenue per online session

One view

Stock across the chain

“The cancellation number was the one the board cared about. It went from embarrassing to a rounding error.”
Chief technology officer
Retail chain, Pakistan (name withheld)

More work

Other case studies

Hospital information system ERP

Healthcare · 2024

Hospital information system

Hospital group, Punjab

One patient record across a multi-facility hospital group in Punjab, replacing seven tools that did not talk to each other.

Patient wait times down about a third, with no downtime during cutover

Laravel Vue 3 PostgreSQL AWS
Read the case study
Learning management platform SaaS

Education · 2023

Learning management platform

Education network, Pakistan

Multi-tenant LMS for a Pakistani education network that used to fall over on results day.

Results day held under tens of thousands of concurrent students

Laravel Livewire MySQL Redis
Read the case study

Have a similar problem?

Tell us what is not working. If we have solved something like it, we will walk you through how — including what we would do differently.

Or call +923019278056 · We reply to every enquiry within one working day.