Versions Compared

Key

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

...

AKKA에서는  이러한 문제를 복잡한 스레드 모델이 아닌 튜닝가능한 옵션으로 해결하려고 시도합니다.


dispatcher-behaviour-on-good-code.png프로세스

스레드 프로파일툴로, Actor의 실제 활동 측정을 통해 튜닝이 가능해집니다멀티스레드를 측정을 위해 Tace하거나 중단을 통해 작동의 연관성을 찾는것은 어렵기때문에, 위와같은 시각화 툴의 도움을 받습니다.


목적과 성능에따라 액터를 관리할 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를 직접 생성하는 코드를 작성하지 않습니다.

...