user1310957
user1310957

Reputation:

Netty TCP push/streaming server

Is it possible to implement request for stream style client server interactions at the tcp level in netty? The protocol would essentially follow:

t0: tcp handshake

t1: client requests topic X

t2-tn: server sends latest enqueued update on topic X

I've seen a netty websockets example, but is it possible, and are there examples, to do this in netty at the tcp level?

Edit: I'm really not asking if this is the correct way to implement the feature, or if there is another solution involving installation of third party software, even if it would be the "right" thing to do. I am asking if this is possible to do using netty.

I would be very interested to hear from any users of netty's SCTP features, any metrics appreciated.

Upvotes: 0

Views: 1235

Answers (1)

user1310957
user1310957

Reputation:

Nat answered my question - adding and removing the incoming channel from the sender's channelgroup in channelActive and channelInactive allows messages of arbitrary structure to be pushed to subscribing clients.

Upvotes: 0

Related Questions