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 - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -