Backstage high availability

Backstage high availability means running several backend replicas on shared PostgreSQL, a shared cache and object storage for TechDocs, with tested backups and recovery. This page covers the decisions, build order, effort drivers and verification.

On this page

Backstage high availability: when one instance stops being enough

A single Backstage backend is enough for a pilot, but once engineers depend on the portal for catalog lookups, software templates and TechDocs, a restart, a lost node or an upgrade becomes an outage. Running Backstage reliably means running several backend replicas behind a load balancer, with PostgreSQL, caching, documentation storage and scheduled work each designed for more than one process. Backstage is Apache-2.0 open source with no vendor-managed high availability tier, so the architecture, the failover tests and the day-to-day operation sit with your team or the partner you hire.

Adding replicas is the easy part. Persistent state lives in PostgreSQL, where each backend plugin keeps its own logical database through Knex, so the database needs its own high availability design, tested backups and a restore procedure that someone has actually run. Caching is a separate decision: the architecture overview lists Redis, Memcache, Infinispan and in-memory options, and an in-memory cache gives each replica its own view of the data. TechDocs output must also move out of local disk and into shared object storage, or a replica will serve pages that another replica never built. Confirm each of these choices against the current Backstage architecture overview before you size the environment.

Two behaviors need explicit design. Scheduled catalog ingestion and scaffolder tasks must not run on every replica at once, so confirm how your chosen Backstage version coordinates scheduled work and where that coordination depends on the database. Sign-in also has to behave identically on every replica: the same auth provider configuration, the same sign-in resolvers and the same secrets, including the signing and encryption keys used for sessions and integration tokens. Write a failover test plan that kills a replica during a catalog refresh, rotates a secret and restores the database from backup, and record the results before you call the portal highly available.

Which Backstage parts need redundancy and what each one holds

A highly available Backstage deployment splits into stateless components that can run as several replicas and stateful components that hold the data you must protect. Each card below names what a component holds, what breaks if it is lost, and what to confirm in your own environment before you size the redundancy.

Backstage backend replicas

The backend serves the app and its APIs, and it holds no catalog data of its own; that data lives in PostgreSQL. Losing one replica should leave the others serving traffic, but only if sessions, auth tokens and scheduled work do not depend on a single process. Confirm how your replicas share state, how many run at once, and how a failed replica is replaced.

Architecture overview

PostgreSQL database

PostgreSQL is the production store for Backstage. Each backend plugin gets its own logical database through Knex, so catalog, search and other plugin state all sit here. If it is lost without a tested backup, the catalog and plugin history must be rebuilt, so treat this as the component that most needs backups and restore tests. Confirm the database high availability mode, backup frequency, and restore time with your database team.

Architecture overview

Cache layer

Backstage supports Redis, Memcache, Infinispan or an in-memory cache. The in-memory option is per process, so each replica keeps its own copy and cached data disappears on restart or when traffic moves to another replica. Shared caches such as Redis keep replicas consistent. Confirm which cache you run, whether it is clustered, and what users see if it is unavailable.

TechDocs storage in object storage

TechDocs publishes rendered documentation to storage that every backend replica can read. Keeping that output on a single pod's local disk means a replacement pod serves no docs. Object storage with versioning and access controls is the usual pattern. Confirm the bucket's replication and retention settings, and whether your publishing pipeline can rebuild docs from source if the bucket is lost.

Architecture overview

Frontend build and static hosting

The frontend is a built bundle of static files, not a stateful service. Serve it from a CDN or a web server behind the same load balancer, and version it with the backend so both sides match after an upgrade. A mismatched frontend and backend is a common cause of blank pages after a release. Confirm that your deploy pipeline ships both artifacts together and that rollback restores both.

Load balancer and sign-in callback URLs

The load balancer or ingress distributes traffic across replicas and terminates TLS. Sign-in providers send users back to fixed callback URLs, so a DNS or hostname change during failover can break login for every user at once. Keep the external base URL stable across failover. Confirm the health check path, session affinity needs, and that each identity provider has the callback URL registered for the production hostname.

Authentication docs

How replicas, PostgreSQL, cache and object storage connect

