Live data from Hacker News

Building With Workers KV, a Fast Distributed Key-Value Store

blog.cloudflare.com

11–13 of 13 posts

Re: Building With Workers KV, a Fast Distributed Key-Value Store

#11
post #7

I love it and want to use it, but two announcements of a new cloud hosted distributed DB and no mention of how consistency works or how conflicts are handled worries me a bit. Maybe one of the cloudflare people that read HN can shed some light on this? What happens when I write to the same key simultaneously from multiple workers and/or multiple edge nodes?

They write it in the description: eventual consistency with global consistency within 10 sec.

Re: Building With Workers KV, a Fast Distributed Key-Value Store

#12
post #7

I love it and want to use it, but two announcements of a new cloud hosted distributed DB and no mention of how consistency works or how conflicts are handled worries me a bit. Maybe one of the cloudflare people that read HN can shed some light on this? What happens when I write to the same key simultaneously from multiple workers and/or multiple edge nodes?

They write it in the description: eventual consistency with global consistency within 10 sec.

That's rather vague definition. And is also wrong. They obviously can't guarantee global consistency within 10 sec, as that would require consensus which is impossible to guarantee in bounded time and they probably don't even use any consensus algorithm at all, as that would be pointless for a CDN.

Re: Building With Workers KV, a Fast Distributed Key-Value Store

#13
post #12

Earlier quoted context omitted.

They write it in the description: eventual consistency with global consistency within 10 sec.

That's rather vague definition. And is also wrong. They obviously can't guarantee global consistency within 10 sec, as that would require consensus which is impossible to guarantee in bounded time and they probably don't even use any consensus algorithm at all, as that would be pointless for a CDN.

Yes, in the presences of a network partition, propagation can take arbitrarily long. But, that would be classified as an outage. Knowing the typical non-outage delay is useful.
Post reply on HN