Hyperswitch capacity planning: from TPS to RPS to pods

A method for converting expected payment transactions per second into request rates, router pods, nodes and database capacity for a self-hosted Hyperswitch, with headroom for spikes and retries.

On this page

Hyperswitch capacity planning starts with transactions per second

Your payments team is self-hosting Hyperswitch and needs to size the stack before go-live. Capacity planning converts expected payment volume into request rates, then into router pods, nodes and database connections, and finally adds headroom for spikes and retries. The starting point is your forecast of peak transactions per second, measured for the busiest hour you expect, not the daily average. Hyperswitch runs two application services, the Router and the Scheduler (Producer and Consumer), backed by PostgreSQL with a primary and a read replica and by Redis for caching and the scheduler queue. Each of these layers has its own ceiling, so the weakest one sets the real limit of the platform.

The conversion from transactions to requests is where most estimates go wrong. A single payment usually produces several API calls from the merchant side (create, confirm, status checks), plus webhooks and internal calls to processors, and each of those touches the router, Redis and the database in different ways. The ratios that translate transactions per second into requests per second, requests into pods, and pods into database connections come from Juspay's guidance. Treat them as a starting model, not a guarantee. Confirm them with Juspay's documentation for your Hyperswitch release, and ask your team to count the actual calls per payment flow in a sandbox run before you accept any figure.

Once the base numbers exist, add headroom in two places: traffic spikes and retries. Retries multiply load during a processor incident, so a payment platform can see its request rate climb while its transaction volume stays flat. Record how many attempts each payment makes under normal and degraded conditions, and size for the failure case you are willing to tolerate. Then write down the decisions the numbers imply: the minimum and maximum pods for the Router, the database connection budget per pod, the replica sizing, and the Redis capacity. Verify each figure later with a load test before go-live, because a model that has never been measured against your workload is still an assumption.

Capacity inputs and when each one changes the answer

This table lists the inputs that turn expected payment volume into router pods, nodes and database connections, and says when each one changes the result. Read it before running any sizing math, because the inputs that matter most depend on your processor mix and retry behavior. Confirm each value against Juspay's documented ratios or your own load test before you commit to a cluster size.

InputWhen it matters mostWhat to confirm
Average TPSSets the baseline for steady-state router pods and the database connection load during normal business hours.Measured payment-creation rate from your current checkout, averaged over your busiest typical day.
Peak TPSDrives the ceiling for pod counts and autoscaling maximums, especially during seasonal campaigns or product launches.Highest sustained rate in the last twelve months, plus a planned multiplier agreed with your business owners.
API requests per payment flowConverts payment TPS into RPS, because one payment usually triggers several calls (create, confirm, sync, capture).Count the real calls per flow in your integration, including status polling and refund calls, then test with the Suite load test.
Retry rateAdds load on the payment path when processors decline or time out, and can multiply RPS during incidents.Share of payments routed to a retry and the retry ceiling you configure, checked against Hyperswitch retry documentation.
Webhook volumeAdds inbound event processing and database writes, and matters most when many processors send status callbacks.Webhook events per payment by processor, and whether your receivers are sized for bursts.
Processor mixChanges outbound latency and connection hold time, so the same RPS can need more pods if slow processors dominate.Share of volume per connector and each processor's typical response time under your credentials.
Pod resource requestsSets how many router pods fit on a node and how fast the Horizontal Pod Autoscaler reacts to load.CPU and memory requests from a load test at your target RPS, not from defaults in a chart.
Node sizeLimits pod density and affects how quickly new capacity arrives when autoscaling adds pods.Allocatable CPU and memory per node after system reservations, and your cloud's node provisioning time.
Database connection budgetCaps how many router pods you can run, since each pod holds connections to the primary and replicas.Maximum connections your PostgreSQL setup allows, minus headroom for the scheduler and admin tools.

Which component caps throughput first

Throughput on a self-hosted Hyperswitch stack is capped by whichever layer saturates first, and that layer is rarely the router pod count alone. The cards below are checks to run during planning and load testing, not guaranteed ceilings, because connector limits, database settings and traffic shape differ for every merchant.

PostgreSQL connections and primary writes

Every router pod opens connections to the PostgreSQL primary and replicas, so pod count multiplied by pool size can exhaust the server's connection limit before CPU does. Payment writes land on the primary, which means its write capacity sets a ceiling that adding pods will not raise. Check the total connection budget across all pods and scheduler replicas, then watch primary write latency and connection wait time during a load test. Ask your database team which pooler sits in front of the cluster.

Architecture docs

Redis latency on the hot path

Redis serves caching, idempotency and locking on payment requests, so every extra round trip adds latency to each authorization. A slow or saturated Redis instance slows the whole router fleet even when pods and the database have headroom. Measure Redis command latency and memory pressure at target TPS, and confirm which Redis deployment mode your sizing assumes. Treat Redis latency as a separate line item in the load test report.

