Akka pub sub with routers(not via classic)

We want to implement akka as our pub sub solution(internal to process, not distributed), we will need to use routers, but we will also need to publish a message to several routers at once based on topic, the only thing I found is this:

but it is “classical” is it possible to implement the same mechanism in the new akka?
second issue is that the routeels will use “round robin” this is a problem for us, I want something that is equivalent to SmallestMailboxPool in the not calssic akka (meaning the router will hold the msg until a any of the routee’s is ready) do we have a mechanism like that? or should I just implement it in “classic” way?

You have Pool Routers and there is a Broadcast mechanism. Routers • Akka Documentation

However, there is no smallest mailbox strategy. If that is important an alternative could be to use the work pulling pattern described in Reliable delivery • Akka Documentation
It can be used for local only actors.

1 Like