Persistent thread safe Netty client send request and wait on reply

101 views
Skip to first unread message

lekkie omotayo

unread,
Oct 1, 2019, 8:59:47 PM10/1/19
to ne...@googlegroups.com
I am new to Netty and I need some help to write a simple Netty client that will be used by many threads. The client needs to be persistent (possibly keep alive), and response to the server has to be correlated with the request (The request both has an ID for correlation). This is becuase the client request comes randomly and Response to Request 2 may come before Response to Request 1. Also since it is TCP, the request has to go serially. Note the client using the client Netty will block when it sends the request but Netty client itself should block and be available to accept as many request as possible. Any snippet is welcome.
Reply all
Reply to author
Forward
0 new messages