Category: akka

  • Using different event journal configurations in one actor system

    If you use multiple persistent actors with Akka, you normally configure one event journal, but in case you want to configure different event journals for different persistent actors, you need to be careful to configure everything correctly, otherwise the events are persisted, but when the persistent actor is reinstantiated, the state isn’t recovered because the…

  • Using Akka Streams with Kafka and Avro

    The easiest way to use Akka Streams with Kafka is by using the Alpakka Kafka Connector.  The documentation page describes in detail how to use Akka Streams both as a Kafka producer and as a consumer. Even though Kafka is agnostic regarding to the message format, the preferred message format is Avro and the preferred solution…