arrow_back Work
chevron_left ALL_WORK
Freelance / Backend Owner

Smart Dairy.

A production milk-delivery management platform digitizing end-to-end dairy operations — route optimization, real-time delivery tracking, payment reconciliation, and customer wallet management.

Node.js Express PostgreSQL JWT Multer React Native clients 2factor.in SMS
lock Code: Private (client IP)
60+
REST APIs across 13+ modules
1,200+
Weekly transactions processed
~40%
Admin setup time cut via CLI tooling
Max 20
Pooled DB connections, txn-safe

Architecture & Key Decisions

The Hard Part

bolt

Data consistency under live delivery operations

The genuinely hard problems showed up in production: data-consistency and request-latency issues in the GPS tracking and QR-verification flows during live deliveries. These are real distributed-writes problems — reconciling concurrent updates from drivers in the field against a financial ledger that has to stay correct.

Key Features

Trade-offs & What v2 Adds

Why store points values vs recalculating from transactions?

Read performance — while the ledger remains the source of truth for audits.

Why optional transaction fetching?

Payload-size control for mobile clients on constrained networks.

What v2 would add

Redis caching for customer/route lists, rate limiting, FK + hot-column indexes, WebSockets for live drive updates, and CSV/Excel export.

Want the full walkthrough?

Happy to walk through the reconciliation model, the CTE query refactor, and the production consistency work.