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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.