India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
AWSAgritech produce marketplaceRetail, E-commerce & Consumer

Agritech marketplace moves 14 file-based integrations to events and speeds farmer payouts

Marketplace buying from 85,000 farmers through 260 collection centres and selling to processors and modern retail · AWS Mumbai · 13 weeks

Amazon Web Services
01

As-is situation

Fourteen integrations moved data over SFTP and database links: collection-centre weighbridge files, quality-lab results, warehouse stock, an ERP for invoicing, a payments partner and two buyer systems. Cron scripts on a single EC2 instance moved files hourly or nightly. Farmer payouts depended on weighbridge and quality data reaching the ERP, so whenever a file failed, payments slipped by a day or more. Finance staff found failed files about 11 times a month, and 9% of farmer grievance calls concerned late payment.

  • Weighbridge-to-ERP data lag of 2-14 hours through hourly and nightly file drops
  • Failed files discovered by finance staff about 11 times a month
  • One EC2 cron host running all 14 integrations as a single point of failure
02

Approach, tools and architecture

NTSPL defined six business events (lot weighed, quality graded, lot accepted, stock moved, invoice raised, payout released) with schemas in the EventBridge schema registry. Collection-centre apps publish through an outbox; the ERP database is captured with AWS DMS CDC into Kinesis, and EventBridge Pipes maps changes to events. Each consumer, from ERP to the payments adapter and buyer feeds, has its own SQS queue and DLQ. A Step Functions workflow releases each payout once weight, grade and acceptance events for a lot have all arrived. Buyers still on files receive them through AWS Transfer Family.

Collection-centre outbox / ERP CDC (DMS → Kinesis → EventBridge Pipes) → EventBridge bus → SQS per consumer → ERP, payments adapter, buyer feeds (Transfer Family) → Step Functions payout release
Amazon EventBridgeEventBridge PipesAWS DMSAmazon SQSAWS Step FunctionsAWS Transfer Family
03

Implementation approach

Weeks 1-2 · CatalogueMapped all 14 integrations with owners, volumes and failure history.
Weeks 3-5 · Events and backboneAgreed six event schemas and built the bus, queues and DLQs.
Weeks 6-10 · Lot-to-payout domainRan the event path in parallel with files and reconciled daily.
Weeks 11-13 · Remaining flowsMoved the other integrations and retired the cron host.
04

Measured results

Weighbridge-to-ERP data latency
2-14 hours→Under 40 seconds
Payouts released on the day of lot acceptance
58%→93%
Integration failures found by business users
About 11 a month→0, all alerted from DLQs
Grievance calls about late payment
9% of calls→2.5% of calls

Operational improvements

  • Operations replay a failed lot event from the DLQ console instead of re-sending files
  • A new processor buyer was connected in five days by subscribing to existing events
05

Cost considerations

Services cost INR 39 lakh. Event, queue, CDC and workflow charges run about INR 48,000 a month, including the DMS replication instance, and both the cron EC2 host and its standby server were retired after the final cutover.

06

Return on investment

ROI indicator

Same-day payouts improve farmer loyalty to collection centres; the company values each 1% gain in farmer retention at about INR 1.2 crore of annual procurement margin. Finance also stopped spending about 60 hours a month chasing failed files.

Illustrative scenario: a composite based on typical NTSPL engagement patterns for this industry and service. It does not describe a named customer. The figures are indicative, and actual results depend on the workload, its scale and the commercial terms.