状态存储

下表列出了Dapr状态管理模块在不同层次上支持的状态存储。了解如何为Dapr状态管理配置不同的状态存储。

Table headers to note:

Header Description Example
Status Component certification status Alpha
Beta
Stable
Component version The version of the component v1
Since runtime version The version of the Dapr runtime when the component status was set or updated 1.11

Generic

Component CRUD Transactional ETag TTL Actors Query Status Component version Since runtime version
Aerospike ✅ Transactions: Not supported ✅ TTL: Not supported Actors: Not supported Query: Not supported Alpha v1 1.0
Apache Cassandra ✅ Transactions: Not supported ETag: Not supported ✅ Actors: Not supported Query: Not supported Stable v1 1.9
CockroachDB ✅ ✅ ✅ ✅ ✅ ✅ Stable v1 1.10
Couchbase ✅ Transactions: Not supported ✅ TTL: Not supported Actors: Not supported Query: Not supported Alpha v1 1.0
etcd ✅ ✅ ✅ ✅ ✅ Query: Not supported Beta v2 1.12
Hashicorp Consul ✅ Transactions: Not supported ETag: Not supported TTL: Not supported Actors: Not supported Query: Not supported Alpha v1 1.0
Hazelcast ✅ Transactions: Not supported ETag: Not supported TTL: Not supported Actors: Not supported Query: Not supported Alpha v1 1.0
In-memory ✅ ✅ ✅ ✅ ✅ Query: Not supported Stable v1 1.9
JetStream KV ✅ Transactions: Not supported ETag: Not supported TTL: Not supported Actors: Not supported Query: Not supported Alpha v1 1.7
Memcached ✅ Transactions: Not supported ETag: Not supported ✅ Actors: Not supported Query: Not supported Stable v1 1.9
MongoDB ✅ ✅ ✅ ✅ ✅ ✅ Stable v1 1.0
MySQL & MariaDB ✅ ✅ ✅ ✅ ✅ Query: Not supported Stable v1 1.10
Oracle Database ✅ ✅ ✅ ✅ ✅ Query: Not supported Beta v1 1.7
PostgreSQL v1 ✅ ✅ ✅ ✅ ✅ ✅ Stable v1 1.0
PostgreSQL v2 ✅ ✅ ✅ ✅ ✅ Query: Not supported Stable v2 1.13
Redis ✅ ✅ ✅ ✅ ✅ ✅ Stable v1 1.0
RethinkDB ✅ Transactions: Not supported ETag: Not supported TTL: Not supported Actors: Not supported Query: Not supported Beta v1 1.9
SQLite ✅ ✅ ✅ ✅ ✅ Query: Not supported Stable v1 1.11
Zookeeper ✅ Transactions: Not supported ✅ TTL: Not supported Actors: Not supported Query: Not supported Alpha v1 1.0

Amazon Web Services (AWS)

Component CRUD Transactional ETag TTL Actors Query Status Component version Since runtime version
AWS DynamoDB ✅ ✅ ✅ ✅ ✅ Query: Not supported Stable v1 1.10

Cloudflare

Component CRUD Transactional ETag TTL Actors Query Status Component version Since runtime version
Cloudflare Workers KV ✅ Transactions: Not supported ETag: Not supported ✅ Actors: Not supported Query: Not supported Beta v1 1.10

Google Cloud Platform (GCP)

Component CRUD Transactional ETag TTL Actors Query Status Component version Since runtime version
GCP Firestore ✅ Transactions: Not supported ETag: Not supported TTL: Not supported Actors: Not supported Query: Not supported Stable v1 1.11

Microsoft Azure

Component CRUD Transactional ETag TTL Actors Query Status Component version Since runtime version
Azure Blob Storage ✅ Transactions: Not supported ✅ TTL: Not supported Actors: Not supported Query: Not supported Stable v2 1.13
Azure Cosmos DB ✅ ✅ ✅ ✅ ✅ ✅ Stable v1 1.0
Azure Table Storage ✅ Transactions: Not supported ✅ TTL: Not supported Actors: Not supported Query: Not supported Stable v1 1.9
Microsoft SQL Server ✅ ✅ ✅ ✅ ✅ Query: Not supported Stable v1 1.5

Oracle Cloud

Component CRUD Transactional ETag TTL Actors Query Status Component version Since runtime version
Autonomous Database (ATP and ADW) ✅ ✅ ✅ ✅ ✅ Query: Not supported Alpha v1 1.7
Object Storage ✅ Transactions: Not supported ✅ ✅ Actors: Not supported Query: Not supported Alpha v1 1.6