Temporal with Apache Cassandra persistence

Running self-hosted Temporal on Cassandra for large write-heavy workloads, with tested versions, schema setup, a separate visibility store and clear criteria for choosing PostgreSQL instead.

On this page

How Temporal with Apache Cassandra persistence works

A team that expects a large, write-heavy Temporal history and has to run its own persistence store should know one thing first: Cassandra is a tested persistence option for self-hosted Temporal, but it cannot also serve as the visibility store. Temporal persistence is tested on Cassandra 3.11, 4.0 and 5.0.4 or later. Cassandra visibility was removed in Temporal Server 1.24, so a Cassandra deployment must add a separate visibility store, either Elasticsearch, OpenSearch or a supported SQL database. Confirm the exact Cassandra and visibility versions your target Temporal Server release supports before you commit to a store, because the supported matrix moves with each minor line. The Temporal persistence documentation is the primary reference for that check.

In practice the integration has two connections. The Temporal Server points its persistence configuration at the Cassandra cluster for workflow history, task queues and execution state, and points its advanced visibility configuration at the second store for search and listing. Each side needs its own keyspaces, credentials and network path, and each has its own schema. Cassandra schemas are created and upgraded with temporal-cassandra-tool, which the upgrade process also uses for both persistence and visibility schemas. Plan the keyspace names, replication settings and the account that runs schema changes as design decisions, not defaults, and review them with the team that owns the Cassandra cluster.

The consequence for planning is that you operate three stateful systems instead of one: the Cassandra cluster, the visibility store and the Temporal services that read both. Sizing, backup and recovery have to cover all three, and an outage in the visibility store does not stop workflow execution but does stop search. Before build starts, ask for the documented schema and upgrade steps for your chosen release, and decide whether your team or a partner will run schema changes in each upgrade window. If your team has no Cassandra operating experience, weigh the PostgreSQL option described in the sibling persistence topic, which is often a simpler single-store design for smaller histories.

What you need before connecting Temporal to Cassandra

Cassandra persistence is only one part of a self-hosted Temporal setup. The cards below cover the database versions, server version, visibility store, network placement and access rights your team should settle before running schema setup. Confirm each item against the release notes for the server version you plan to run.

Tested Cassandra versions

Temporal persistence is tested on Cassandra 3.11, 4.0 and 5.0.4 or later. Confirm which of these your organization already operates and whether it is supported by the server line you select. Treat any other Cassandra release as untested until you have verified it in a non-production environment with the same schema tooling. Record the exact version in your architecture decision so later upgrades start from a known baseline.

Persistence docs

Planned Temporal Server version

Pick the server minor line before you build the Cassandra cluster, because release notes can call for schema changes that must run before the server is upgraded. The current release line was published on GitHub with patch releases for earlier minors. Upgrade one minor version at a time, moving to the latest patch of the current minor first. Confirm the matching Helm chart version against the release notes, since older charts do not work with server images 1.30 and later.

Latest server release
1.32.1
Upgrade guide

Operated Cassandra cluster

Confirm that your team already runs the Cassandra cluster, including replication, node capacity, backups and monitoring. Temporal does not provision or tune the cluster for you. Ask who owns repairs, compaction and node replacement, and how failover is tested. Plan the cluster size around the write volume you expect from workflow histories, not only the number of workflows, because history traffic drives the load.

Separate visibility store

Cassandra visibility was removed in Temporal Server 1.24, so a Cassandra persistence deployment still needs a separate visibility store. Choose Elasticsearch, OpenSearch or a supported SQL database and provision it before the first start. Elasticsearch or OpenSearch is recommended for anything beyond a few workflow executions. Confirm the version pairing for your chosen server line, and plan its operations, backups and access controls as a second data system.

Visibility docs

Private network placement

Temporal services should run on hosts that are not reachable from the public internet, with network access restricted to trusted internal networks. Place the frontend, history, matching and worker services, along with the Cassandra and visibility endpoints, inside a private network. Document which clients, workers and administrators can reach the frontend port. Because self-hosted Temporal has no default access control, network isolation is an important early control.

