c# - How to remotely deploy actor with dynamic name in Akka.NET -


when @ samples of akka.net actor remote deployment, done via actor system configuration this:

actor {     provider = ""akka.remote.remoteactorrefprovider, akka.remote""     deployment {         /myactor {             remote = ""akka.tcp://myactors@127.0.0.1:8091""         }     } } 

the string "myactor" above actual actor name. not clear me how deploy actor have dynamic name (e.g. "myactor:{uid}") or deploy unknown number of actors remotely? there way dynamically configure deployment options via code? seems bit tedious , limited specify remotely deployable actor names in configuration.

you can set deployment options using actor's props like: props.create(() => new myactor).withdeploy(new deploy(new remotescope("akka.tcp://remote-system-name@ip:port/"))).


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -