I am using Alpakka Kafka connector in the Source and using the flow to forward messages to an actor.
There is no configuration for restart in the Source in case of error, but I have observed that sometimes the messages from the Kafka topic are read from the beginning again. The “auto.offset.reset” property for the connector is set to “earliest”.
The property “auto.offset.reset” is used when offset is not present or has been lost for any reason, so if you can assume data loss, use “latest”, besides that, check your consumer behavior. Look ate “at most once” and “at least one” semantics to use the right one to your application