Key takeaway
- Cloud native databases explained: how they differ from traditional ones, running them on Docker and Kubernetes, and when to choose a managed service.
What is a cloud-native database?
A cloud-native database is a database built to run on cloud infrastructure, usually in containers orchestrated by Kubernetes, so it can scale out across nodes, recover from node failure and be operated through automation. The term describes how the database is built and run, not only where it is hosted. A traditional engine installed on a cloud virtual machine is hosted in the cloud but is not necessarily cloud native.
For an enterprise architect the practical question is which operating model you want: a managed service run by the provider (see database as a service), a distributed database you run yourself on Kubernetes, or a conventional database on Kubernetes managed by an operator (see PostgreSQL on Kubernetes). This guide helps you choose between them and shows what to check first.
How do cloud-native databases differ from traditional databases?
The difference is mostly in how scale, failure and change are handled. The table compares the design intent; individual products vary, so confirm each point on the vendor documentation.
| Area | Traditional database | Cloud-native database |
|---|---|---|
| Scaling | Usually scale up one server | Designed to add or remove nodes as load changes |
| Failure | Failover is often scripted or manual | Replication and recovery are part of the design or handled by an operator |
| Operations | Installed and patched by a DBA team | Declared as configuration, version controlled and automated |
| Storage | Local disks or fixed volumes | Persistent volumes or provider-managed storage (see cloud-native storage) |
| Cost model | Capacity bought in advance | Capacity matched to demand, but only if you actively right-size it |
Do cloud-native databases need Kubernetes?
No. A managed cloud database needs no Kubernetes on your side, and a database can run in Docker containers on a single host. Kubernetes becomes the common choice when you want one platform for applications and data, with the same deployment pipeline for both. Running a database there is real work, because Kubernetes was built first for stateless workloads and a database brings state, storage and ordering requirements.
Storage and identity
According to the StatefulSet documentation, a StatefulSet runs a group of Pods and maintains a sticky identity for each, which suits applications that need persistent storage or a stable, unique network identity. Databases are normally deployed this way so each node keeps its own volume and name after a restart. Confirm the details of volume claims and deletion behaviour on that page before you design backups.
Containers and Docker
In Docker, keep data outside the container filesystem. The official PostgreSQL image page documents the data directory and the required password variable, and its mount path changed between major versions, so check it for the version you run. A container that loses its volume loses the database.
Automated operations
According to the Kubernetes operator documentation, operators are software extensions that use custom resources to manage applications and follow the control loop principle. For databases, an operator typically automates installation, upgrades, failover and backup. See Kubernetes operators for the pattern in more depth.
Which cloud-native database options are there?
Options fall into three groups. The named examples below are ones whose own documentation describes the behaviour; check each vendor page for current editions, licences and managed offerings before you shortlist.
| Option | What it is | When it fits | Source |
|---|---|---|---|
| Managed database service | The provider runs patching, backups and failover | You want the least operational effort and accept provider limits | See database as a service |
| Distributed SQL, for example CockroachDB | Scalable, consistent, PostgreSQL-compatible SQL; each range is replicated to at least 3 nodes by default and uses Raft consensus | You need horizontal scale and survival of node failure with SQL semantics | According to its docs, CockroachDB architecture overview |
| Distributed SQL, for example YugabyteDB | Open source distributed SQL with a PostgreSQL-compatible API (YSQL) and a Cassandra-compatible API (YCQL) | You want PostgreSQL compatibility with distributed deployment, including on Docker and Kubernetes | According to its docs, YugabyteDB documentation |
| Conventional engine plus an operator | A familiar database managed by a Kubernetes operator | You keep an existing engine and want automation on your own platform | See PostgreSQL on Kubernetes |
If you are still deciding between data models, read SQL, NoSQL and NewSQL first. Sizing limits and prices change often, so quote them from the provider page at the time you decide, not from an older article.
What should you check before adopting one?
- Workload fit. Transactional, analytical, key-value or search workloads need different engines. Write down consistency, latency and recovery targets first.
- Operating model. Decide who carries the pager: the provider, your platform team or both. A self-run database needs tested backup and restore, not just a backup job.
- Data location. Regulation and data gravity can fix where data must live. Confirm regions and replication topology against your obligations.
- Portability. Multi-cloud deployment reduces lock-in but adds operational cost. Choose it for a stated reason, not by default.
- Delivery pipeline. Schema changes, upgrades and rollbacks belong in version control and CI/CD; see DevOps for databases.
How do you govern, secure and cost a cloud-native database?
| Concern | What to do |
|---|---|
| Access | Use least-privilege roles, strong authentication and separate credentials per service; keep secrets out of images and source control |
| Encryption | Encrypt data in transit between clients, nodes and replicas, and encrypt stored data and backups |
| Resilience | Spread replicas across zones and, where required, regions; rehearse restores on a schedule |
| Observability | Collect database metrics and logs alongside application telemetry so incidents are traced end to end |
| Cost | Track storage, replica count and cross-zone traffic; right-size regularly because elasticity saves money only when someone acts on it |
When should you not run the database on Kubernetes yourself?
Choose a managed service when your team has no database reliability skills, when recovery objectives are strict and the provider already meets them, or when the database is not a differentiator. Run it yourself when you need control over placement, versions or cost at scale, and you can staff the on-call work. For the wider platform picture see cloud-native architecture.
What is a sensible adoption sequence?
- Pick one non-critical service and one engine, and define recovery and performance targets.
- Deploy it through code with persistent storage, an operator or managed service, and monitoring.
- Run failure drills: kill a node, restore from backup, upgrade a minor version.
- Add security controls and cost reporting, then widen to more services.
Watch the walkthrough
The video below shows the topic in practice.
Where do AI agents fit?
AI agents read and write operational data continuously, so the databases behind them must scale and recover without manual intervention. ElixirClaw is an agentic OS platform to build, orchestrate and govern AI agents and automation workflows while keeping humans in control, and ElixirData keeps governed context, versioned policy and decision traces in one decision layer above AI agents. AgentAnalyst lets teams ask questions of enterprise data in plain language and get real-time insights.
To map the data and context your agents depend on, and the policy behind each decision, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
Do cloud-native databases need Kubernetes?
No. Managed services need none on your side and a database can run in Docker. Kubernetes is common when you want one platform for applications and data, using StatefulSets for stable identity and storage and operators for automation.
How do cloud-native databases differ from traditional databases?
They are designed to scale out across nodes, tolerate node failure and be operated through automation, where traditional databases usually scale up on one server. Confirm specifics on each vendor page.
What are examples of cloud-native databases?
Distributed SQL databases such as CockroachDB and YugabyteDB, and conventional engines run by an operator or offered as managed services. Check each vendor page for current editions.
Can stateful workloads run reliably in containers?
Yes, with persistent storage, tested backup and restore, and an operator or managed service handling the database lifecycle. The effort is higher than for stateless services.
Should I choose a managed service or run the database myself?
Choose managed when you lack database operations skills or the provider meets your recovery targets. Run it yourself when you need control over placement, versions or cost and can staff on-call.
How do I stop cloud-native database costs growing?
Track storage, replica count and cross-zone traffic, and right-size on a schedule. Elasticity only saves money when capacity is actually reduced after demand falls.
Next Steps with Cloud Native Databases
Talk to our experts about implementing compound AI system, How Industries and different departments use Agentic Workflows and Decision Intelligence to Become Decision Centric. Utilizes AI to automate and optimize IT support and operations, improving efficiency and responsiveness.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE