Pakistan

Why DAT Swapped Kafka for LavinMQ

From a small team to Punjab’s provincial backbone, Pakistani startup DAT now powers CM Maryam Nawaz Sharif’s Suthra Punjab initiative. Managing logistics for 11 Waste Management Companies, DAT scaled province-wide by making a bold infrastructure choice, replacing Apache Kafka with the high-performance message broker, LavinMQ.

Originally founded to solve field staff management in regions with low digital literacy, DAT allows workers to communicate via voice notes and Roman Urdu through familiar tools like WhatsApp. Their mission stays the same; however, as they expanded their reach, DAT’s initial infrastructure hit a wall.

The Apache Kafka Hurdle

As the system grew, the team initially relied on Apache Kafka as its messaging backbone. For a lean startup managing critical public services, Kafka’s operational complexity became a significant bottleneck.

Ad Powered By Advergic
Loading ad . . .
Ad - Continue scrolling to read

“We encountered persistent issues such as broker not found, leader missing, and duplicate messages,” says Ahsan Nabi Dar, CTO and co-founder of DAT. “For a startup trying to grow fast, these technical headaches were unacceptable.”

Ahsan Nabi Dar, CTO and Co-Founder of DAT

The Wow-Moment With LavinMQ

In search of a more efficient solution, Dar and the team discovered LavinMQ, a message broker known for its low latency and minimal resource footprint. The results of the switch were immediate. During local testing, DAT saw its memory usage drop from 5 GB to under 40 MB almost instantly.

Once migrated to the managed LavinMQ service by CloudAMQP, the performance gains allowed for massive expansion:

  • Event Volume: Scaled from 50,000 to 500,000 daily events.
  • Publishing Speeds: Improved 300-fold.
  • Reach: Expanded from Lahore to all eleven Waste Management Companies (WMCs) in Punjab.
  • Versatility: The workforce OS is now also utilized by the Punjab Cattle Market Management & Development Company for cattle markets across the province and is currently being onboarded by the Directorate General of Archaeology, Punjab.

AI Slashing Staff Ghosting

This stable infrastructure allowed DAT to deploy a powerful AI-driven anomaly-detection engine for the Lahore Waste Management Company (LWMC). The impact on public service has been transformative: field staff ghosting dropped from 14% to less than 1%.

An example of DAT’s field staff management: Each dot represents a person. The red dots are anomalies, while the green dots are valid/genuine locations shared by each person.

“LavinMQ has become the heartbeat of our system,” Dar explains. “It handles everything from message routing and backups to critical HR processes like payroll for a massive, province-wide workforce.”

Looking Ahead

The journey of DAT proves that for a modern startup, choosing the right specialized tool can be the ultimate competitive advantage. By swapping Kafka for LavinMQ, DAT has successfully scaled to meet the needs of an entire province, proving that high-efficiency technology is the key to managing large-scale public-sector initiatives.

Ready to simplify your infrastructure and scale with ease? Discover the power of high-efficiency messaging at LavinMQ.com.

Stay Connected with ProPakistani

Get the latest tech news, telecom insights, and product launches wherever you prefer.

Add ProPakistani to Preferred Sources and see more of our stories in Google Search and Top Stories.

Share
Published by
Publishing Partner