hmm are there any replication guarantees? like writes are replicated in the same order?
hmm are there any replication guarantees? like writes are replicated in the same order?
One pattern is to send all of your writes for a given KV key through a corresponding instance of a Durable Object
summary:1 but it will never change once its writtenentry:1, 2, 3, etc)

--local flag.cloudflare does not support bulk writes from within a workerWrites to different keys 1,000 writes per daydifferent keyssummary:1entry:1cloudflare does not support bulk writes from within a workerYou can write more than one key-value pair at a time with Wrangler or via the API
. The bulk API can accept up to 10,000 KV pairs at onceWrites to different keys 1,000 writes per daydifferententries = [
{id: `entry:1`, body: "..."},
{id: `entry:2`, body: "..."},
{id: `entry:3`, body: "..."},
]
summary = { id: `summary:1`, entries: [`entry:1`, `entry:2`, `entry:3`] }let summary = await fetchSummary(`summary-1`);
for entry in summary.entries {
let entry = await fetchEntry(entry);
}curl --request PUT \
--url https://api.cloudflare.com/client/v4/accounts/account_identifier/storage/kv/namespaces/namespace_identifier/bulk \
--header 'Authorization: Bearer undefined' \
--header 'Content-Type: application/json' \
--data '[
{
"base64": false,
"expiration": 1578435000,
"expiration_ttl": 300,
"key": "My-Key",
"metadata": {
"someMetadataKey": "someMetadataValue"
},
"value": "Some string"
},
...//more objects for bulk put
]'