News for hackers. Stuff that matters.
Re:Kubernetes Failure Stories by pojzon on Thursday February 11, 2021 @09:21PM (#26110109)
Thats a very good question Im also interested in knowing the answer. Currently I have seen that every company I had a pleasure to work with had to settle with „eventual” consistency of replicated masters. This is ofcourse totally unacceptable in case of some industries. Thats why I would like to know whether someone found a holy grail of multi-region database design and is willing to share it for free!
Re:Kubernetes Failure Stories by tutfbhuf on Friday February 12, 2021 @08:08AM (#26113204)
Eventual consistency happens when you allow your write transaction to finish, before the data has been spread across all masters. It allows you to have fast writes, but it's actually cheating (in my opinion), because only one master (the nearest) has seen your write, while the others don't know about it yet.

If you want to have a strong consistent multi-region database (or other form of storage), then you have to deal with slow writes, because your transaction is only allowed to terminate successfully when all masters have written the new data and are in a synchronous state.

I very much prefer slow strong consistent writes instead of fast eventual consistent writes.

Re:Kubernetes Failure Stories by h43k3r on Friday February 12, 2021 @09:47PM (#26120952)
Lookup Google's Spanner. It's a distributed transactional SQL database with whatever consistency levels you are interested in

Disclaimer- Google employee who is heavily using Spanner

Re:Kubernetes Failure Stories by tutfbhuf on Saturday February 13, 2021 @04:11AM (#26122431)
Yes, but Google Spanner is not open source, so it's not so easy to actually look at it. But what is known to public is that Spanner relies on perfectly synchronized atomic clocks within their datacenters, called TrueTime. This solution is very special and does not work for other databases in general.