Multi-protocol support on single port in netty?

Viewed 16

I'm a noob in netty. I'm trying to implement api-server support http/grpc/thrift with netty.

I think the normal way for this kind of server is support each protocol on different port.

However, I thought in the same time if Server can recognize the kind of protocol of message in SomeDecoder in ChannelPipeline, can route to appropriate ProtocolHandler.

Anybody knows whether it is possible or not? Furthermore, is it the better way than supporting on different port? (pros and cons)

0 Answers
Related