by hcarvalhoalves · 1y ago · 0 comments
If everything’s in one log, there’s nothing to coordinate
The rest of us have to coordinate the logical log of user creation/deletion and the logical log of user payments, etc.Separate logical logs with no need for coordination can only work if they are truly independent systems - no causality between them.
The way our open source project implements that is with a partitioned log and indexes at key-granularity, so it is like virtually a log per key.
How do you handle transactions in general? It is pretty common to have multiple changes that need to be applied together. In a single log, can write the changes and then write a record that says the changes are committed. This is how databases work.