Hi everyone, we are using Akka in production for notification mechanism (which is very close to chat server by semantics), but it is written in a very conservative way at the moment. It uses cache as a storage for relations, MQ middleware as a communication channel between the nodes.
I'm looking for more efficient, preferably Akka-native way to solve the problem. In documentation, I've found a wonderful built-in mechanism for that - DistributedPubSub <http://doc.akka.io/docs/akka/current/scala/distributed-pub-sub.html>. It looks amazing, but unfortunately we need at-least-once delivery guarantee. There is a brief note at the bottom: If you are looking for at-least-once delivery guarantee, we recommend Kafka > Akka Streams integration <https://github.com/akka/reactive-kafka>. I'm not sure I understand. Does it mean to not use Akka Cluster capabilities at all, and instead do something like that - <https://lh3.googleusercontent.com/-ZvOS6jY6Ogk/WONTO_p7CNI/AAAAAAAAApo/oL3Lumq0YUUyuI9e8w09isUuwMTndc_fQCLcB/s1600/Screen%2BShot%2B2017-04-04%2Bat%2B11.02.34.png> - each user connects to the Akka node via websocket - user subscribes to a number of topics - each Akka node writes user's messages to the common Kafka topic (I guess there is no way to create topic per user, because there are hundred thousands of them) - each Akka node continuously reads common topic and delivers messages for for subscribed actors Also, is it the only recommended way, or we can somehow use DistributedPubSub/ClusterSharing with Akka Persistence module to have at-least-once delivery guarantee? Thank you, Alex -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
