The Tech Behind Processing 12 Lakh Transactions Daily

April 17, 2026·7 min read
AM
Abhishek Mishra

CTO, Sort String Solutions LLP

When people hear that SalesPort processes 12 Lakh transactions every day across 45 companies, the first question from any technical person is: how? This post walks through the architecture decisions, scaling challenges, and engineering trade-offs behind SalesPort's infrastructure. It is written from a CTO's perspective — not marketing fluff, but the actual decisions we made and why.

The scale we are operating at

Before diving into architecture, here are the real numbers from our production platform today. 45 companies running simultaneously on dedicated instances. 2.3 Lakh active users across those deployments. 30,885 B2B orders processed per day. 5.9 Lakh GPS check-ins captured per day. 21.64 Crore GPS data points tracked in total. ₹8,572 Crore of annual GMV. 83,785 farmers connected. 1,797 Village Level Collection Centres.

Each of these 45 companies has its own data silo, its own business rules, its own scheme logic, its own hierarchy of distributors and territories. And it all has to work at 5:30 AM when the morning shift starts at every dairy collection centre in Uttar Pradesh, Bihar, Rajasthan, and the Nepal border simultaneously. Scale is one thing — simultaneity is another.

Why offline-first matters more than anyone admits

India's distribution happens in areas where 4G is a luxury. A milk collection agent at a Village Level Collection Centre in rural Bihar cannot wait for a network signal to record a farmer's collection. A field salesperson in a dusty market in interior Madhya Pradesh cannot load a web page to book an order. A delivery driver on a highway between two towns has spotty connectivity for 40 kilometre stretches.

Standard SaaS distribution platforms are built cloud-first: every action is a round trip to a server. That model works in Mumbai and Bangalore. It fails everywhere else. The SalesPort mobile app stores all data locally in a device-level database, queues transactions, resolves conflicts deterministically, and syncs when connectivity returns. This is not a nice-to-have feature — it is the core architectural decision that makes the platform viable for Indian distribution. Anything less, and the field team reverts to paper within the first week.

The tricky part is conflict resolution. When a milk collection agent records 42.3 litres from farmer X at 5:47 AM offline, and the finance team simultaneously updates farmer X's bank account details online, both changes must merge correctly when the device syncs. We use a last-write-wins strategy for mutable fields and an append-only log for transactions. It is not glamorous. It works.

Dedicated instances vs multi-tenant SaaS

Unlike SaaS platforms that run all clients on shared infrastructure, each SalesPort deployment is a dedicated instance. This means the client data never co-mingles, performance issues with one client do not affect another, and customisation is effectively unlimited. The trade-off is operational overhead — we manage 43 separate deployments, each with its own database, its own backups, its own monitoring dashboards.

Is this the SaaS textbook? No. The textbook says multi-tenant is the only sensible way to scale. But for a client processing ₹646 Crore of annual procurement (our largest), data isolation is non-negotiable. A bug in another client's custom workflow should never have the possibility of touching their data. A dedicated instance makes that guarantee structural rather than procedural.

The dairy challenge: real-time quality testing at scale

Milk procurement adds a dimension no other distribution platform in India handles: real-time quality data at the collection point. Every collection records the farmer ID, the litres, the fat percentage, the SNF (Solids-Not-Fat) percentage, and calculates the payment amount automatically based on a quality-based pricing table that each dairy configures differently.

Across 1,797 Village Level Collection Centres, that works out to 3.27 Crore milk collection records processed historically. At peak morning collection (5:30 to 7:30 AM), we are handling thousands of quality measurements per minute across geographically dispersed collection centres — most of them on offline devices that will sync later. The pricing tables themselves are dairy-specific and often territory-specific within a single dairy.

The payment calculation is deterministic: given the litres, fat, SNF, and the pricing table, the amount is fixed. But the pricing tables change — for seasonality, for farmer incentive programs, for regulatory reasons. Versioning those tables and ensuring that a 5:47 AM offline collection is priced against the correct version of the pricing table when it syncs later is the kind of boring engineering that only matters when you do it wrong.

What we are building next