The diagram starts at users reaching a load balancer at the public edge. The load balancer hands requests to several Backstage backend replicas inside the private trust boundary, and those replicas share state rather than holding it locally. Each replica reads and writes PostgreSQL, where every plugin has its own logical database, and uses a shared cache for coordination data. TechDocs pages are served from object storage, and sign-in goes to the identity provider. Check that no data store is reachable from the public edge, and that backups run against PostgreSQL and the object store.

Replicas share PostgreSQL, cache and object storage behind the load balancer.

Which database, cache and TechDocs storage to choose for HA

This table compares the storage, cache and replica choices that shape a highly available Backstage deployment. Read each row as a decision: the option, when it fits, and what it asks of your operations team. The main takeaway is that the database and TechDocs storage choices carry most of the recovery burden, so decide them before you size replicas.

DecisionWhen it fitsWhat it costs you operationally
Managed PostgreSQLYour organization already runs managed database services and wants backups, patching and failover handled by the provider.You depend on the provider's failover and restore behavior, so confirm recovery point and recovery time terms and how each Backstage plugin database is backed up.
Self-run PostgreSQL with replicationYou need control over placement inside your own network or air-gapped environment, and have database operators on staff.Your team owns replication, failover, backup verification and upgrades, and must test restores on a schedule.
In-memory cacheA single replica or a non-critical test environment where cached data loss is acceptable.Each replica keeps its own cache, so results can differ between replicas and cache state is lost on restart.
Shared Redis, Memcache or InfinispanMultiple backend replicas need a common cache. The architecture overview names Redis, Memcache, Infinispan and in-memory caching as options.You run and monitor another stateful service, and must confirm which option your chosen plugins and deployment support.
TechDocs built at publish time into object storageDocumentation must load quickly for many users and remain available if a builder fails.You operate a publishing pipeline and object storage with access controls, lifecycle rules and backups, and must keep builds in step with source changes.
TechDocs built on demandYour document set is small and you want fewer moving parts in the publishing path.Each request can trigger a build, so load rises with traffic and failures appear as slow or missing pages for readers.
Single replica groupYour traffic is modest and you want one deployment to configure, monitor and upgrade.Scheduled catalog and plugin work competes with API requests for the same resources, and a single rollout affects everything at once.
Separate replica groups for API and scheduled workAPI latency matters to users and background ingestion or cleanup jobs run long or often.You maintain two deployment profiles with shared configuration, and must confirm that task coordination prevents duplicate scheduled runs.

Backstage high availability build sequence, step by step

