Runtime configuration with Superposition in Hyperswitch

Superposition lets Hyperswitch settings vary by tenant, merchant, profile and connector without code changes. This page explains how it works, how to set it up and what to run.

On this page

Why Hyperswitch runtime configuration with Superposition matters

According to the Hyperswitch documentation, Superposition is the configuration layer that lets Hyperswitch settings vary by tenant, merchant, profile and connector without code changes, and it supports staged rollouts of configuration. A payments team needs this when one Hyperswitch instance serves several merchant accounts or business profiles that must behave differently, for example with different connector priorities, retry behavior or regional settings. Without a runtime layer, each of those differences becomes a code change, a build and a release, which slows the response when a processor degrades or a merchant asks for a different setting.

The practical question is which settings belong in runtime configuration and which stay in code or deployment manifests. Before you design overrides, list the settings your teams change most often, note who approves each change, and identify which levels of the hierarchy (tenant, merchant, profile, connector) each setting must reach. Then confirm with Juspay, in the documentation for your target version, which keys Superposition controls and which still require a deployment. Treat that list as the input to your change process, not as a fixed inventory, because the supported keys change across releases.

Superposition is also an operational dependency. The Hyperswitch releases page records that from v1.124.0, Superposition became a required configuration dependency, and that a Superposition service must be running before you upgrade to that version or later. If you run an older stack, the upgrade plan must include deploying and verifying the service first. Confirm how the service is packaged for your environment, who owns its availability and how its configuration is backed up, since a failure there can block a Hyperswitch upgrade.

Configuration scopes and when each fits

This table compares the four levels a team can vary Hyperswitch settings at, with an illustrative setting type for each and the situation where that scope fits. Read it as a decision aid: start from the narrowest scope that matches who owns the behavior, and widen only when several businesses genuinely need the same value. The main takeaway is that broader scopes are cheaper to manage but affect more traffic, so confirm the exact keys your Superposition setup exposes before you design the hierarchy.

ScopeIllustrative setting typeFits when
TenantDefault timeout or feature flag shared by all merchants on one deployment (illustrative)One operator runs several tenants and needs a common baseline with per-tenant overrides
MerchantRetry behavior or fraud check threshold for one merchant account (illustrative)Different merchant accounts under one organization have different risk or retry tolerances
Business profileRouting-related or payment-page option for one brand, region or legal entity (illustrative)A single merchant account sells under several brands or in several countries with different rules
ConnectorConnector-specific timeout or retry limit for one processor (illustrative)One processor behaves differently from others and the change should not touch unrelated connectors
Blast radiusWider scopes change more live traffic per editTest changes at the narrowest scope first, then widen once results are confirmed
OwnershipWho edits each scope may differ from who approves itConfirm which roles can change each scope before granting access in the Control Center

Setting up Superposition alongside a self-hosted Hyperswitch stack

