Hacker News new | ask | show | jobs
by Salgat 969 days ago
As long as you're able to assert event version on write (and fail if the expected stream version is wrong), you're already ahead of Kafka on event sourcing capability.
1 comments

I tried to evaluate Kafka usage for event sourcing: <https://github.com/eugene-khyst/ksqldb-event-souring>. More out of curiosity. But never tried it in production.
Kafka doesn't have a way to assert stream version on event write, which is critical for CQRS. Without it, you can't guarantee stream state when processing a command without resorting to a singleton/locks which does not scale at all. Why Apache doesn't wish to support such a critical feature is beyond me though.

https://issues.apache.org/jira/browse/KAFKA-2260