Kafka as an Akka-persistence journal [closed]
Asked Answered
A

2

7

Among the different options of a write-journal to implement Event Sourcing, Kafka seems a very reasonable choice from "outside":

  1. It has a great ecosystem
  2. It is well documented
  3. It naturally supports streaming and listeners

However, looking into Akka persistence, it appears that Kafka journal is supported only through a community contributed package, which has not been modified for the last 2 years. Is Kafka not a good option, are there better options and if it is the best option, how are people using it with akka-persistance?

Action answered 17/10, 2017 at 8:51 Comment(2)
There is an initiative to build an akka.stream-based eventsourcing layer, which right now is able to cooperate with both akka.persistence and reactive-kafka as its event journal backends. In future eventuate should also be supported.Growth
I see that, what I don't understand is why this is not the privileged choice?Action
A
4

The problems with using Kafka as the event journal for akka-persistence (lack of atomic writes) are mentioned in this comment, which also lists it as a reason the plugin hasn't been maintained: https://github.com/krasserm/akka-persistence-kafka/issues/28#issuecomment-138933868

In this thread, however, there is evidence that people are working on forks that work with latest kafka and akka versions: https://github.com/krasserm/akka-persistence-kafka/issues/20

Atalanti answered 2/11, 2017 at 18:0 Comment(0)
A
2

You should have a look right here

It's a pull request of the fork maintained right here

This version uses kafka 1.0 and the new producer API with transaction. We try to respect the best the akka persistence specification. We keep on with kafka because, for us, it is the best solution for event sourcing.

Antipope answered 15/12, 2018 at 15:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.