|
|
|
|
|
by gunnarmorling
2020 days ago
|
|
>> If you use an OLTP database, and generate events into Kafka via CDC, you get the best of both worlds. > This is the next chapter in the gospel of the distributed transaction. Actually, it's the opposite. CDC helps to avoid distributed transaction; apps write to a single database only, and other resources (Kafka, other databases, etc.) based on that are updated asychronously, eventually consistent. |
|
I'm arguing that that usage pattern was painful and that if you can have horizontally scalable transaction processing and a stream of events due to committed transactions downstream, you can use that to power correct and easy to reason about materializations as well as asynchronous task processing.
Transact to change state. React to state changes. Prosper.
[1] https://youtu.be/5ZjhNTM8XU8?t=2075