citus
Citus is an open-source PostgreSQL extension that distributes data and queries across multiple nodes, enabling horizontal scaling for databases that outgrow a single server. It maintains PostgreSQL compatibility while adding sharding, columnar storage, and a distributed query engine.
Key facts
Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.
| Field | Value |
|---|---|
| Repository | citusdata/citus |
| Owner | citusdata |
| Primary language | C |
| License | AGPL-3.0 — OSI-approved |
| Stars | 12.6k |
| Forks | 780 |
| Open issues | 1.1k |
| Latest release | v14.1.0 (2026-07-01) |
| Last updated | 2026-07-08 |
| Source | https://github.com/citusdata/citus |
What citus is
Citus extends PostgreSQL with distributed table sharding, reference table replication, a distributed query router, columnar compression, and multi-node coordination. Written in C, it runs as a loadable extension and preserves PostgreSQL semantics for transactions, joins, and constraints across the cluster.
Get the citus source
Clone the repository and explore it locally.
git clone https://github.com/citusdata/citus.gitcd citus# follow the project's README for install & configurationNeed it deployed, integrated, or customized instead? DEV.co ships production installs.
Best use cases
Implementation considerations
- Identify sharding key early: choice of distribution column is critical to avoid hotspots and cross-shard joins; schema refactoring post-deployment is expensive.
- Network latency and bandwidth: inter-node communication overhead increases with cluster size and cross-shard query complexity; monitor and test with production-like data.
- Backup and disaster recovery: multi-node clusters require distributed backup strategy; plan for coordinator and worker node failures.
- Connection pooling: each worker node consumes connections; configure pooling to avoid connection saturation on large clusters.
- Data rebalancing: moving shards across nodes during scaling requires careful planning to minimize downtime; test in staging first.
When to avoid it — and what to weigh
- AGPL licensing constraints — If your deployment or product requires avoiding copyleft obligations, Citus's AGPL-3.0 license requires careful review; commercial licensing via Citus Data may be required for proprietary use.
- Simple single-server workloads — Adding cluster complexity is unnecessary if your data fits on one PostgreSQL node with acceptable performance; evaluate scaling need before adoption.
- Strict isolation or air-gapped requirements — Citus cluster setup and management require inter-node communication and coordination; highly restricted network environments may face operational friction.
- Deeply nested or highly normalized schemas — Distributed joins across many tables or frequent cross-shard operations can add latency; star schemas and denormalization are better suited to Citus.
License & commercial use
Citus is licensed under AGPL-3.0 (GNU Affero General Public License v3.0), a copyleft license requiring source disclosure and license propagation for derivative works and network services.
Commercial use of Citus requires careful license analysis. AGPL-3.0 is a copyleft license; using Citus in a proprietary application or offering it as a service likely triggers disclosure obligations. Citus Data (the commercial entity behind the project) offers commercial licenses separate from the open-source version. Organizations must evaluate their deployment model—embedded use, managed service, or network-exposed—and obtain appropriate licensing or legal counsel. No assumption of commercial freedom should be made without explicit review.
DEV.co evaluation signals
Editorial assessment — not user reviews. Directional, with an explicit confidence level.
| Signal | Assessment |
|---|---|
| Maintenance | Active |
| Documentation | Strong |
| License clarity | Needs review |
| Deployment complexity | Moderate |
| DEV.co fit | Good |
| Assessment confidence | High |
Standard PostgreSQL security applies (authentication, SSL, role-based access). Distributed query execution introduces data flow across network; node-to-node communication should be encrypted and restricted to private networks in production. No public security audit data provided. Cluster coordinator is a single point of control; compromise exposes all nodes. Regular patching for both PostgreSQL and Citus extension required. Organizations should review deployment architecture, network isolation, and backup/recovery procedures for data protection.
Alternatives to consider
Cockroach DB
Distributed SQL with ACID transactions and automatic sharding; proprietary licensing but no copyleft; more operational overhead for hybrid deployments.
Vitess (MySQL sharding middleware)
Open-source sharding proxy for MySQL; avoids tight schema coupling but requires explicit shard-aware queries and lacks Citus's integrated columnar storage.
Amazon Aurora (PostgreSQL compatible)
Managed PostgreSQL with read replicas and auto-scaling; simpler operations but limited horizontal write scaling; single-region latency constraints.
Build on citus with DEV.co software developers
Evaluate Citus for your distributed database needs. Test single-node deployment with Docker, review AGPL licensing requirements for your use case, and consult our team on cluster architecture and shard strategy.
Talk to DEV.coRelated on DEV.co
Explore the category and the services that help you build with it.
citus FAQ
Can I use Citus in a commercial product without releasing my code?
Do I need to rewrite my application to use Citus?
What happens if a worker node goes down?
How do I handle uneven shard distribution?
Software development & web development with DEV.co
DEV.co helps companies turn open-source tools like citus into production software. Our software development services cover the full lifecycle — architecture, web development, integration, and maintenance — delivered by software developers and web developers who ship. Engage our software development agency to implement or customize it for your open-source databases stack.
Ready to scale PostgreSQL horizontally?
Evaluate Citus for your distributed database needs. Test single-node deployment with Docker, review AGPL licensing requirements for your use case, and consult our team on cluster architecture and shard strategy.