AI forecasting for demand prediction based on historical order patterns. Advanced MIS dashboards for real-time decision-making by operations heads. A cloud analytics layer for clients who want enterprise BI without pulling data into a separate warehouse. Smarter anomaly detection on GPS traces to catch fake visits more reliably.

We are also investing heavily in developer tooling — better local dev environments, better test coverage for the offline sync logic (which is notoriously hard to test), better deployment automation for the growing number of dedicated instances.

The takeaway for technical evaluators

If you are a technical decision-maker evaluating distribution software for an Indian dairy, FMCG, or agri business, the questions that matter are: Does the mobile app actually work offline? Is your data isolated or shared? Can the platform handle your peak load (morning collection, month-end dispatch, festival season orders)? Is the pricing transparent enough to plan a 3-year total cost of ownership? Does the architecture match how your business actually operates, not how a textbook says SaaS should operate?

I am happy to walk through SalesPort's architecture in detail for any technical evaluator — drop me a message via the demo page and I will make time for a technical deep-dive.

Frequently Asked Questions

Quick answers

What stack runs SalesPort under the hood?

Django + Python on the backend, Flutter for the mobile apps (single codebase, native iOS + Android), MySQL with per-client database isolation (no multi-tenant data mixing), and AWS Mumbai for hosting and DPDP-aligned data residency. Background jobs run on Celery + Redis. Reports use a separate read-replica to avoid stressing the operational database.

Why per-client databases instead of multi-tenant?

Three reasons: (1) enterprise procurement teams (dairy IT, government cooperatives) explicitly require data isolation in their vendor checklists; (2) per-client DBs let us tune indexes and storage layout for each client's transaction profile — a 200 Cr dairy and a 5 Cr FMCG brand have different shapes; (3) backups, restores, and compliance audits stay simple per client. The trade-off is more operational overhead — accepted.

How do you handle 12 Lakh transactions per day reliably?

Three pillars: (1) write-heavy paths (order capture, GPS logs) go through Redis-backed queues so the mobile sync API never blocks; (2) database-per-client isolates noisy neighbours — one client's bad query can't slow the others; (3) all aggregations (reports, dashboards) hit a separate read replica updated every 1-5 minutes. Day-to-day operations comfortably handle 3× our current load.

What's the disaster recovery story?

Daily encrypted backups to S3 across two AWS regions (Mumbai + Hyderabad). Point-in-time recovery available for the last 7 days. Full disaster recovery drills run quarterly with documented runbooks. Recovery Time Objective (RTO): 4 hours for a single-client restore, 12 hours for full platform restore. RPO: ≤15 minutes. ISO-aligned change management for all production deployments.

Share this article

Digitise your milk procurement

Schedule a Walkthrough

More Articles

Dairy

Why 70% of Dairy Companies Still Use Paper for Dispatch Tracking

India's dairy distribution network moves lakhs of litres every day. Yet most dairy companies still track dispatch through paper registers and phone calls.

April 4, 2026 · 5 min read
Distribution

How GPS Tracking Changed Field Force Accountability for 45 Companies

We have tracked 21.64 Crore GPS data points across 45 companies. That data reveals what actually happens in Indian field sales operations.

April 7, 2026 · 6 min read
Dairy

From Paper Registers to 83,785 Farmers: How Milk Procurement Went Digital

SalesPort Milk Procurement manages 83,785 farmers across India and Nepal. No other platform in India offers a milk procurement module at this scale — here is how it works, what it captures, and why it matters.

April 11, 2026 · 11 min read
Distribution

What is a Distribution Management System (DMS)? A Complete Guide for Indian Businesses

A Distribution Management System (DMS) digitises the entire flow from manufacturer to retailer. Here is everything Indian dairy and FMCG companies need to know before choosing one.

April 15, 2026 · 8 min read
Distribution

How to Choose the Right DMS Software for Your Distribution Business

Not all DMS software is created equal. Here are 8 criteria Indian distribution companies should evaluate before committing to a platform.

April 17, 2026 · 7 min read
Distribution

Beat Plan Management: The Complete Guide for Field Sales Teams in India

Beat plans are the backbone of field sales execution. This guide covers how digital beat planning transforms retailer coverage and salesperson productivity.

April 21, 2026 · 6 min read
Technology

Tally Integration for Distribution Companies: Eliminate Double Entry Forever

Distribution companies lose hours every day to double data entry between their distribution software and Tally. Here is how to eliminate it permanently.

April 24, 2026 · 5 min read
Technology

How We Built an Offline-First Mobile App for Rural India

Building a mobile app that works without internet sounds simple. It is not. Here is the engineering behind SalesPort's offline-first architecture — deployed across 132 apps in rural India and Nepal.

April 24, 2026 · 6 min read
Dairy

5 Biggest Challenges in Indian Dairy Distribution (And How Technology Solves Them)

Indian dairy distribution faces unique challenges from perishable logistics to rural last-mile delivery. Here are the five biggest problems and how technology addresses each one.

May 1, 2026 · 6 min read
FMCG

FMCG Distribution in India: Why 5,600 SKUs Need More Than Spreadsheets

Managing thousands of SKUs across hundreds of distributors and lakhs of retail outlets requires purpose-built distribution technology — not Excel sheets and WhatsApp groups.

May 5, 2026 · 7 min read
FMCG

How Automatic Scheme Management Prevents Revenue Leakage in FMCG Distribution

Manual scheme management costs FMCG companies crores in revenue leakage every year. Here is how automatic scheme engines solve the problem.

May 8, 2026 · 6 min read
FMCG

Primary vs Secondary Sales: What Every FMCG Distributor Should Know

Most FMCG companies know exactly what they ship to distributors. Very few know what actually reaches the retail shelf. That gap between primary and secondary sales is where margins disappear.

April 22, 2026 · 5 min read
FMCG

How to Digitise FMCG Distribution in India: A Step-by-Step Guide

Digitising FMCG distribution in India is not a technology project — it is an operational transformation. Here is the step-by-step playbook we use when onboarding FMCG clients at SalesPort.

April 29, 2026 · 9 min read
Dairy

5 Distribution KPIs Every Dairy Operations Head Should Track

If you run dairy distribution operations, these are the 5 numbers you should check every morning. Most companies only track the first one. The other four are where the real insights hide.

May 1, 2026 · 6 min read
Buyer Guides

FieldAssist vs Bizom vs BeatRoute vs SalesPort — 2026 Buyer's Matrix

A factual side-by-side comparison of the four DMS / SFA platforms Indian buyers shortlist most often in 2026 — features, pricing, industries, and the deciding factors that actually matter.

May 9, 2026 · 12 min read
Buyer Guides

BeatRoute Pricing 2026 — What FMCG Buyers Actually Pay

BeatRoute publishes per-user SaaS pricing — ₹700 to ₹1,470 per user per month. Here's what that actually compounds to at 50, 100, and 200 users, plus the hidden costs buyers miss.

May 6, 2026 · 9 min read
Dairy

SFA Software for Dairy — The 2026 Buyer's Guide

Dairy distribution is not generic FMCG. SFA software built for FMCG distributors misses the perishables, cold chain, and procurement realities of dairy operations. Here is what dairy SFA actually needs.

May 2, 2026 · 11 min read
Distribution

GST E-Invoicing for Distributors — The 14-Point Readiness Checklist

GST e-invoicing thresholds keep dropping. Most Indian distributors are now in scope. Here is the 14-point readiness checklist that distribution operations should run through before the next compliance deadline.

April 28, 2026 · 10 min read
Buyer Guides

DMS Software Pricing in India 2026 — What 45 Deployments Taught Us

How much does DMS software cost in India? Real pricing ranges, the two pricing models in market, and the cost drivers buyers consistently underestimate. Lessons from 45 SortString deployments.

April 25, 2026 · 10 min read
Technology

AI Demand Forecasting for FMCG in India — The Pawanshree Story

Why we built productised AI demand forecasting for FMCG distribution, the conversation with Pawanshree Dairy that started it, and what 5 years of operational data actually enables.

May 20, 2026 · 8 min read
Technology

Route Optimisation in FMCG Distribution — Why 21.64 Crore GPS Points Matter

How SalesPort's route optimisation module works under the hood — vehicle-routing-problem solvers trained on 21.64 Crore real GPS data points, cutting field force fuel and time by 18-25%.

May 20, 2026 · 7 min read