This sequence gets Superposition running next to a self-hosted Hyperswitch stack, wired to Router and checked in a non-production environment, so the stack can move past v1.124.0 without a configuration service gap.

  1. Confirm the target Hyperswitch version

    Before changing anything, the platform owner records the current Hyperswitch version and the version you plan to move to, then reads the release notes and the compatibility matrix on the Hyperswitch releases page for both Router and Control Center. The v1.124.0 release notes state that Superposition became a required configuration dependency, so any upgrade that crosses that version needs a running Superposition service first. Done when the target version, its compatibility entries and the Superposition requirement are written into the change ticket.

  2. Deploy the Superposition service in the stack environment

    The platform team deploys the Superposition service in the same environment, cluster or network segment as the Hyperswitch Router, so latency and network policy are the same as the components that read from it. Confirm the deployment method, storage backend and database sizing with your infrastructure owner and the Hyperswitch deployment documentation, since the supplied sources do not give Superposition sizing figures. Done when the service pods or processes report healthy and the team has recorded the internal address Router will use.

  3. Verify the service is reachable before upgrading

    From the Router network segment, a platform engineer checks that the Superposition endpoint answers requests, that DNS resolves the internal name and that firewall or network policy allows the connection in both directions where required. Test this from the same pod or host that will run Router, not from a laptop. Done when repeated requests succeed from the Router environment and the results are saved with the change record. This check is the gate for any upgrade past v1.124.0.

  4. Wire Router to the Superposition service

    The platform team sets the Router configuration so it points at the Superposition endpoint, and any authentication or TLS settings the service requires are supplied through your secrets process rather than plain values in Helm values files. Confirm the exact configuration keys in the Hyperswitch self-hosting documentation for your chart version, because the key names are not supplied in this context. Done when a Router restart in the non-production environment completes and its logs show a successful connection to Superposition without configuration errors.

  5. Define default configuration

    A platform owner, working with the payments operations lead, writes the baseline values that every tenant, merchant, profile and connector inherits, such as default settings that Router reads at runtime. Keep the list short and record who approved each default and why it exists. Done when the default set is stored in version control or your change system, reviewed by two people and loaded into the non-production Superposition service with no errors.

  6. Add scoped overrides for tenants, merchants and connectors

    Next, the team adds overrides at the levels the feature supports, such as a tenant, a merchant account, a business profile or a connector, and checks that each override changes only the intended scope. Use illustrative test merchants and connector identifiers in the non-production environment, and confirm with the Hyperswitch documentation which dimensions are available for your version. Done when a test request for an overridden scope returns the new value and a request for a non-overridden scope returns the default.

  7. Verify behavior in non-production before upgrading

    The QA or payments engineering team runs the payment test flows they use for regression, including connector and routing paths, against the non-production stack with Superposition running, and confirms that outcomes match the defaults and overrides defined in the previous step. Record any Router errors that mention configuration. Done when the test results are signed off and the same Superposition service version and configuration set are scheduled for the production change, so the upgrade proceeds with the tested combination.

How Router, Superposition and the data stores fit together

The diagram starts with a merchant or platform API call arriving at the Router, the core app server that handles routing, retries and vaulting. The Router reads its runtime settings from the Superposition service, while PostgreSQL and Redis sit behind the Router and the Scheduler as the architecture docs describe. The card vault is drawn outside that path as a separate service, so a configuration change never touches stored card data. Check that the Superposition service is running before any upgrade to v1.124.0 or later, because the Router depends on it.

Router reads settings from Superposition, while the card vault stays a separate service.

Staging configuration changes before they reach every merchant

A configuration change should reach a narrow slice of traffic before it reaches every merchant. The pattern is to apply the change to one scope first, such as a single tenant, merchant account or business profile connected to one connector, watch the payment outcomes that matter (authorization rate, decline codes, latency and error volume), and only then widen the scope. Because Superposition sits in the request path for Hyperswitch settings, a faulty value does not stay in a code branch that someone can roll back on a release schedule. It takes effect as soon as it is published, so the rollout step is where a bad change gets caught while the blast radius is small.

The trade-off is speed against blast radius. A wide change can be made in one step and takes effect everywhere at once, which suits low-risk settings or an urgent fix. A staged change takes longer, needs someone to watch the outcome data between steps, and leaves some merchants on the old value for longer. Decide in advance which settings are high impact, such as routing eligibility, retry behavior or 3DS-related values, and which can go out in one step. Write those rules down in your change process so the choice is not made under pressure during an incident.

The exact rollout mechanics, including how a scope is selected, how a change is published to a subset, and how a partial change is later widened or reverted, depend on the Superposition and Hyperswitch versions you run. Confirm the names and steps in the Superposition documentation and the Hyperswitch docs for your version before you write the runbook. Test the full sequence in a non-production environment first, including the rollback path, and check that your monitoring can separate outcomes by the scope you changed.

Security and operational risks of runtime configuration

Runtime configuration moves Hyperswitch behavior out of code and into a service that changes live payment flows. The cards below cover the risks that follow from that shift, and the control to put in place for each before Superposition is relied on in production.

Who can change configuration

Any user or automation that can write a configuration value can change how payments are routed, retried or validated. Confirm which identities may create, edit and publish overrides, and whether those identities are separate from the people who deploy code. Require a named approver for changes that affect production profiles, and make sure every change records who made it, when and what the previous value was. Ask your team to confirm how Superposition exposes its change history, since the supplied documentation does not give enough detail to rely on it.

Bad scoped overrides on live payments

A configuration value scoped to one tenant, merchant, profile or connector applies only to that scope, but a mistake there can still stop or reroute real payments for that merchant. For example, an illustrative override that disables a connector for one profile could push traffic onto a fallback processor with different costs or approval rates. Stage each override in a non-production environment, limit its scope to the smallest level needed, and define a rollback step that a named operator can run without a code release.

