Akka, AMI - discover remote actors for database access

58 views Asked by At

I am working on a prototype for a client where, on AWS auto-scaling is used to create new VMs from Amazon Machine Images (AMIs), using Akka.

I want to have just one actor, control access to the database, so it will create new children, as needed, and queue up requests that go beyond a set limit.

But, I don't know the IP address of the VM, as it may change as Amazon adds/removes VMs based on activity.

How can I discover the actor that will be used to limit access to the database?

I am not certain if clustering will work (http://doc.akka.io/docs/akka/2.4/scala/cluster-usage.html), and this question and answers are from 2011 (Akka remote actor server discovery), and possibly routing may solve this problem: http://doc.akka.io/docs/akka/2.4.16/scala/routing.html

I have a separate REST service that just goes to the database, so it may be that this service will need to do the control before it goes to the actors.

0

There are 0 answers