App.config ( .net의 어플리케이션 설정과 호환가능: 특이한 형태의 설정으로 JAVA와 설정방식호환 )
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="akka" type="Akka.Configuration.Hocon.AkkaConfigurationSection, Akka" /> </configSections> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> </startup> <akka> <hocon> <![CDATA[ akka { actor { provider = "Akka.Remote.RemoteActorRefProvider, Akka.Remote" deployment { /some-group { router = broadcast-group routees.paths = [ "akka.tcp://ServiceB@127.0.0.1:8002/user/b1", "akka.tcp://ServiceB@127.0.0.1:8002/user/b2", "akka.tcp://ServiceB@127.0.0.1:8002/user/b3"] } } } remote { log-remote-lifecycle-events = DEBUG log-received-messages = on helios.tcp { port = 8001 #bound to a specific port hostname = 127.0.0.1 } } } ]]> </hocon> </akka> </configuration>
기본적인 설정 방법이며
서비스포트 (8001) , 라우터 정의및 로그등 기본적인 설정 방법입니다.
확장된 설정법(클러스터구성) 은 실습코드에서 다시 정리예정
설정만 으로 라우터 전략 가능하며 , 라운드 로빈 처리된 some-group 에게 메시지 전송이 가능해집니다.