Schema and keyspace rights

Schema setup with temporal-cassandra-tool requires an account that can create and alter keyspaces and tables for both persistence and visibility where applicable. Ask your database team to issue a dedicated schema account, separate from the runtime account the server uses day to day. Confirm whether the runtime account needs only data access, and record who holds the schema credentials. Keep these credentials in your secrets manager and rotate them after the initial setup.

How Temporal services use Cassandra and a visibility store

The diagram starts at the client and SDK workers, which call the Temporal frontend inside the internal network. The frontend hands work to the history and matching services, and history and matching write to Cassandra persistence keyspaces, while visibility queries go to a separate store such as Elasticsearch, OpenSearch or a SQL database. Check that the visibility store is deployed as its own system, because Cassandra visibility was removed in Temporal Server 1.24, and that temporal-cassandra-tool runs before server upgrades.

Temporal services, Cassandra persistence and a separate visibility store inside the trust boundary.

When Cassandra fits a large write-heavy Temporal workload and when PostgreSQL is simpler

Choose Cassandra for self-hosted Temporal only when the workload and the team's operating model both point that way. Start with write volume and history growth. Cassandra is the tested persistence option for large, write-heavy Temporal deployments, and the case for it rests on how much workflow history the cluster must absorb and how fast it grows. Estimate the expected number of workflow executions, events per execution and retention period, then ask your Temporal and database specialists to size the cluster against those numbers. Do not rely on a general rule of thumb. The supported Cassandra line is 3.11, 4.0 and 5.0.4 or later, so confirm which of those your platform team can run and patch.

Next, count the operating skills and stores you already own. Cassandra persistence is only one part of the bill. Since Temporal Server 1.24, Cassandra visibility is no longer available, so a Cassandra deployment also needs Elasticsearch, OpenSearch or a SQL database for visibility. That means an extra store to deploy, back up, upgrade and monitor. If your team already runs Cassandra well and has an Elasticsearch or OpenSearch practice, the added cost is manageable. If not, every additional store adds a recurring operations load and another failure point. Ask who on your team will own schema upgrades with temporal-cassandra-tool and how that work fits into your release calendar.

PostgreSQL is the simpler choice for most teams. Temporal is tested on PostgreSQL 13 to 16, and PostgreSQL can serve as both persistence and advanced visibility, which keeps the store count down. Review the PostgreSQL sibling page for version, schema and sizing details before you commit. Choose PostgreSQL unless your write profile, retention needs or existing Cassandra expertise clearly favor Cassandra. Record the decision with its assumptions, because changing the persistence store later is a migration project, not a configuration change.

Configuring Cassandra persistence step by step

