netty 4 performance: multi channels or only one? -


i use netty 4.0.23 in rpc framework, found in client, when creating multi channels, performance better creating 1 channel. why? method improve performance in 1 channel?need move encode/decode netty io worker thread user thread?

it because when creating multiple channels, you'll utilize multiple cpu cores. when creating single channel, you'll utilize single cpu core.

as number of channels increases, not see performance improvement anymore because cpu or remote peer's cpu maxed out soon.


Comments

Popular posts from this blog

java - Unable to make sub reports with Jasper -

scala - play framework: Modules were resolved with conflicting cross-version suffixes -

Save and close a word document by giving a name in R -