Router pod count and CPU

The router is the stateless Rust core that handles routing, retries and vaulting, and its per-pod throughput sets how many replicas a target RPS needs. Pod CPU saturates before memory in most payment workloads, so the check is requests per second per pod at a p95 latency you agree with the business. Measure it with your own sandbox connectors, because routing and retry logic change cost per request. Confirm the requests and limits you set so the scheduler does not throttle a busy router.

Outbound rate limits at each processor

Each acquirer or processor sets its own request ceilings, and those limits apply regardless of how much capacity your cluster has. A traffic spike routed to one connector can hit its limit while the rest of the stack sits idle, which is why capacity should be checked per processor rather than as one number. Ask every processor for its documented rate limits and retry guidance, then confirm your routing rules can shift volume away from a throttled connector. Record timeouts and 429-style rejections separately in the test.

Ingress and egress proxy limits

Inbound merchant and processor traffic passes through the ingress layer, and outbound connector calls often pass through an egress proxy, so each can cap throughput before the application does. Connection limits, keep-alive settings and timeouts on these components frequently default to values that were chosen for web traffic, not payment bursts. Check proxy concurrency and connection reuse at target RPS, and confirm that the egress path allows the full set of processor endpoints you plan to call.

Sizing sequence from measured demand to a deployable baseline

This sequence converts measured and forecast payment volume into API request rates, router pods, nodes and database connections. It ends with a baseline that has documented assumptions, spike and retry headroom, and a load test result that supports it.

  1. Collect historical and forecast payment volume

    The payments owner pulls transaction counts by hour and by day from existing payment records, covering at least one full business cycle, and records peak-hour transactions per second. Finance and product add forecast volume for launches, new markets and large merchants. Keep retry attempts and webhook volume in separate columns so they are not mixed into the base count. Done when one table lists average, peak and forecast transactions per second, each figure has a named source, and the payments owner has signed it off.

  2. Derive peak request rate from transactions

    Engineers convert peak transactions per second into API requests per second by counting every call a payment generates: create, confirm, status retrieval, refunds, and inbound connector webhooks. The ratios between transactions and calls come from Juspay's sizing documentation for the release you run. Confirm the current values with Juspay before you use them, because they change between releases. Done when a single peak requests-per-second figure is written down with each call type listed and the documentation version recorded.

  3. Convert request rate into router pod count

    Divide the peak request rate by the throughput one router pod sustains in your own environment. Use a measured per-pod figure from a staging test with your connector mix, not a number copied from another deployment. The scheduler producer stays at one pod, so only the consumer and router counts scale with this calculation. Done when the router pod count for peak has a written source for its per-pod throughput and the scheduler producer is listed at one pod.

  4. Set pod requests and limits

    Platform engineers set CPU and memory requests so the Kubernetes scheduler places router pods predictably, and set limits high enough that the payment path is not throttled under peak load. Keep the autoscaler maximum high rather than matching it to the average load. Record the values in the Helm values file so they are reviewed like any other change. Done when a staging load run shows no sustained CPU throttling on router pods at the calculated peak.

  5. Size nodes with room for rolling upgrades

    Platform engineers calculate how many worker nodes are needed to run the full router replica set and the scheduler consumer set, then add spare capacity so pods can move during a node drain or a rolling upgrade. Upgrades matter here because Hyperswitch ships regular minor releases, and some releases add required dependencies. Done when draining one node in staging reschedules every pod without dropping the service below its minimum replica count.

  6. Check the database connection budget

    Engineers multiply the planned pod count by the connection pool size each pod opens to the PostgreSQL primary and replicas, then add connections for the scheduler, migration jobs, administrative sessions and monitoring. Compare the total with the server's connection limit minus reserved connections. If the total is close to the limit, add a connection pooler or revisit pod counts before going further. Done when the sum of planned connections sits below the limit with a margin the DBA has approved, and the pool size used in the calculation matches the Helm values.

  7. Add spike and retry headroom

    The payments owner and engineers add capacity for two effects that peak averages miss: short traffic spikes from campaigns or outages at a processor, and retries that multiply calls when a connector slows down. Agree the headroom factor in writing with the payments owner, and confirm that the autoscaler maximum can cover the resulting load. Done when the peak-plus-headroom request rate maps to a pod count that fits within the node capacity and database connection budget from the earlier steps.

  8. Validate the baseline with a load test

    Run a load test against sandbox connectors at the planned peak-plus-headroom rate, and record latency percentiles, error rates, pod counts, database connections and Redis behavior during the run. Repeat the test after any infrastructure or Hyperswitch version change, since both can shift the numbers. Store the sizing worksheet and the test results together under version control. Done when the measured results meet the latency and error targets the payments owner agreed, and the worksheet cites the test run that supports it.

