Akka and Heroku

I am learning to use Scala / Play / Akka on Heroku, and something is interesting to me. Suppose I have an application structured as a network of Akka actors. Some of the participants will work together with the web application itself, but I can select one or several nodes as dedicated Akka accounts: for example, a group of members of the cache manager.

To configure Akka remote access, I need to specify IP addresses in akka.conf . But since Heroku nodes are somewhat ephemeral, I will not know every node address at the time of writing the configuration file.

This may simplify the creation of a central โ€œregistrationโ€ node, but even there I will not know the IP address of this node in advance.

So how do my Akka nodes link to each other on Heroku?

+7
source share
1 answer

Heroku speakers cannot talk directly to each other, so you have to use an external messaging system like RabbitMQ . The Heroku Dev Center has an excellent article on how to coordinate Akku Akku this way:
https://devcenter.heroku.com/articles/scaling-out-with-scala-and-akka

+9
source

All Articles