vs

Apache ShardingSphere vs Citus

Apache ShardingSphere: Apache sharding middleware that adds sharding, read/write splitting and encryption over MySQL or Postgres. Citus: Postgres extension that shards tables across nodes for multi-tenant SaaS and real-time analytics.

key differences

  • Licensing: Apache ShardingSphere is open source (permissive) (Apache License 2.0); Citus is open source (copyleft) (GNU AGPL v3).
  • Horizontal scaling is addon in Apache ShardingSphere and native in Citus.
  • Transactions: Apache ShardingSphere offers limited ACID; Citus offers full.
  • Only Apache ShardingSphere has encryption at rest.
  • Only Citus has full-text search, vector search, geospatial, json, triggers.
  • Apache ShardingSphere can run embedded in your application process.

choose apache-shardingsphere for

  • +Scaling Java/Spring applications on sharded MySQL
  • +Transparent column encryption and data masking
  • +Read/write splitting across replicas
  • +Shadow databases for production load testing

best at · OLTP

choose citus for

  • +Multi-tenant B2B SaaS sharded by customer
  • +Real-time analytics dashboards over event data
  • +Time-series and IoT ingestion with rollups
  • +Scaling an existing Postgres app without changing databases

best at · OLTP, Real-time analytics, HTAP

overview
Primary model
Relational
Relational
Also supports
–
Document, Columnar / OLAP, Spatial
Type
Database engine
Extension
Status
Active
Active
Developer
Apache Software Foundation
Microsoft (Citus Data)
First release
2016
2016
Latest version
5.5.3 (Feb 28, 2026)
14.3.0 (Oct 23, 2026)
License
Open source (permissive)Apache License 2.0
Open source (copyleft)GNU AGPL v3
Free tier
✓
✓
popularity
WhichDB Score
9.5
21.1
Rank
#308
#144
GitHub stars
20.8K
12.8K
Stack Overflow questions
7
149
scale & guarantees
Comfortable data size
Large (≤ 1 PB)
Large (≤ 1 PB)
Horizontal scaling
Addon
Native
Multi-region
None
None
ACID
Limited
Full
Consistency
Strong, Eventual
Strong
Schema
Strict
Strict
Architecture
Distributed, Client server, Embedded
Distributed, Client server
deployment
Self-hosted
✓
✓
Vendor-managed cloud
—
✓
Serverless
—
—
Embedded
✓
—
Edge
—
—
Clouds
–
Azure
capabilities
Transactions
✓
✓
Joins
✓
✓
Secondary indexes
✓
✓
Full-text search
—
✓
Vector search
—
✓
Geospatial
—
✓
JSON
—
✓
Change data capture
✓
✓
Triggers
—
✓
Stored procedures
—
✓
Materialized views
—
✓
TTL / expiry
—
—
Pub/Sub
—
—
Columnar storage
—
✓
In-memory
—
—
Durable persistence
✓
✓
Compression
—
✓
Encryption at rest
✓
—
Role-based access
✓
✓
Time travel
—
—
Branching
—
—
Online schema changes
—
✓
Streaming ingest
—
—
Offline sync
—
—
Runs in WebAssembly
—
—
interfaces
Query languages
SQL, DistSQL
SQL, PL/pgSQL
Client languages
Java
Java, Python, JavaScript, Go, Ruby, C#, PHP, Rust
Best for
OLTP
OLTP, Real-time analytics, HTAP, Time-series

Apache ShardingSphere vs Citus: FAQ

What is the difference between Apache ShardingSphere and Citus?

Apache ShardingSphere: Apache sharding middleware that adds sharding, read/write splitting and encryption over MySQL or Postgres. Citus: Postgres extension that shards tables across nodes for multi-tenant SaaS and real-time analytics. Licensing: Apache ShardingSphere is open source (permissive) (Apache License 2.0); Citus is open source (copyleft) (GNU AGPL v3). Horizontal scaling is addon in Apache ShardingSphere and native in Citus. Transactions: Apache ShardingSphere offers limited ACID; Citus offers full.

When should I choose Apache ShardingSphere over Citus?

Choose Apache ShardingSphere for scaling Java/Spring applications on sharded MySQL; transparent column encryption and data masking; and read/write splitting across replicas. Choose Citus for multi-tenant B2B SaaS sharded by customer; real-time analytics dashboards over event data; and time-series and IoT ingestion with rollups.

Is Apache ShardingSphere or Citus more popular?

Citus ranks #144 on the WhichDB Score (21.1/100) and Apache ShardingSphere ranks #308 (9.5/100). Popularity is not fit: check the requirements that matter for your project.

Are Apache ShardingSphere and Citus open source?

Yes. Apache ShardingSphere is open source. License: Apache License 2.0. Yes. Citus is open source. License: GNU AGPL v3.