Thrift server access unserialized data -
is possible thrift server not unserialize message, give access data can save , later send? precise. have idl , service such that
void sendstructa(structa) struct structa { 1: string string_thing, 4: byte byte_thing, 9: i32 i32_thing, 11: i64 i64_thing } and have client , server generated.. server has interface have in code on server side
void sendstructa(structa s) { // } but dont want s of type structa. need catch struct before unserialized structa. , i.e tjson protocol chosen. should give me access json
yes, because thrift rpc , serialization framework. there few examples in code, "serializer". basic idea set stream transport or similar , protocol.write() , protocol.read() , stream, shown here.
what data before , after you. example, send data server, or process it, or throw away.
Comments
Post a Comment