This sequence takes a single Backstage instance to a set of replicas that share state, serve the same identity and docs, and recover from failures, with a check after each step that proves it works. Each step is owned by the platform team inside your own infrastructure.

  1. Provision PostgreSQL with backups and point-in-time recovery

    Move Backstage off SQLite and onto a managed or self-hosted PostgreSQL instance in your own environment, with automated backups and point-in-time recovery enabled. Confirm with your database platform team that recovery is configured as a tested capability, not only as a setting. Start the backend once and check that Backstage creates a separate logical database for each backend plugin through Knex. The step is done when the plugin databases exist, the backend connects without errors, and a restore to a scratch instance has been completed successfully.

  2. Configure a shared cache for all replicas

    Point the backend cache at a shared store such as Redis, Memcache or Infinispan so that cached data is not trapped in one process's memory. Check the Backstage architecture documentation for the cache options supported by your version before choosing. Restart one replica and confirm that user sessions remain valid and that cached catalog responses are still served without a full rebuild. The step is done when a restart of a single replica causes no sign-in prompts and no visible loss of cached data.

  3. Move TechDocs storage to object storage

    Configure TechDocs to publish and read built documentation from an object store in your cloud account or data center, instead of the local filesystem of one backend. Grant each replica read access through its own credentials, and keep write access limited to the build process. Open a docs page while the request is routed to a replica that did not build it. The step is done when the page loads from a different replica than the one that generated it, and the bucket permissions are documented.

  4. Set identical sign-in resolvers and secrets on every replica

    Deploy the same sign-in resolver configuration and the same authentication secrets to every replica, so every provider resolves a user to the same catalog identity regardless of which node handles the login. Remove guest access from the production configuration, as the Backstage authentication documentation advises. Sign in through each configured provider while traffic is pinned to different replicas. The step is done when every replica returns the same user identity and guest sign-in is disabled.

  5. Coordinate scheduled tasks across replicas

    Catalog refresh, discovery and other scheduled jobs must not run on every replica at once, because duplicate runs cause conflicting writes and wasted load. Confirm the current coordination method for scheduled tasks in the Backstage documentation for the version you run, since the mechanism is version-specific and must be verified before you rely on it. Enable the schedule on the replicas your chosen method expects, then review the logs over a full refresh cycle. The step is done when logs show each scheduled job starting once per cycle, not once per replica.

  6. Place replicas behind a load balancer with health checks

    Put the backend replicas behind a load balancer that routes only to healthy instances, and configure health checks against the backend health endpoint. Make sure the frontend and the API share a consistent external URL and that session cookies work across replicas. Stop one replica and send requests through the balancer. The step is done when traffic continues without user-visible errors and the failed replica is removed from rotation automatically.

  7. Set the Node.js version to a supported release

    Run every replica on one of the two Node.js releases that Backstage supports at the version you deploy. As of Backstage 1.46.0 these are Node.js 22 and 24, according to the Backstage versioning policy, so confirm the current pair for your release before building images. Use the same Node.js version across all replicas and in the build pipeline. The step is done when every running replica reports the same supported Node.js version and the image build pins it explicitly.

  8. Document and rehearse the runbook

    Write a runbook that covers replica scaling, database restore, cache flush, TechDocs bucket recovery, secret rotation and the steps for a failed upgrade. Assign an owner for each procedure and record the expected verification after each action. Rehearse at least a database restore and a single-replica failure in a non-production environment. The step is done when the runbook has been used in a rehearsal, gaps found during that rehearsal are fixed, and the on-call team can follow it without the original author.

How the HA design differs for single node, replicated and Kubernetes hosts

A single-node deployment runs the Backstage backend, the frontend build and any local caching on one host, with PostgreSQL either on the same machine or on a separate instance that is still a single point of failure. Backups are the main protection. They let you rebuild the catalog state, plugin databases and TechDocs content after loss of the host or disk, but they do not keep the portal online while you restore.

  • Covered failures: disk corruption, accidental deletion of the host or data volume, and a bad upgrade that you can roll back from a restored snapshot.
  • Open failures: host or process crash with no standby, planned maintenance that interrupts developer access, and any restore time that your developers experience as downtime.
  • Backup scope: confirm that backups include every logical database Backstage creates through Knex, the object storage bucket for TechDocs, and the configuration secrets, not only the main database.
  • Restore testing: a backup that has never been restored into a clean environment is an assumption. Ask who runs the restore and how long it takes in your environment.
  • Recovery ownership: name the person who can execute a restore at 2 a.m. and confirm the runbook is stored outside the failed host.

Check whether your organization accepts a planned outage window for the portal and how long a restore from your current backup set would take.

What drives the effort and cost of a highly available Backstage

This table lists the factors you control that change how much work a highly available Backstage takes to build and run. Read each row as a question to answer before you ask for a quote, since most of the effort comes from scale, the number of environments and the recovery targets you set. The main takeaway is that the same topology costs more to operate when it is repeated across environments and when evidence must be produced on demand.

