4 ms·
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 capa
by Salgat 3y 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.
- eugene-khyst 3y agoI tried to evaluate Kafka usage for event sourcing: <https://github.com/eugene-khyst/ksqldb-event-souring https://github.com/eugene-khyst/ksqldb-event-souring>. More out of curiosity. But never tried it in production.
- Salgat 3y agoKafka 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 https://issues.apache.org/jira/browse/KAFKA-2260