This sequence takes a self-hosted Temporal Server from a planned Cassandra design to a running service with persistence and visibility stores in place and a registered namespace you can describe.

  1. Confirm versions against the persistence docs

    Before building anything, the platform owner checks the Cassandra version you plan to run against the versions Temporal documents as tested for persistence, which are Cassandra 3.11, 4.0 and 5.0.4 or later. Confirm the Temporal Server release you intend to deploy and the matching Helm chart or deployment method in the same pass, since chart versions below 0.73.1 do not work with server images 1.30 and later. Record the chosen versions in your change ticket. The step is done when every component has a version written down and checked against the current persistence and upgrade documentation.

  2. Create the Cassandra cluster and keyspaces

    The database team builds the Cassandra cluster in infrastructure you control, sets replication, authentication and network access for the Temporal hosts, and creates separate keyspaces for the default persistence store and the visibility store. Use distinct credentials for each keyspace so access can be reviewed separately. Confirm the cluster is reachable from the hosts that will run the Temporal services, but not from the public internet. The step is done when a test connection from a Temporal host authenticates to both keyspaces and the replication settings match your design.

  3. Run temporal-cassandra-tool for persistence and visibility schemas

    The platform engineer runs temporal-cassandra-tool against the persistence keyspace and then against the visibility keyspace, creating the schema each store needs for the Temporal Server version you chose. Keep the command output and the schema files used, because they become the record of what was applied. Repeat the tool run whenever a release requires a schema upgrade, and run schema upgrades before server upgrades when the release notes call for them. The step is done when the tool completes without errors and a schema version query against each keyspace returns the version expected for your server release.

  4. Configure server persistence settings

    The platform engineer adds the Cassandra persistence store to the server configuration, including hosts, port, keyspace, credentials source and TLS settings, and points the default store at the persistence keyspace. Secrets should come from your secrets management system rather than plain configuration files. Check the configuration file in version control and have a second reviewer confirm the Cassandra connection values match the environment. The step is done when the configuration validates and the server starts reading the Cassandra store without connection errors in its logs.

  5. Configure a separate visibility store

    Because Cassandra visibility was removed in Temporal Server 1.24, the platform engineer configures a separate visibility store on Elasticsearch, OpenSearch or a SQL database, and sets it as the visibility store in the server configuration. Choose this store based on the visibility requirements you recorded at design time, and confirm the chosen store's version is supported for your server release. The step is done when the visibility store is reachable from the Temporal hosts, its schema is in place, and the server logs show the visibility store initialized.

  6. Start the Temporal services

    The platform engineer starts the Temporal Server services (frontend, history, matching and worker) using the deployment method you selected, whether Docker Compose, Go binaries or Helm charts on Kubernetes. Confirm each service reports healthy and that the services connect to both the persistence and visibility stores. Review the frontend and internode network exposure before the environment is shared with teams. The step is done when all four services are running and the health endpoints return a healthy status on every instance.

  7. Verify namespace registration

    Using the Temporal CLI or an SDK client connected to the frontend, the platform engineer registers a test namespace, then runs a namespace describe call to confirm the namespace is stored and its retention and persistence settings match the design. Run a simple test workflow against the namespace to confirm reads and writes reach Cassandra and the visibility store. Record the describe output as evidence. The step is done when the namespace describe call returns the expected settings and the test workflow appears in visibility queries.

Mapping Temporal stores and schema objects to Cassandra

This table maps each Temporal data class to where it lives in a Cassandra-backed deployment, the tool that creates or changes it, and the upgrade step that touches it. Read it before planning a schema update, because persistence and visibility follow different paths. The main takeaway is that visibility cannot stay on Cassandra from Temporal Server 1.24, so its store needs to be planned alongside the persistence keyspace.

Data classWhere it livesManaged byChanged by upgrade
Workflow execution, history and task dataPersistence keyspace in your Cassandra clustertemporal-cassandra-tool for schema, Temporal Server for reads and writesSchema update first when release notes call for it, then the server upgrade
Namespace and cluster metadataPersistence keyspacetemporal-cassandra-tool for schema, Temporal Server for runtime accessSchema update only when the target release's notes require it
Schema version recordsPersistence keyspace, tracked by the schema toolingtemporal-cassandra-toolAdvanced by each schema update; confirm the expected version in the release notes before the server moves
Visibility recordsNot on Cassandra from Temporal Server 1.24; use Elasticsearch, OpenSearch or a SQL databaseThe chosen visibility store and its own schema setupFollows its own path; Cassandra visibility is no longer an option on 1.24 and later
Legacy Cassandra visibility dataVisibility tables on Cassandra in servers before 1.24temporal-cassandra-tool for the existing schemaConfirm with the visibility docs how existing data is handled before crossing 1.24
Server binaries and configurationNot stored in CassandraDocker Compose, Helm chart or Go binariesMoved one minor version at a time, on the latest patch of each minor first

Securing Cassandra and Temporal together

A Temporal cluster on Cassandra has two data paths to protect: the connection from Temporal services to the Cassandra cluster, and the API and internode traffic inside Temporal itself. The cards below cover the controls that sit on each path, plus the default settings that leave a self-hosted service open unless you change them.

Cassandra authentication and TLS

