I am currently learning apache thrift. But all demos I’ve got are about RPC. My question is, is it able to send and receive message, say a struct or a string? (There is just a struct definition in .thrift file)
A demo in java is appreciated.
thx!
I am currently learning apache thrift. But all demos I’ve got are about RPC.
Share
Thrift is RPC protocol, not a messaging one. In theory you could implement messaging a top of it, but if your needs are message oriented, than you could be better of to use some messaging protocol like AMQP.
If on the other hand you would like to know if you could pass more complex data structures in your RPC calls via thirft, than answer is yes, by all means.