Search code examples
c++thrift

Apache Thrift and multiple handlers/processors


I've a C++ application with multiple classes and I should make available their methods over a Thrift service using the same port.

Actually, according with documentation, the only way seems to create a single class using thrift generator that call other class methods.

Instead, I would like to directly use native class methods. Is it possible to create a service that supports multiple handlers/processors? Or multiple services on the same port?

P.S. I'm pretty new to Thrift.


Solution

  • Service multiplexing is implemented since 0.9.1. Look here for details and samples: https://issues.apache.org/jira/browse/THRIFT-563

    Here's a link on related question: I'd like to use multiple services on one transport ( Thrift )