CodeLamda Technologies
HomeServicesWorkAboutCareerContact
Book a call
CodeLamda Technologies

Transforming ideas into scalable digital products. We help startups and businesses build MVPs, AI solutions, and modern applications with speed, quality, and innovation.

Quick Links

  • Home
  • Services
  • Portfolio
  • Blog
  • About
  • Contact

Our Services

  • MVP Development
  • AI Development
  • Web Development
  • Mobile Development
  • CleverTap Integration

Locations

  • USA Software Development
  • Australia Software Development
  • UAE / Dubai Software Development

Contact Us

7th Floor, APMC, Krushi Bazaar,
704 Sahara Darwaja, Begampura,
Surat, Gujarat 395003

contact@codelamda.com
+91 99099 80048

© 2026 Codelamda Technologies Pvt. Ltd. All rights reserved.

Privacy Policy•Terms of Service
All case studies
Case study·Fintech · Merchant Payments
BharatPe

Scaling BharatPe's merchant SDK to 9M+ shops

Took BharatPe's merchant acquisition SDK from proof-of-concept to 9M+ live shops with sub-100ms p95 API latency.

Website Google Play App Store
BharatPe — Scaling BharatPe's merchant SDK to 9M+ shops
scroll for the build
Merchants onboarded
<500k→9M+
18× growth
p95 API latency
840ms→92ms
9× faster
Partner integration time
6 weeks→3 days
−93% time-to-integrate
The challenge

What we were hired to solve.

BharatPe's merchant acquisition SDK was hitting a scale ceiling. The synchronous write path couldn't handle the onboarding bursts that new partner launches drove, and KYC webhook timeouts were causing silent data loss at the settlement layer. Every new partner integration took six weeks because the surface area wasn't typed, and partners kept tripping over undocumented idempotency rules. The team needed to push through two scale milestones — 5M merchants, then 10M — without hiring a second platform squad, and without rewriting the existing client code already in production at ten bank partners. The deadline was driven by a Series-E commitment to show merchant growth velocity in the next quarter.

The approach

How we broke the work into stages.

STEP 01

Re-architect around event streams

Replaced the synchronous write path with Kafka-backed event streams so merchant onboarding, KYC webhooks, and settlement writes decoupled cleanly. Cut p95 write latency from 840ms to 92ms.

STEP 02

Ship a typed SDK first, integrate second

Published a TypeScript-first SDK with schema-validated inputs and retry-safe idempotency keys. Merchant partners integrated in days instead of the six-week average under the old REST surface.

STEP 03

Instrument every hop with Datadog APM

Traced every call from the partner SDK through the gateway, KYC, and settlement services. Every regression showed up in a dashboard within 60 seconds of deploy — letting the team ship five times a week without fear.

Inside the build

Screens & architecture.

BharatPe — asset 1

What the product needed to do

A merchant-onboarding SDK has three non-obvious demands: idempotent writes under retry (webhooks fire twice, often), eventual-consistent reads at high cardinality (partner dashboards query the full merchant book), and deterministic KYC callbacks (banks require an audit trail). The existing system handled each of these as ad-hoc retries and cron sweepers — the new architecture had to bake the guarantees in at the SDK boundary.

The technical bet

The biggest bet was putting Kafka between the SDK gateway and the settlement service. Every existing team in the org was still on the synchronous write path and nervous about event-sourced architectures. We mitigated by shipping the dual-write for four weeks — every onboarding request landed in both the old Postgres table and the new Kafka topic — and only cut over once the Kafka pipeline had ten days of zero-drift reconciliation.

What shipped

  • A typed TypeScript SDK with four primary endpoints: enrol, submitKyc, attachSettlement, invalidate. Full codegen from a single OpenAPI schema.
  • A Kafka-backed write path with at-least-once delivery and idempotency keys sourced from the partner's own reference ID.
  • A Datadog-instrumented trace that stitched partner SDK → gateway → KYC → settlement into a single flame graph.
  • A partner sandbox with golden-path and failure-mode scenarios that new integrators could hit from a curl in 30 seconds.

Where it's now

The SDK is live at 9M+ merchants across ten bank partners. The platform has survived two press cycles that drove 40× traffic spikes with zero incidents, and the SDK is now used internally for every new merchant-adjacent product BharatPe launches. The team that was worried about needing a second platform squad hasn't had to hire one yet.

Tech stack

What we shipped on.

Next.jsTypeScriptNode.jsPostgreSQLRedisKafkaAWS EKSTerraformDatadog
Your turn

Have a project like this?

We ship MVPs, AI agents, and production systems in 8 weeks. Bring the problem — we'll scope the build inside a week with a fixed timeline and quote.

50+
MVPs shipped
8 wks
Avg. delivery
$20M+
Raised by clients
30 days
Post-launch support
30-minute callBook a discovery callPrefer emailSend us a briefSee more case studies