Search code examples
rpcpublish-subscribethrift

Thrift publish subscribe


I'm evaluating thrift as an rpc framework. I want to be able to do publish/subscribe logic with thrift and was wondering how to do this.

A few different answers may help:

  1. Is there a canonical way to do publish/subscribe with thrift?
  2. Is there a way to stream results of a call (similar to zerorpc streaming)?
  3. How do you solve this problem?

Solution

  • I've done my own research and it looks like that with thrift, you should serialize and do pub sub over some type of message queue like zeromq or redis.