akka-persistence-kafka
akka-persistence-kafka copied to clipboard
Ability to tie a persistent actor to a specific partition of a topic
Use case is the following: an Akka application implementing event sourcing performs sharding internally before persisting events. Such sharding would occur at a single actor with a fanout; messages could then be sent along to a set of PersistentActors, one for each partition of a topic. This would allow external consumption of a partitioned topic when events are captured in an akka application.
Just out of curiosity: Does anyone foresee any major design issues with implementing this feature or is it just a matter of time?
This would require a persistenceId
-> (topic, partition) mapping, for example, using a naming convention for persistenceId
s such as my_topic_0
, my_topic_1
and so on. Shouldn't be a big deal to implement. Pull requests are welcome :smile:
Has anyone thought about this more? I am trying to wrap my head around how you get around this limit of topics. As a side note, partitions and topics are roughly equal in resource usage to Kafka. So a high amount of either doesn't work well.