Superposition as a required dependency

Hyperswitch release notes state that Superposition became a required configuration dependency in v1.124.0, and that a Superposition service must be running before upgrading to that version. An outage or misconfigured Superposition deployment can therefore block an upgrade or a restart of the router. Include the Superposition service in your upgrade runbook, check its health before each Hyperswitch release, and keep a tested rollback path for both components together.

Hyperswitch releases

Access to the service and its data store

Superposition holds the configuration that decides how payments behave, so reading or writing its data store is a sensitive operation even when no card data is involved. Restrict network access so that only the Hyperswitch services and authorized administrators can reach the Superposition API and its database. Store database credentials in your secrets manager, rotate them on a schedule you set, and log administrative access. Confirm with your platform team how the service is exposed inside your cluster before go-live.

Aligning configuration with PCI DSS scope

Some configuration choices change where cardholder data flows, such as whether a connector receives raw card data, which vault model is active or whether logs capture request bodies. A runtime change to any of these can widen or narrow your PCI DSS scope without a code review. Treat scope-affecting keys as controlled settings, require a documented scope review before they change, and keep a record that links each change to the scope decision it supports. Confirm the scope boundary with your qualified assessor before changing these keys.

Vault deployment models

Questions teams ask about Superposition in Hyperswitch

Can our own team run Superposition for Hyperswitch without a partner?

Yes, if your team already runs Kubernetes and Hyperswitch in infrastructure you control and has the skills to operate one more stateful service. Hyperswitch documents self-hosting with Helm charts on Kubernetes, and the v1.124.0 release notes make Superposition a required configuration dependency that must be running before you upgrade to that version. Someone must own the service, its database, its upgrades and the configuration values that drive routing and connector behavior. Teams without that capacity often bring in a partner for the design and testing phase under a written scope, then run the service internally. Before deciding, read the self-hosting documentation and confirm the service's own hosting requirements with the vendor.

What drives the cost of running Superposition in Hyperswitch?

Cost falls into four parts: hosting the service, designing the configuration model, testing changes and coordinating upgrades. Hosting is recurring and covers compute, storage, backups, monitoring and the people who keep them running. Configuration design is mostly one-time work, but it grows with the number of tenants, merchants, business profiles and connectors that need different values. Testing recurs with every configuration change and every Hyperswitch minor release. Upgrade coordination also recurs, because the service must be running before a release that depends on it. In a quote, ask for each part as a separate line item, whether design is fixed-scope, what regression testing covers, and what a retainer includes for ongoing upgrades and support.

How long does Superposition setup take for a Hyperswitch deployment?

The duration depends on scope, mainly how many settings vary, how many connectors, merchants and profiles they affect, and whether a Hyperswitch deployment already exists. A single environment with a small set of values that vary by profile is a much smaller job than a multi-tenant setup where settings vary across tenants, merchants, profiles and connectors and must roll out in stages. This guide does not give a duration, so treat any figure as something to confirm in writing. Ask for milestones such as service deployment in a non-production environment, a review of the configuration model, a rollout test plan, a production cutover and a rehearsed upgrade. Each milestone should have an owner and an acceptance check.

What does our team need to provide for a Superposition engagement?

Three owners should be named before work starts. A platform owner manages the Kubernetes cluster, databases, networking, secrets and monitoring that the service depends on. A payments owner knows which settings should differ by merchant, profile or connector and approves each change. A security owner reviews who can change configuration, how secrets are stored and whether changes leave an audit trail. Your team should also control the Hyperswitch release calendar, since upgrades must be sequenced with the service. DeployOpen plans and implements self-hosted platforms in your infrastructure under a written scope, so these owners and their decision points should be written into that scope.

What happens if the Superposition service goes down?

Because Superposition is a required dependency from v1.124.0, an outage affects any Hyperswitch deployment that relies on it, so the service needs the same availability planning as the rest of the payments stack. Whether Hyperswitch keeps serving last known values, rejects requests or blocks startup and upgrades is a behavior to confirm with the vendor and test in your own environment before go-live. Ask a partner for the service's high availability design, backup and restore steps, health checks, alerts and a runbook that has been tested. Do not assume a failure mode until your team has seen it in a test.

