简体   繁体   中英

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.

Nat回答了我的问题-在channelActive和channelInactive中从发件人的频道组添加和删除传入的频道,可以将任意结构的消息推送到订阅客户端。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM