# How We Deploy Reliably at Razorpay

DevFeed: [How We Deploy Reliably at Razorpay](<https://devfeed.tech/articles/how-we-deploy-reliably-at-razorpay-90581.md>)

Original publisher: [Read original article](<https://engineering.razorpay.com/how-we-deploy-reliably-at-razorpay-52ddf676caf8?source=rss----6407ad2e59af---4>)

Author: Anusha Musthaphak

Published: 2026-10-20T08:20:57Z

Content type: article

Language: en

Sources: [Razorpay](<https://devfeed.tech/sources/razorpay-engineering-medium.md>)

Topics: [progressive delivery](<https://devfeed.tech/topics/progressive-delivery.md>), [Deployment Strategies](<https://devfeed.tech/topics/deployment-strategies.md>), [canary release](<https://devfeed.tech/topics/canary-release.md>), [Production Engineering](<https://devfeed.tech/topics/production-engineering.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [alerts](<https://devfeed.tech/tags/alerts.md>), [blast-radius](<https://devfeed.tech/tags/blast-radius.md>), [canary](<https://devfeed.tech/tags/canary.md>), [canary-deployment](<https://devfeed.tech/tags/canary-deployment.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [logs](<https://devfeed.tech/tags/logs.md>), [on-call](<https://devfeed.tech/tags/on-call.md>), [payments](<https://devfeed.tech/tags/payments.md>), [process](<https://devfeed.tech/tags/process.md>), [production](<https://devfeed.tech/tags/production.md>), [progressive-delivery](<https://devfeed.tech/tags/progressive-delivery.md>), [razorpay](<https://devfeed.tech/tags/razorpay.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [risk](<https://devfeed.tech/tags/risk.md>), [services](<https://devfeed.tech/tags/services.md>), [traffic](<https://devfeed.tech/tags/traffic.md>), [transactions](<https://devfeed.tech/tags/transactions.md>), [version](<https://devfeed.tech/tags/version.md>)

## AI overview

Razorpay reduces deployment risk through progressive canaries that limit exposure, compare new and current versions, and automatically gate or roll back unhealthy changes. Web services use a default five-step traffic ladder from 1% to 15%, with two-hour analysis per step (longer for thin or bursty traffic); Kafka consumers get a parallel canary process that compares processing errors, lag, and latency. Rollouts are ordered by merchant criticality, keeping P0-P2 merchants on the current version until less critical traffic completes canary cycles. Canary checks draw eligible signals from live Prometheus alert rules, while Canary Sentinel compares logs during rollout and sends ambiguous results to a human. Deploy Sentinel performs six follow-up checks through 16 hours after deployment, combining logs, metrics, infrastructure health, and change-specific analysis; its weakest score determines the verdict. The article says overnight and multi-day bake periods and peak-aware rollout timing remain planned work because short observation windows can miss low-frequency or high-volume regressions.

## Source excerpt

Most production incidents do not begin with a server dying. They begin with a deployment: dozens a day, across hundreds of services, each the moment risk enters the system. We run payments infrastructure at Razorpay. When a payments system degrades, transactions fail: merchants lose revenue, customers lose trust, and someone's checkout page spins at the worst possible moment. Reliability is not a feature we ship; it is the thing everything else stands on. A system in steady state rarely breaks on its own. So if you are serious about reliability, you invest where the risk actually enters: not in the servers, but in the process that changes them. This is what that investment looks like for us today: progressive canaries with more and smaller steps, canaries for Kafka consumers, rollouts ordered by merchant criticality, canary analysis derived from the same alerts that page on-call, and AI judges that read logs during and after the rollout. What reliability means at deployment time You cannot ship software with zero risk. Any process that promises that is either lying or shipping nothing. So the goal is not to prevent every bad deployment; it is to control three quantities: Blast radius. How much traffic, and whose traffic, a bad change touches before anyone notices. Time to detect. How quickly you find out the change is bad, and whether a machine finds out before a customer does. Time to recover. How quickly you get back to a known-good state once you know. Progressive delivery is the discipline built on those three levers: expose a change to a small slice of reality, measure it honestly against the current version, expand only while it stays healthy, and revert automatically the moment it does not. In practice, that is a canary deployment. Everything below is one of those three levers, pulled harder. Smaller steps, longer looks Every production deployment spins up the new version as a canary next to a baseline: a fresh copy of the currently running version, started a