Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

빠르게 작동되는 액터와 스레드사용 전략을 분리할 필요가 있습니다.


dispatcher-behaviour-on-good-code.png

프로세스 스레드 성능 체크 UI로 스레드를, 작업완료 처리가 다른 Actor 에 따라 전략적 튜닝 사용가능  ( 프로파일툴로, Actor의 실제 활동 측정을 통해 튜닝이 가능해집니다.

목적과 성능에따라 액터를 관리할 dispatcher를 분리하게되면 Actor의 성능에대한 문제 파악이 용이해집니다.

-번외 문서 : 서버 개발자의 성능 튜닝에대한 고뇌 )


Code Block
languagescala
linenumberstrue
my-blocking-dispatcher {
  type = Dispatcher
  executor = "thread-pool-executor"
  thread-pool-executor {
    fixed-pool-size = 16
  }
  throughput = 1
}
//이것은 런타임 코드가 아니라, 설정사항입니다. AKKA에서는 Thread를 직접 생성하는 코드를 작성하지 않습니다.

...