Workers KV

cloudflareNoSQL databasecloudflare-workers-kv

Eventually consistent global key-value namespace cached at every edge location.

Provider
cloudflare
Category
Data
Properties · 4 set by this component
propertytypevaluesrequiredkind defaultthis component
backupEnabledboolean—nofalseinherited
backupRetentionDaysinteger—no—inherited
bucketing · advancedboolean—nofalseinherited
conflictResolutionenumnone | last-writer-wins | vector-clock | app-mergeno—inherited
consistencyenumeventual | tunable | strongnoeventual▸ eventual
encryptionAtRestboolean—nofalseinherited
instancesinteger—no—inherited
managedboolean—nofalse▸ true
maxKeySizeBytes · component propertyinteger—no512inherited
maxNamespacesPerAccount · component propertyinteger—no1000inherited
maxValueSizeMib · component propertyinteger—no25inherited
minCacheTtlSeconds · component propertyinteger—no30inherited
modelenumkey-value | wide-column | documentyes—▸ key-value
partitionKeystring—no—inherited
propagationDelaySeconds · component propertyinteger—no60inherited
quorumReads · advancedinteger—no—inherited
quorumWrites · advancedinteger—no—inherited
replicationenumsingle-region | multi-region-single-leader | multi-region-multi-leader | leaderlessnosingle-region▸ multi-region-single-leader
replicationFactorinteger—no—inherited
tombstoneTtlDays · advancedinteger—no—inherited
Rules that apply · 2

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

multi-leader-store-without-conflict-policy

Multi-leader replication accepts concurrent writes in several regions. With no conflict resolution policy declared, divergent replicas are reconciled by accident rather than by design.

  • — all of these hold:
  • — the node's `replication` is "multi-region-multi-leader"
  • — any of these hold:
  • — the node's `conflictResolution` has no value
  • — the node's `conflictResolution` is "none"
read-heavy-path-without-cache

The design states a read-heavy workload and application servers read this datastore directly, yet the design has no cache anywhere. Every read pays a database round trip.

  • — all of these hold:
  • — the design requirement `traffic.readWriteRatio` is a number greater than 10
  • — the node has at least one synchronous incoming edge from an app-server
  • — this does not hold:
  • — the design contains a node of kind cache
Use it in a design
nodes:
  - { id: "workers-kv", component: "cloudflare-workers-kv" }
Other NoSQL database products · 46
ApsaraDB for HBasealibaba-apsaradb-hbasealibabacloudnosql-databaseApsaraDB for MongoDBalibaba-apsaradb-mongodbalibabacloudnosql-databaseLindormalibaba-lindormalibabacloudnosql-databaseTablestorealibaba-tablestorealibabacloudnosql-databaseAmazon CloudFront KeyValueStoreaws-cloudfront-keyvaluestoreawsnosql-databaseAmazon Cognito Syncaws-cognito-syncawsnosql-databaseAmazon DocumentDBaws-documentdbawsnosql-databaseAWS HealthLakeaws-healthlakeawsnosql-databaseAmazon Keyspaces (for Apache Cassandra)aws-keyspacesawsnosql-databaseAmazon DynamoDBdynamodbawsnosql-databaseAzure Cosmos DBazure-cosmos-dbazurenosql-databaseAzure DocumentDBazure-documentdbazurenosql-databaseAzure Health Data Servicesazure-health-data-servicesazurenosql-databaseAzure Managed Instance for Apache Cassandraazure-managed-cassandraazurenosql-databaseAzure Table Storageazure-table-storageazurenosql-databaseApache Accumuloaccumulonosql-databaseAerospike Databaseaerospikenosql-databaseApache Cassandracassandranosql-databaseCouchbasecouchbasenosql-databaseApache CouchDBcouchdbnosql-databaseDataStax Enterprisedatastax-enterprisenosql-databaseFoundationDBfoundationdbnosql-databaseApache HBasehbasenosql-databaseMarkLogic Servermarklogicnosql-databaseMongoDBmongodbnosql-databaseMongoDB Atlasmongodb-atlasnosql-databaseGeneric NoSQL databasenosql-databasenosql-databaseNoSQL storenosql-storenosql-databaseOrientDBorientdbnosql-databaseRavenDBravendbnosql-databaseRethinkDBrethinkdbnosql-databaseRiak KVriaknosql-databaseScyllaDBscylladbnosql-databaseTiKVtikvnosql-databaseYDBydbnosql-databaseGoogle Cloud Bigtablebigtablegcpnosql-databaseGoogle Cloud Firestorefirestoregcpnosql-databaseCloud Healthcare APIgoogle-cloud-healthcare-apigcpnosql-databaseFirebase Realtime Databasegoogle-firebase-realtime-databasegcpnosql-databaseFirestore in Datastore modegoogle-firestore-datastore-modegcpnosql-database
and 6 more → NoSQL database page
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# Workers KV namespace: a central key-value store cached at every edge location. "How KV works"
# states reads are eventually consistent with writes and a change can take up to 60 seconds to be
# visible elsewhere; "KV - Limits" gives 512 byte keys, 25 MiB values and a 30 second minimum cacheTtl.
schemaVersion: "1"
type: "component"
id: "cloudflare-workers-kv"
kind: "nosql-database"
provider: "cloudflare"
docs: "https://developers.cloudflare.com/kv/concepts/how-kv-works/"
aliases: ["KV"]
defaults:
  managed: true
  model: "key-value"
  consistency: "eventual"
  replication: "multi-region-single-leader"
properties:
  propagationDelaySeconds:
    type: "integer"
    default: 60
  minCacheTtlSeconds:
    type: "integer"
    default: 30
  maxKeySizeBytes:
    type: "integer"
    default: 512
  maxValueSizeMib:
    type: "integer"
    default: 25
  maxNamespacesPerAccount:
    type: "integer"
    default: 1000

The same page as markdown, for an agent: /catalogue/components/cloudflare-workers-kv.md