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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -