AsterixDB

active

by Apache Software Foundation (originally UC Irvine and UC Riverside) · since 2013 · also known as Apache AsterixDB, ASTERIX

Apache parallel database for semi-structured JSON data with SQL++, LSM storage and spatial/text indexes.

documentspatialdatabase engineopen source (permissive)mature

Overview

Apache AsterixDB is a shared-nothing parallel database for semi-structured data that began as an NSF-funded UC Irvine and UC Riverside project in 2009, was first released in 2013 and became an Apache top-level project in April 2016. It stores JSON-like ADM records in partitioned LSM trees with B+tree, R-tree and inverted keyword indexes, runs queries in SQL++ (SQL extended for nested data) on the Hyracks dataflow engine, and can also query external data in HDFS or object stores and ingest continuously via data feeds. Transactions are record-level, NoSQL-style. Couchbase's Analytics service is built on it, and commits remain frequent, but formal Apache releases are slow: 0.9.9 (March 2024) is the current stable version.

Strengths & trade-offs

Strengths

  • +SQL++ handles nested and heterogeneous JSON with full join and aggregation power
  • +Partitioned LSM storage sustains high ingest while keeping secondary indexes current
  • +R-tree spatial, inverted keyword and B+tree indexes in one engine
  • +Queries both managed datasets and external data in HDFS or object storage
  • +Apache-licensed, with production lineage through Couchbase Analytics

Trade-offs

  • −Infrequent formal releases (0.9.9 in 2024) despite active commits
  • −Small community outside academia and Couchbase
  • −Only record-level transactions; no multi-statement ACID
  • −Few managed offerings and limited ecosystem tooling

Great for

  • +Analytics over large semi-structured JSON datasets
  • +Spatial and text queries over social media or sensor feeds
  • +Database systems research and teaching (SQL++, LSM, parallel execution)
  • +Querying data lakes on HDFS or object storage alongside managed data

Think twice for

  • −Low-latency OLTP application backends
  • −Teams wanting a commercially supported, frequently released product

Capabilities

Native or official first-party support · 8 of 25 tracked

✓Joins
✓Secondary indexes
✓Full-text search
✓Geospatial
✓JSON
✓Durable persistence
✓Compression
✓Streaming ingest
–Transactions
–Vector search
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Large · ≤ 1 PB
Horizontal scaling
Native
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Flexible
Architecture
Distributed, Client server
Query languages
SQL++, AQL (legacy)

Hash-partitions datasets across nodes and executes queries in parallel on Hyracks; designed for clusters of commodity machines.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsHTTP query service, JDBC
client languagesJava

Alternatives to AsterixDB

Compare all→
Couchbase ServerDocument27.5

Memory-first distributed JSON database with SQL++, search, vector indexes and mobile sync.

asterixdb vs couchbase →
Apache Spark SQLRelational50.3

Spark's SQL and DataFrame engine for large-scale batch, streaming and lakehouse processing.

asterixdb vs apache-spark-sql →
TrinoRelational49.9

Fast distributed SQL query engine for federated analytics across lakes and databases.

asterixdb vs trino →
Apache DruidColumnar / OLAP35.0

Real-time analytics database for sub-second slice-and-dice over streaming event data.

asterixdb vs apache-druid →
MongoDBDocument80.5

The default document database: flexible BSON documents, rich queries and built-in sharding.

asterixdb vs mongodb →
ClickHouseColumnar / OLAP69.8

Open-source columnar OLAP database known for very fast aggregations over billions of rows.

asterixdb vs clickhouse →

AsterixDB FAQ

What is AsterixDB?

AsterixDB is a document database by Apache Software Foundation (originally UC Irvine and UC Riverside), first released in 2013. Apache AsterixDB is a shared-nothing parallel database for semi-structured data that began as an NSF-funded UC Irvine and UC Riverside project in 2009, was first released in 2013 and became an Apache top-level project in April 2016. It stores JSON-like ADM records in partitioned LSM trees with B+tree, R-tree and inverted keyword indexes, runs queries in SQL++ (SQL extended for nested data) on the Hyracks dataflow engine, and can also query external data in HDFS or object stores and ingest continuously via data feeds. Transactions are record-level, NoSQL-style. Couchbase's Analytics service is built on it, and commits remain frequent, but formal Apache releases are slow: 0.9.9 (March 2024) is the current stable version.

Is AsterixDB open source?

Yes. AsterixDB is open source. License: Apache License 2.0.

Does AsterixDB support ACID transactions?

Partly. AsterixDB offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does AsterixDB scale horizontally?

AsterixDB scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at large scale (≤ 1 PB).

How can I run AsterixDB?

You can self-host it.

What is AsterixDB best for?

AsterixDB is a strong fit for analytics over large semi-structured JSON datasets; spatial and text queries over social media or sensor feeds; and database systems research and teaching (SQL++, LSM, parallel execution). Think twice for low-latency OLTP application backends.

What are the best alternatives to AsterixDB?

Common alternatives to AsterixDB include Couchbase Server, Apache Spark SQL, Trino, Apache Druid and MongoDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is AsterixDB?

AsterixDB ranks #519 of 844 databases on the WhichDB Score (1.7/100), and #44 among document databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.