52-technologies-in-2016 icon indicating copy to clipboard operation
52-technologies-in-2016 copied to clipboard

Week 41: Understanding Akka Dispatchers

Open shekhargulati opened this issue 7 years ago • 4 comments

Please provide your feedback by posting a comment against this issue.

shekhargulati avatar Dec 04 '16 17:12 shekhargulati

Hi! Thanks for the interesting read! Just one question. You wrote:

"You will notice that all 100 started at almost same time. If you run this with default configuration 24(parallelism-factor*parallelism-min) tasks will be processed in parallel."

Wouldn't this 24 come from parallelism-factor*number_of_cores? At least that's how you explained it earlier in the article:

"The number 24 comes from multiplication of number of cores on your machine with parallelism-factor. My machine has 8 cores and default value of parallelism-factor is 3 so we got 24 threads (8x3). (...) Let's suppose my machine had only one core then according to the calculation mentioned above I could have got 1x3 i.e. 3 threads but instead we will get 8 threads because that's the minimum number of threads default-dispatcher can have."

wojtasskorcz avatar Dec 08 '16 16:12 wojtasskorcz

@wojtasskorcz yes you are right. I typed it wrong. I have fixed it. Thanks.

shekhargulati avatar Dec 08 '16 18:12 shekhargulati

@shekhargulati Great post. It's easy to understand

fadavidos avatar Apr 15 '18 21:04 fadavidos

Great post, thanks!

batchenoz avatar Apr 03 '19 16:04 batchenoz