Temporal persistence and visibility both connect to Cassandra, so every credential and connection used by the Temporal services must be scoped to the keyspaces they need. Use Cassandra's own authentication, encrypt client-to-node traffic, and confirm the role and TLS settings in your cluster rather than assuming defaults. Your Cassandra team should own the hardening baseline, and the Temporal configuration should reference it. Record which roles can read or alter the Temporal schema, since schema upgrades need elevated rights.

Temporal persistence docs

Keeping Temporal off the public internet

Temporal's deployment guidance says its services should run on hosts that cannot be reached from the public internet, with network access limited to trusted internal networks. Apply that to the frontend, the internode ports, the Web UI and the Cassandra cluster itself. Check that security groups, network policies or firewalls block inbound access from outside your trusted networks, and confirm that Cassandra nodes are reachable only from the Temporal services and administrators.

Deployment guide

mTLS between internode and frontend

Temporal supports mTLS with separate settings for internode traffic between its services and for frontend traffic from clients and workers. Configure both paths, so each service verifies the certificate of its peer and clients present a certificate the frontend trusts. Plan certificate issuance, rotation and revocation before go-live, and confirm that the certificate authority and key storage meet your own policy. Test a rotation in a non-production cluster, because an expired certificate can stop every worker at once.

Self-hosted security docs

The default noopAuthorizer risk

If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. Anyone who can reach the frontend can start, signal, terminate or reset workflows in any namespace. Configure an Authorizer before any environment holds production data, and test it by attempting cross-namespace calls with a low-privilege identity. Treat the frontend as a privileged entry point even when the network path looks restricted.

ClaimMapper and Authorizer options

A ClaimMapper maps JWT or certificate claims to namespace roles, and an Authorizer plugin decides whether each request is allowed. Together they turn your identity provider's groups or certificate subjects into per-namespace permissions for workers, clients and operators. Write the role model first: which teams own which namespaces, and which identities may run administrative calls. Confirm with your identity team how claims are issued, and test that a worker for one namespace cannot poll or start workflows in another.

Payload encryption with codecs

Workflow inputs, results and activity payloads are stored in Cassandra in the form the SDK sends them, so anyone with database access can read sensitive business data unless it is encrypted. Temporal supports payload encryption through custom codecs, and a codec server can decrypt payloads for the Web UI and CLI for authorized users. Decide which fields carry regulated data, define key ownership and rotation, and confirm with your security team that the codec server is itself access-controlled.

Common Cassandra integration failures and fixes

This table lists the failures teams most often hit when running self-hosted Temporal on Cassandra, with the likely cause and the fix for each. Use it as a checklist during setup and before every upgrade, since most of these problems appear at schema setup or at the first server start.

FailureLikely causeFix
Schema tool run against the wrong keyspacetemporal-cassandra-tool was pointed at a keyspace name that differs from the one the Temporal Server reads, so tables are created in one place and the server looks in another.Confirm the keyspace names in the server persistence config match the tool arguments, then rerun the schema setup against the intended keyspace and check the tables exist there.
Server started before schema upgradeThe server binary was upgraded and started before the persistence and visibility schemas were brought to the new version, so the server expects tables or columns that are missing.Stop the server, run the schema upgrade with temporal-cassandra-tool first, then start the new server. Follow the order in the release notes for each step.
Visibility store missing after moving to 1.24 or laterCassandra visibility was removed in Temporal Server 1.24, so a configuration that still points visibility at Cassandra has no supported store to use.Provision Elasticsearch, OpenSearch or a supported SQL database for visibility before upgrading, then point the visibility configuration at it and set up its schema.
Helm chart below 0.73.1 with server 1.30 or laterThe chart version pins or templates that predate 0.73.1 do not work with server images 1.30 and later, so pods fail to start or start with a wrong configuration.Upgrade the Helm chart to 0.73.1 or later before moving the server image to 1.30 or later, and review the chart values against the new release.
Unsupported Cassandra versionThe cluster runs a Cassandra release outside the versions Temporal tests, such as one below 3.11 or a 4.x or 5.x build that is not the tested release.Check the tested Cassandra versions in the persistence documentation, plan a cluster upgrade within the supported range, and retest schema setup before going live.
Schema changes skipped during minor upgradesTeams jump several minor versions at once, which the upgrade guidance does not support, so schema and server changes do not line up.Upgrade one minor version at a time, moving to the latest patch of the current minor first, and run each schema step as the release notes require.

