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?
Building With Workers KV, a Fast Distributed Key-Value Store
11–13 of 13 posts
Re: Building With Workers KV, a Fast Distributed Key-Value Store
#12I 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
#13Earlier 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.