Ask HN: How do you do Event Sourcing?

2 points by lohengramm ↗ HN
I see a lot of people talking about Kafka, but I don't really get how to fit it inside an Event Sourcing system.

What is the current state of the art (if there is such a thing) of Event Sourcing?

2 comments

[ 4.2 ms ] story [ 13.6 ms ] thread
In event sourcing you need to somehow pass around events, which are arbitrary data that describe necessary change of the state. Kafka is a message router/forwarder, with message being an arbitrary data. No go figure where does that fit.
Hey, thanks for the answer. Maybe I wasn't clear about my point, but the question is not really about what is ES or what is Kafka. I am sure Kafka can be used in ES systems, but Kafka alone is not a complete solution for ES systems, it merely routes and stores the events.

I think people are doing ES in different ways, and I wish I could hear about the architectures around: what kinds of internal services people have producing and consuming the events, where they process the side effects of the events, where to store the events and also how they are updating the databases used by the applications. I mentioned Kafka because it plays a major role for several implementations, but Kafka is not the whole story neither it is obvious how to deal with it.