How load flows from merchant traffic to pods, Redis and PostgreSQL

The diagram starts at merchant and PSP traffic reaching ingress, then follows requests to the Router pods, which are the stateless layer you scale horizontally. From there, requests fan out to Redis for caching and locking, to the PostgreSQL primary for writes and to the replica for reads, and to outbound processor calls. The Scheduler sits beside the Router and shares the same data stores. Check where each hand-off has a connection or throughput limit, because the database and outbound connections, not pod count, often set the ceiling.

Request path from ingress through Router pods to shared data stores and processors.

How much headroom to plan for spikes and retries

Set headroom from peak behavior you have measured, not from the average TPS in your forecast. The traffic records that matter are the busiest windows per router pod, the request rate at which p95 latency starts to climb, and the point where database connections or Redis calls begin to queue. Run the Hyperswitch Suite load test against a sandbox configuration that mirrors your connector mix, and record the RPS at which each signal moves. Those numbers, not a generic multiplier, should decide how many router pods stay warm at any hour. Confirm with your Hyperswitch contact or the load testing documentation which metrics the suite reports, so your records line up with what you can compare run to run.

Plan for retry amplification during processor incidents, because it arrives exactly when capacity is least predictable. When a processor slows or returns errors, merchant clients and webhook-driven flows retry, and routing fallback can send the same payment to a second processor. A single degraded connector can therefore multiply the API requests your cluster handles while approval rates fall. Pull a week of traffic logs that separates first attempts from retries and fallback attempts, then replay a processor-degradation scenario in a test environment and watch router CPU, database connections and Redis latency. Ask your client engineering team to confirm their retry backoff and timeout settings, since those values set how much extra load a stalled processor creates.

Test failover traffic when a pod, node or zone is lost, since surviving pods must absorb the load in the meantime. Calculate whether the remaining router pods can carry peak RPS with one zone removed, and check that the autoscaler can add capacity fast enough to cover the gap before queues build. Note that the database and Redis do not scale in the same way as stateless router pods, so a failover test should show whether connection limits or cache capacity become the constraint first. Repeat the load test and the zone-loss test after each Hyperswitch upgrade, infrastructure change or connector addition, and store the results alongside the sizing decision so the headroom figure always reflects the current release.

Operational risks to plan for while sizing

The TPS to RPS to pod arithmetic gives a starting point, but several operational factors change the numbers in practice. Some add load to the payment path, some reduce the capacity you can actually use, and some make your figures out of date. Review each one when you size the cluster and again after every upgrade.

Keep the scheduler producer at one pod

The Scheduler runs a Producer and a Consumer. The Producer handles scheduled tasks such as card data deletion and API key expiry notices, and it should stay at one pod. Autoscaling rules or Helm values that scale the whole Scheduler deployment can duplicate the Producer, so set the replica count for each workload separately. Only the Consumer should follow traffic-driven scaling.

Architecture docs

Size for upgrade surge

Rolling upgrades start new router pods before old ones drain, so the cluster briefly needs room above steady-state capacity. Surge capacity must cover node pools, PostgreSQL connections and Redis memory during the rollout window. Because minor releases arrive every few weeks, this headroom is a recurring requirement, not a one-time setup task. Confirm the surge settings in your Helm values before each upgrade date.

Budget for Superposition

Release v1.124.0 made Superposition a required configuration dependency, and a Superposition service must run before you upgrade to that version. It is an extra workload with its own pods, storage and request load, so it adds to the total capacity you planned for the router. Ask the project which requests reach it on the payment path, then size it alongside the router.

Reserve capacity for monitoring

Metrics, logs and traces use CPU, memory and storage on the same nodes as the router, PostgreSQL and Redis. The monitoring chart combines VictoriaMetrics, Loki, Alloy, OpenTelemetry and Grafana, and each component adds its own footprint. High label cardinality, especially from per-processor metrics, grows storage fastest. Reserve node headroom for the monitoring stack and measure its usage during load tests.

Re-review figures each release

Capacity figures go stale as the code changes. The releases page lists v1.126.0 (August 24, 2026), v1.127.0 (September 28, 2026) and v1.128.0 (October 16, 2026), each with a compatibility matrix for Control Center and web client versions. After each release, rerun the TPS to pod calculation, repeat the load test and record resource usage. Compare the new numbers with the last approved plan before accepting the upgrade.

Minor release cadence
Monthly
Hyperswitch releases

Questions teams ask before sizing a self-hosted Hyperswitch

How much effort does capacity planning for a self-hosted Hyperswitch take?

Effort depends mostly on how much usable data the team already has and how many environments and processors must be covered. A team with several months of clean transaction logs, per-processor success rates and a known peak calendar needs far less discovery than one starting from estimates. The main drivers are the number of processors and payment methods, the number of regions, whether retries and 3DS flows are in the mix, and how many load test cycles are needed to confirm the numbers. Ask any partner to break the estimate into discovery, modeling, load testing and written sizing outputs, so you can see where the time goes.

Can an in-house platform team do Hyperswitch capacity planning without a partner?

Yes, if the team has engineers who understand Kubernetes resource requests, PostgreSQL connection limits, Redis behavior and load testing, and if someone owns the payment traffic data. The work is mostly arithmetic on well-measured inputs, followed by realistic load tests. The harder parts are interpreting results under failure conditions and keeping the model current as processors and volumes change. Teams without payments operations experience often underestimate retry amplification and peak clustering, so it helps to have a reviewer who has sized a payment switch before. Confirm your team's skills against the Hyperswitch self-hosting documentation before you decide.

What inputs does the business need to provide for sizing?

The sizing work needs three things from the business. First, volume forecasts: current average and peak transactions per second, expected growth over the planning period, and the split between authorizations, captures, refunds and recurring payments. Second, processor mix: which connectors will carry traffic, their share of volume and any per-processor rate or timeout limits. Third, a peak calendar: seasonal spikes, promotions, payroll runs and known settlement windows. Finance and product teams usually hold the forecast, and the payments team holds the processor data. Without these inputs, the output is a generic estimate that should not be used to set production limits.

How long does a Hyperswitch sizing exercise usually run?

The duration depends on data availability and on how much load testing the team wants before go-live. If historical data is clean and the environment is already provisioned, modeling can be completed quickly and the rest of the time goes to test cycles. If data must be extracted, reconciled across systems or collected over a full business cycle, the exercise runs longer. Testing also depends on sandbox connector availability and on how many environments need to be validated. Ask for a timeline tied to specific milestones and data dependencies, and confirm which of those dependencies sit with your team.

What should a quote for Hyperswitch capacity planning include?

A quote should follow directly from a written scope. It should list the inputs the provider expects you to supply, the modeling method and assumptions, the load test plan and environments covered, the outputs (such as a sizing worksheet, pod and node recommendations, database connection guidance and headroom rules) and any follow-up review. It should state what is one-time work and what recurs, for example re-sizing after major upgrades or traffic changes, and what is excluded, such as infrastructure purchases or processor certification. Compare quotes on those line items, not on headline totals alone. DeployOpen does not publish a price list, so quotes come from the written scope.

Does Hyperswitch capacity need to be re-sized after upgrades?

Usually yes, at least to verify the existing numbers. Hyperswitch ships minor releases on a regular cadence, and a release can change resource usage, dependency requirements or the behavior of components that sit on the payment path. Changes to the Router, Scheduler, PostgreSQL, Redis or a new required service such as Superposition can all shift capacity. Treat each upgrade as a trigger to rerun a targeted load test against your current sizing, and recheck after adding a processor or a new payment method. Check the release notes and compatibility matrix for each version before you plan the test.

What goes wrong when sizing ignores retries and peak clustering?

Sizing based only on average transactions per second tends to underprovision the router tier and the database. Retries from customers, processors and the merchant's own integration add requests on top of first attempts, and peaks often cluster into short windows. Illustrative example: if a merchant sees a burst of failed authorizations that are retried by the client, the request rate can rise well above the steady-state figure within minutes. Model request rates, not only payment counts, and test with the retry behavior you expect in production. Confirm retry settings with your team and with the Hyperswitch routing and retry documentation.

How DeployOpen approaches Hyperswitch capacity planning

DeployOpen treats Hyperswitch capacity planning as a fixed-scope sizing engagement with the scope, deliverables and timeline agreed in writing before any work starts. The first step is documenting inputs: expected peak and average transactions per second, the mix of processors and payment methods, retry behavior, the number of merchants and API keys, and the spike profile your business actually sees. Each assumption is written down with its owner, so the team can see later which numbers were measured and which were estimated. The quote follows from that written scope, so the reader can see what is included before committing.

Next, DeployOpen builds the baseline in your own cloud account or data center, not in a DeployOpen environment. The baseline covers router and scheduler pods, node pools, the PostgreSQL primary and replica, and Redis, sized against the ratios your team agrees to test. Load testing then checks whether those ratios hold under your traffic shape, and chaos testing checks what happens to the critical path when Redis, the database or an outbound connector slows or fails. Results are recorded against the assumptions so that each sizing decision traces back to a measurement. Your team should confirm which environments, sandbox connectors and metrics are available before the test window is booked.

After go-live, capacity changes with upgrades, new processors and volume growth, so DeployOpen offers retainers for ongoing review of the sizing model. A retainer covers re-running tests after infrastructure changes and checking the model against production metrics. DeployOpen does not issue audit reports, attestations or certifications. If your assessors need evidence of capacity controls, the sizing record and test results can support that review, and the independent auditor decides what they accept.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.