by pjc50 · 1y ago · 0 comments
Well, yes, but then you've backed into CAP again because you only have one log.
The application state is defined by the log here, and the log drives retries/recovery, so it doesn't much matter if the process that executes the app code splits off. The log would hydrate another one.
Also the one log is at the granularity of a single key or handler execution. More of a logical log, than a physical log or even partition.
In Restate, we implement a logical log-per-key, backed by a partitioned physical log.
For something that is trying to solve the general problem of consistent single ground-truth log, you can't really do much better than Spanner.
The max clock skew also has to pick between A and C, in underestimates you lose serializability, in overestimates you pay in write latency.