Should we deploy Superposition before or after upgrading Hyperswitch?

Deploy the Superposition service first. The Hyperswitch v1.124.0 release notes state that deployments must have a Superposition service running before upgrading to that version. Check the compatibility matrix on the Hyperswitch releases page for the Control Center and web client versions you run. A safe order is to stand up the service, load and verify configuration, run regression tests against your connectors, then upgrade the router. Keep a rollback plan for each step, and rehearse the sequence in a non-production environment before the production change window.

Can Superposition change Hyperswitch behavior without a code deploy?

Superposition is designed so that Hyperswitch settings can vary by tenant, merchant, profile and connector without code changes, and so configuration can be rolled out in stages. Confirm which specific settings are runtime-tunable in the version you run, because not every Hyperswitch behavior is necessarily exposed this way. Even without a code deploy, a wrong value can change routing or connector behavior, so each change still needs review, testing, a staged rollout and an audit trail. Agree in the written scope who may approve changes and how a change is reversed.

Where the official Hyperswitch documentation covers this

The fastest way to confirm how Superposition-driven configuration behaves is to read the official Hyperswitch documentation alongside the Hyperswitch architecture document, which describes the Router and Scheduler services, the PostgreSQL and Redis dependencies, and where configuration sits in the request path. Start there before designing any tenant, merchant, profile or connector overrides, because the architecture page shows which services read configuration and which ones depend on the Superposition service being reachable. The main Hyperswitch docs cover the Control Center and API behavior that configuration affects, so read both together and note any setting that a later step in your plan relies on.

The Superposition-specific settings must be checked against the docs for the exact version you run. Configuration keys, override dimensions, default values and the required service endpoints can change between releases, and the v1.124.0 release notes already made Superposition a required dependency that must be running before an upgrade to that version. Pull the release notes and compatibility matrix for your target version from the Hyperswitch releases page, and record the exact version in your runbook. Ask the vendor or your DeployOpen contact to confirm any key you plan to set in config files or environment variables, since a key that exists in one release may be renamed or removed in the next.

Treat the documentation check as a gate, not a one-time read. Before each upgrade, compare the Superposition settings in your current deployment against the target version's docs, test overrides in a non-production environment, and confirm that the Superposition service is healthy in the same window as the Router and Scheduler. Where the docs leave a behavior unclear, such as how a rollout interacts with an in-flight payment, record the question and get a written answer before relying on it in production.

How DeployOpen works on this

DeployOpen plans and implements Superposition as part of a self-hosted Hyperswitch stack inside your own infrastructure. We start from the settings your teams need to vary by tenant, merchant, profile and connector, then build, test and document the configuration model so your compliance and platform teams can review it.

How we scope

  • Inventory which Hyperswitch settings must vary by tenant, merchant, profile or connector, and which must stay fixed in code
  • Confirm the Superposition service placement, its database and availability needs, and the deployment target in your infrastructure
  • Agree in writing who approves configuration changes, how rollouts are staged and what evidence is kept
  • Engagements are fixed-scope, with deliverables and timelines agreed before work starts; ongoing support is available as a retainer

How we build

  • Deploy the Superposition service next to your Hyperswitch router so the required dependency is running before any upgrade to v1.124.0 or later
  • Model dimensions and default values, then configure overrides for each tenant, merchant, profile and connector in a version-controlled form
  • Test staged rollouts of configuration changes in a non-production environment, including rollback of a bad override
  • Lock down access to the Superposition admin interface and its API using the same identity and least-privilege model as the rest of the stack

How we hand over

  • Deliver a written configuration model that names every dimension, its owner, its default and the change approval path
  • Provide runbooks for deploying, backing up and restoring the Superposition service and for reverting a faulty override
  • Document the test evidence from staged rollouts so your auditors and security reviewers can trace each change
  • Walk your platform and payments engineers through the operating model and confirm open items before handover

How we support

  • Review each Hyperswitch release's compatibility notes for Superposition changes before your upgrade window is scheduled
  • Re-run rollout and rollback tests after Superposition or Hyperswitch version changes, as part of a retainer where agreed
  • Keep the configuration model and runbooks current as tenants, connectors and regions are added to the platform
  • Coordinate with your own on-call team on alerts from the Superposition service, with response terms set in the retainer

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.