Thank you for your time.
What would be the advantages of using a long alive TCP connection?
Sorry, but I must say that I don't follow you. I am new to Netty (and network in general) but my understanding is:
WEBAPP (blocking) ------> MW-NETTY (async/non blocking) ------> SERVER (blocking)
[http] [tcp]
Then, for each connection initiated by the webapp:
- the webapp will wait for an answer, blocking a thread (not a big deal right now)
- the mw-netty will instantiate a channel to the server (same event loop, the inbound channel and the outbound channel are "linked", see HexDumpProxy example)
- the server will reply using the opened tcp connection
- the mw-netty will reply using to the webapp using the opened http connection
So, according to me, it should work without using an ID. What am I missing?
--nick