java - Netty optimising latency -


i've been developing proxy netty 4.0 (alpha 8). well, need optimize latency, send strings around 4000 bytes ny london. zip payload jzlib encoder on delimited frame decoder.

i in comparison proprietary tool, have benchmark, measure thirdparty interface until put netty channel process in submilliseconds 3-5 milliseconds range both sides, client/server. on server use time message received until send out thirdparty interface.

in betweeen transmission time ranges 200 - 500 ms , outliers in below 100 ms, 1 second , 2 second range.

at moment using oio since there 1 permanent connection client server, use tcp no delay. traffic heavy, sending marketdata information.

at moment want continue remote profile app, gcc logging going , either locally or on servers try sniff packages , compare thirdparty traffic 1 generating on netty.

my questions:

  • what outmost point in netty can use measure time used in component uses netty, client , server, channel.write , messagereceived?
  • given scenario other channel options should try improve performance?
  • using wireshark has advise on package properties (i know general question , compare packages @ first instance).
  • should use other callbacks or diagnostic provided in netty?

thank advise.

i able solve , results great. though low number of connections advise given in articles use oio switched nio resulted in below 100 ms transmission results transmissions.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -