English 中文(简体)
multiple Thrift services on one transport
原标题:

Just seeking confirmation here : apache Thrift protocol does not seem to support running multiple services on one transport endpoint ? ( a socket, file, whatever )

I cant seem to figure out how to do something like this in Thrift:

service otherService {
    void dosomething()
}

service rootService {
    otherService getOtherService()
}

There does not seem to be any concept of passing in and out service handles, ultimately limited by the protocol. Looks like you can not run two services on one transport pipe. Correct ?

最佳回答

Correct. As I understand it, only the second service would be generated by thrift, and this is what would be bound when starting the server you create in your preferred language (java, python, etc).

问题回答

Multiplexed Services (in essence that s what you want to do here) are being integrated right now. There are already patches for a number of languages available, either already accepted or in the process of being reviewed.

https://issues.apache.org/jira/browse/THRIFT-563 is a good place to start.

PS: Reviewers and contributions are welcome ;-)





相关问题
How to let idlj compile idl files in ant

I ve no idea how to compile my idl files with the sun-idl compiler (idlj) with the help of ant? Does anyone have an idea?

Struct inheritance in MIDL

I am trying to inherit from and extend a structure defined in MIDL. I used the same syntax as for interface inheritance i.e typedef struct stDBIBinVarDataEx { float x; } MYSTRUCT ; struct ...

multiple Thrift services on one transport

Just seeking confirmation here : apache Thrift protocol does not seem to support running multiple services on one transport endpoint ? ( a socket, file, whatever ) I cant seem to figure out how to do ...

ctags generator for CORBA IDL?

I work in a multi-language environment and use Vim + ctags for navigating the code. However we also use CORBA and exuberant ctags does not parse IDL files. Does anyone know of a ctags compatible ...

Properly extending a COM interface (IDL)

I am working with some legacy c++ code and I need to extend an interface. The current interfaces are for example: [ object, uuid(guid), version(1.0), dual, nonextensible, oleautomation ] ...

Notepad++ IDL Syntax Highlighting? [closed]

I was about to create a user-defined language file for Notepad++ to syntax-highlight IDL (Interactive Data Language). But before I went and spent the time creating one, I wanted to check with the &...

热门标签