Effort driverWhy it raises effortHow to keep it down
Users and catalog entitiesLarger catalogs and more concurrent users increase database load, cache use and catalog processing time, which can push you toward more backend replicas and a larger PostgreSQL instance.Confirm expected user counts and entity counts early, load test a realistic sample, and keep catalog ingestion scoped to the teams that need it.
Plugins with their own database or cacheEach backend plugin gets its own logical database, and some plugins add cache or storage needs, so every addition is another component to back up, monitor and restore.Limit the plugin list to those the portal needs at launch and document which databases and caches each plugin uses.
TechDocs volume and build pipelineDocumentation sites are built and stored in object storage, so volume, build frequency and publishing jobs add storage, compute and retention work.Set a retention policy, build docs from CI rather than the portal, and confirm which object storage service your organization already runs.
Identity providers and resolver logicEach provider needs a sign-in resolver that maps it to one identity, and more providers mean more mapping rules to test and maintain.Use one primary provider where possible, keep resolver rules in a single reviewed place, and test each sign-in path before cutover.
Number of environmentsDevelopment, staging and production each need the same topology, so the same replicas, databases, cache and storage must be built, patched and tested more than once.Keep environments identical in configuration with infrastructure as code, and use smaller sizes outside production only where the risk allows.
Recovery targets set by the businessTighter recovery point and recovery time goals require more frequent backups, standby capacity, and more frequent restore drills.Ask the business owners to agree targets in writing before design, and match each target to a specific component rather than the whole portal.
Compliance evidence needsAuditors and internal assessors often ask for records of backup jobs, restore tests and change approvals, which must be collected and kept current.Define the evidence list before build, automate backup and restore logs where possible, and store results in a location your assessors can reach.
In-house PostgreSQL and Kubernetes skillsWithout staff who run PostgreSQL failover and Kubernetes rollouts, the work shifts to vendors, training or longer incident response times.Assess skills against the topology early, name owners for each component, and ask any partner to document runbooks for handover.

What to monitor, back up, upgrade and document after go-live

Going live is the start of the reliability work, not the end of it. The signals to watch are replica health for each Backstage backend instance, PostgreSQL connection counts and query latency as the replicas share one database, and cache hit behavior on the shared Redis or other cache your team chose. Watch TechDocs build failures closely, because a failed build leaves a stale or missing docs site that users notice before operators do. Track the outcome of scheduled catalog ingestion and other scheduled tasks as well, since a task that silently stops running means ownership data slowly goes out of date. Confirm with your own monitoring vendor and the Backstage configuration reference which metrics the portal exposes in your version, and set alerts on the failures you cannot tolerate, such as a stalled catalog refresh.

Backups need two schedules: one for the PostgreSQL databases that hold the catalog, scaffolder history and plugin state, and one for the object storage bucket that holds rendered TechDocs. Each plugin uses its own logical database, so confirm the full list of databases in your deployment and back up all of them together so they stay consistent. A backup you have not restored is an assumption, so run restore drills on a schedule. A drill should restore the database and bucket into a separate environment, start a replica against them, and confirm the catalog loads and a sample TechDocs page renders. Record how long the drill took and what you had to fix, and keep the restore steps in the runbook.

Backstage releases a main line monthly and a next line weekly, so an unpatched instance falls behind quickly. The versioning policy says high and critical severity vulnerabilities will be backported to releases from the last six months where feasible, which means your team must stay within that window to receive them. Upgrades move all @backstage packages together with yarn backstage-cli versions:bump, and the Upgrade Helper shows the template changes between versions. Plan a regular upgrade cadence, test each upgrade in a staging environment with the same database and bucket setup, and check that your Node.js version is one the release supports. Finally, keep a written runbook covering on-call ownership, escalation contacts, alert responses, backup and restore steps, upgrade records and the dates of your restore drills. Those records are the evidence an auditor or security reviewer will ask for, and they should be reviewed whenever the team changes.

Access control and secrets that must match across every replica

When several Backstage backend replicas serve the same portal, every replica must agree on who a user is, which secrets it holds and how it reaches its data stores. A mismatch on any one of these shows up as intermittent sign-in failures, duplicate identities or a hole that only one replica exposes. The cards below cover the points to verify before and after each change.

Identical sign-in resolvers on every replica

Each replica loads the same authentication configuration and sign-in resolver, so one person always maps to one catalog user regardless of which replica handles the login. Check that the provider settings and resolver code come from the same source for every replica, and that a rollout does not leave old and new resolvers running side by side. Test with a user who signs in through more than one provider to confirm the identity still resolves to a single user.

Backstage auth docs

No guest access in production

Guest sign-in lets anyone reach the portal without an identity provider, which bypasses the ownership and access model the catalog depends on. The authentication documentation advises against offering guest access in production, so confirm the guest provider is absent from the production configuration on every replica. Review this setting during each release, because a development configuration copied into production is an easy way for it to return.

