multiplexing - Single thrift java server serving TCompactProtocol and TJsonProtocol -
i have existing java thrift server serving api's on tcompactprotocol used external applications. need add tjsonprotocol support same service serve js clients.
i understand can use thrift multiplexing wrapper tmultiplexedprotocol on underlying protocols. firstly need change in client code use lookup , havent seen support tmultiplexedprotocol in thrift js library.
in examples online , documentation have seen thirft multiplexing multiple services using same protocol , transport. not possible support multiple protocols?
in examples online , documentation have seen thirft multiplexing multiple services using same protocol , transport. not possible support multiple protocols?
exactly, or in case: unfortunately. tmultiplexprotocol
designed share 1 physical endpoint between multiple services. implies, services required use same protocol/transport stack.
if have different requirements using compact , json protodols in parallel, need 2 distinct physical endpoints (sockets, pipes, urls, etc.)
Comments
Post a Comment