Upgrading Cassandra-backed Temporal one minor version at a time

A cluster on the 1.30 line should first move to the latest patch of that line, which the Temporal GitHub releases list as v1.30.8, published on October 12, 2026. Only after that patch is running should the team plan the step to 1.31. Temporal guarantees backward compatibility only between two successive minor versions, so jumping straight to 1.32 is not a supported shortcut. Confirm the patch and any schema notes in the release notes before you start.

  • Patch first: Move the running 1.30 servers to v1.30.8 and verify health before any other change.
  • Schema before server: If the 1.31 release notes call for a Cassandra schema update, run the temporal-cassandra-tool upgrade before starting 1.31 servers.
  • One hop at a time: Treat 1.31 as a separate change window with its own rollback point.
  • Helm check: Confirm your chart version is at least 0.73.1 before running server images 1.30 and later.
  • Visibility store: Confirm the separate Elasticsearch, OpenSearch or SQL visibility store is at a version the target server supports.

Before leaving this step, check that workflows complete and that the schema version matches the release notes.

Questions buyers ask about Temporal on Cassandra

What does a Temporal on Cassandra implementation cost?

The cost is mostly labor and infrastructure, and the quote depends on the written scope. Your side pays for the Cassandra cluster, the visibility store (Elasticsearch, OpenSearch or a SQL database), compute for the Temporal services and workers, backups and monitoring. A partner's fee covers planning, schema setup, service deployment, security configuration, testing and handover. Costs that recur include cluster capacity, storage growth, search infrastructure and support. Effort rises with the number of namespaces, the required security controls (mTLS, authorization, SSO), the number of environments and whether you need a tested upgrade path. Ask any quote to separate one-time build work from ongoing support and to list which items the client provides.

How long does a typical Temporal Cassandra setup take?

Duration depends on how ready your environment is and how much of the design is still open. The main drivers are whether a Cassandra cluster already exists and meets the tested versions, whether a visibility store is in place, how many environments need building, the depth of security and identity work, and how many workflow types need load testing before go-live. A team with a working Cassandra platform and a settled visibility choice can move faster than one building both from scratch. Ask for a written timeline that lists the dependencies on your side, such as access approvals and network changes, because those often set the critical path.

What must our team provide before the work starts?

Plan to provide the following before implementation begins:

  • A Cassandra cluster running a tested version (3.11, 4.0, or 5.0.4 or later), with capacity, replication and backups defined by your database owners.
  • A visibility store, either Elasticsearch, OpenSearch or a supported SQL database, since Cassandra visibility was removed in Temporal Server 1.24.
  • Hosts or Kubernetes capacity for Temporal services and workers, placed on networks that are not reachable from the public internet.
  • Access to cloud accounts or data centers, service accounts, certificates and a named owner for the identity provider.
  • Change windows and an approval path for production.

Confirm each item with your platform and security teams early, since access and network approvals often take longer than the build.

Can our internal team run Temporal on Cassandra without a partner?

Yes, many teams do this with internal staff, provided they have people who understand Cassandra operations, Temporal's server and schema upgrade model, and the security settings. The Temporal server is licensed under the MIT license, and self-hosted deployment options include Docker Compose, Go binaries and Helm charts. The risk areas are the schema upgrade sequence, where the release notes call for schema changes before server upgrades, and the default noopAuthorizer, which allows every API request until an Authorizer is configured. Consider a partner if your team lacks Cassandra or Temporal experience, needs evidence for a compliance assessment, or needs the work finished on a fixed date. Ask a partner for a written scope before you decide.

Why does Temporal on Cassandra need a separate visibility store?

Cassandra handles workflow persistence, but it does not serve as the visibility store in current Temporal releases. Cassandra visibility was removed in Temporal Server 1.24, so visibility runs on Elasticsearch, OpenSearch or a SQL database. Visibility powers workflow listing and search, including custom search attributes. Temporal's documentation recommends Elasticsearch or OpenSearch for anything beyond a few workflow executions. Supported OpenSearch versions start at 2 from Temporal Server 1.30.1, and Elasticsearch 7 and 8 are supported. The visibility store adds its own sizing, backups, upgrades and access controls, so plan it as a second system from the start.

When is PostgreSQL a simpler choice than Cassandra?

PostgreSQL is usually simpler when your team already runs it well and your workload does not require Cassandra's write scale. Temporal's persistence docs list PostgreSQL 13 to 16 as tested, and PostgreSQL can also serve as an advanced visibility store from Temporal Server 1.20, which can reduce the number of systems you operate. Cassandra makes more sense when you already run a Cassandra platform, expect large write-heavy history growth, or have staff experienced with its operations. Compare the two options on your existing skills, backup tooling, expected write volume and the number of data stores your team must operate.

What does the schema setup involve and what can go wrong?

Schema setup creates the Cassandra keyspaces and tables that Temporal needs for persistence and visibility, and Temporal upgrades those schemas with temporal-cassandra-tool. The usual failure points are a Cassandra version outside the tested range, keyspace replication settings that do not match your cluster topology, and running a server upgrade before the schema change its release notes require. Verify the schema version on each environment before starting services, and rehearse the upgrade on a non-production copy. Follow Temporal's rule to upgrade one minor version at a time, moving first to the latest patch of the current minor, as described in the upgrade documentation.

What security settings should we verify before go-live?

Verify four areas before production traffic reaches the cluster. First, Temporal services should run on hosts that are not reachable from the public internet, with network access limited to trusted internal networks. Second, configure mTLS for internode and frontend traffic. Third, set an Authorizer and a ClaimMapper, because the default noopAuthorizer allows every API request. Fourth, configure OIDC single sign-on for the Web UI and decide how payloads will be encrypted through custom codecs. Ask the implementation team to document each setting and to provide test evidence, and ask an independent auditor how those records will be used in your assessment. DeployOpen prepares controls and evidence but does not issue audit reports.

How DeployOpen scopes and delivers a Cassandra-backed Temporal deployment

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including the cloud accounts, data centers or air-gapped networks where Temporal would run. For a Cassandra-backed Temporal deployment, that means the work covers the Temporal Server services, the Cassandra cluster for persistence, a separate visibility store, worker hosts and the network path between them. Most engagements are fixed-scope, so the scope, deliverables and timelines are agreed in writing before any work starts. Before that agreement, the scoping conversation should settle which Temporal Server minor line you will run, which visibility store you have chosen, how the services will be deployed (Helm, Docker Compose, binaries or a custom Go build), and who owns Cassandra operations after handover.

A written scope for this topic should name each deliverable: the Cassandra keyspaces and their schema setup with temporal-cassandra-tool, the visibility store and its schema, the Authorizer and ClaimMapper settings, mTLS between services, the backup approach for Cassandra, the upgrade runbook and the operator documentation. Ask for these items to be listed individually so you can check them at acceptance. Ask also what testing is included, such as a restore test, a failover test of a Cassandra node and a retest after fixes. Confirm with your own team which environments, access, change windows and data classification rules apply, because those change the effort more than the technology does.

DeployOpen does not publish a price list, so a quote follows from the written scope. The main cost components are the people doing the design, build, hardening, testing and documentation, the infrastructure you pay your cloud or data center provider for, and any licenses or managed services you choose separately. Some costs are one-time, such as the initial build and acceptance testing. Others recur, such as running upgrades, patching Cassandra and the visibility store, and supporting workers. Ongoing support, upgrades and continuous testing are available as retainers, which you can scope separately from the build. Ask each quote to show one-time and recurring items separately, state its assumptions about your environment, and say which items change if you add a visibility store, a second site or a larger cluster.

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.