Secrets kept out of images

Client secrets, database passwords, integration tokens and signing keys should never be baked into container images or committed to configuration files. Supply them at runtime from a secrets manager or the orchestrator's secret store, so every replica reads the same value and rotation happens in one place. Confirm that rotating a secret does not require rebuilding the image, and that each replica restarts or reloads when the secret changes.

Least-privilege database roles per plugin

Backstage gives each backend plugin its own logical database, so each plugin's connection should use a role limited to that database. A single superuser shared across all plugins means one compromised component can read or alter every plugin's data. Ask your database team to create one role per plugin database, grant only the privileges that plugin needs, and rotate those credentials through the same secrets path as the rest of the portal.

Restricted network paths to shared services

Replicas should reach PostgreSQL, the cache and object storage for TechDocs over private network paths, and nothing else should reach those services directly. Allow only the replica subnet or security group on the database port, and block public endpoints for the cache and bucket. Verify the rules from a host outside the replica network to confirm the connection is refused, since a permissive rule on one service is a common gap.

Encryption in transit and at rest for backups

Database backups and TechDocs content can contain sensitive catalog data, so they need encryption both on the wire and in storage. Enable TLS between replicas and PostgreSQL, and confirm the object storage bucket uses server-side encryption with keys your team controls. Restrict who can read or restore backups, and treat the backup store with the same access controls as the production database.

How to test that Backstage fails over and recovers safely

Test failover before you rely on it. Run the test plan in a staging copy that matches production topology: multiple Backstage backend replicas, a PostgreSQL instance with backups, the shared cache and the TechDocs storage bucket. Start by stopping one backend replica while a realistic read load runs against the catalog and search. The check is that signed-in users keep their sessions, catalog reads continue without errors, and the load balancer stops routing to the dead replica within the time your health checks allow. Confirm the health endpoints and probe settings on each replica so the failed instance is actually removed from rotation. Record how long any interruption lasts, since that becomes evidence for your recovery time target.

Next, test the database and the cache. Restart or fail over PostgreSQL in the staging copy and confirm that Backstage reconnects without a manual restart of the backend pods. Watch the logs for connection pool errors and confirm the plugin databases that Knex manages all recover. Then remove one cache node and confirm the application degrades rather than fails: catalog pages should load more slowly or fetch from the database, not return server errors. For backups, restore the latest PostgreSQL backup to a separate instance, point a throwaway Backstage deployment at it, and compare entity counts, owners and relationships with what you expect from the source. Also confirm that scheduled tasks such as catalog refresh run once per cycle across replicas, not once per replica, and that a TechDocs page still renders after a replica change.

Before running any of this, get recovery time and recovery point objectives from the business, since no figures are set here, and confirm that the staging environment can actually meet them. Write down each test, its expected result, the actual result, the timestamps and the person who ran it, then keep the record with your runbook. Failed checks should produce a dated fix and a retest, not a note. Repeat the plan after each Backstage upgrade or change to the database, cache or storage, because a passing test last quarter does not prove the current configuration recovers. Ask your team or partner to confirm which failure modes you are testing, which ones are out of scope, and who signs off the results.

Backstage high availability questions buyers ask before hiring help

How much does a highly available Backstage setup cost?

No single figure applies, because cost follows from the written scope. The main components are the engineering effort to design and build the setup, the infrastructure you run (Kubernetes or virtual machines, a managed or self-run PostgreSQL service, a shared cache, and object storage for TechDocs), and the recurring work of backups, restore drills, patching and upgrades. Backstage itself is free under the Apache License 2.0, so you pay for the people and infrastructure, not a license. Costs rise with the number of environments, the identity and network integrations to build, the recovery targets you set, and whether you need evidence for an audit. Ask any provider for a quote that separates one-time build work from recurring operations, names who pays for each part (your cloud account, your database team, the provider), and lists the environments and integrations it covers.

How long does a Backstage high availability project take?

No duration applies to every organization, so treat any timeline as a function of scope. The biggest drivers are how many environments must be made highly available (often production and staging), how much of the stack is new to your team, whether PostgreSQL backups and restore procedures already exist, how many identity, cloud and network integrations are involved, and how long your change approval and security review take. Recovery testing adds time because it needs a test restore into a separate environment and a written result. Ask for a plan that lists the phases, the client dependencies in each phase, and the points where your sign-off is required, so you can see which steps depend on your teams rather than on the provider.

What does the client need to provide for this work?

The work runs inside your environment, so you need to provide access before anything starts. Typically this means access to the cloud accounts, data center hosts or air-gapped network where Backstage will run, plus the ability to create or approve the Kubernetes or VM resources, load balancers, and object storage buckets. You also need named owners for the database (who approves backup retention and restore procedures), for identity (who runs the sign-in provider and group data), and for the network and certificates. Finally, you must sign off on the recovery targets, meaning how much data loss and how long an outage your business can accept. Without those decisions, the design cannot be finished or tested.

Can our in-house platform team run Backstage high availability itself?

Yes, if the team already has the right skills and time. The setup relies on familiar components: running multiple stateless backend replicas behind a load balancer, operating PostgreSQL with backups and point-in-time recovery, configuring a shared cache, storing TechDocs output in object storage, and coordinating scheduled tasks so they do not run twice. Your team needs working knowledge of PostgreSQL operations, Kubernetes or VM operations, secrets management and monitoring. It also needs time for regular restore drills and for upgrades, which Backstage ships on a monthly main release line plus a weekly next line. If those skills or that time are missing, a partner can build the setup and hand over runbooks, and your team can run it afterward.

Does Backstage offer a paid high availability edition?

No. Backstage is an open source framework released under the Apache License 2.0 (SPDX: Apache-2.0), and the project itself does not sell a paid edition with high availability features. High availability is achieved through how you deploy and operate the app: replicas, a managed or self-run PostgreSQL service, a shared cache, object storage for TechDocs, and your monitoring and backup tooling. Some vendors sell hosted Backstage products, which is a separate commercial decision with its own terms. Confirm the license of any plugin or third-party component you add, since plugins are licensed individually, and check the license terms of any hosting or support contract you sign.

What happens to a replicated Backstage setup during an upgrade?

Upgrades need a deliberate rollout order, because replicas can run different code during a rolling update. Backstage moves all @backstage packages together with the yarn backstage-cli versions:bump command, and the Backstage Upgrade Helper shows the template changes between versions. Database schema changes must be applied in a controlled way, so plan for migrations to run once and before the new replicas serve traffic. Plugin compatibility and the supported Node.js versions must also be checked, since the project supports two adjacent even-numbered Node.js releases. Test each upgrade in staging with a copy of production-like data, confirm the catalog and TechDocs still build, and keep a tested rollback path before you promote the change to production.

How DeployOpen scopes, builds and hands over Backstage high availability

DeployOpen plans and builds Backstage high availability inside your own cloud accounts, data centers or air-gapped networks, starting from a written scope. The work covers replicas, the database, shared cache, TechDocs storage and recovery testing, and ends with a runbook your platform team can operate without us.

How we scope

  • Confirm which Backstage backend plugins, catalog sources and TechDocs builds must stay available during an outage.
  • Record the target hosting platform, database service, object storage and identity provider in the written scope.
  • Agree which recovery objectives your organization sets, and which ones the scope will test against.

How we build

  • Deploy multiple backend replicas with shared PostgreSQL, a shared cache and scheduled task coordination configured and verified.
  • Move TechDocs output to object storage and confirm that reads and publishing work from every replica.
  • Configure automated PostgreSQL backups and run restore tests against a separate environment before sign-off.

How we hand over

  • Deliver architecture diagrams, configuration references and a runbook covering failover, backup restore and replica scaling.
  • Walk your platform and on-call engineers through recovery drills so they can repeat them without DeployOpen.
  • Document the upgrade procedure for the monthly main release line, including how replicas are rolled one at a time.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and recurring recovery testing are available as a retainer.
  • Ask any partner to confirm which backup, failover and restore tests are included in the quote and which are retainer work.

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.