Declarations of RPC services are currently ignored, but their support
is planned (btw, which Perl RPC implementation would you recommend?)
...
On Sat, Sep 7, 2013 at 10:12 AM, <dcor...@googlemail.com> wrote:
>
> Thanks for the fast response,
>
> I tried to use the Rpc.proto along the Ola.proto but the real problem is the
> Perl module for parsing the protobuf descriptions. The manual says:
>
> ...
>
> Declarations of RPC services are currently ignored, but their support is
> planned (btw, which Perl RPC implementation would you recommend?)
There are two separate parts:
i) a generator which produces the stubs from the services declarations
ii) an RPC mechanism
The protobuf package has generators (i) for Python, Java & C++ but
they are marked as deprecated [1] and implementations are encouraged
to use the plugin system [2] to write their own. Unfortunately this
means you need to write C++ to generate Perl. OLA still uses the old
format but I've been meaning to switch over since at some point
support for the legacy generators will go away. I suspect our code
will also become simpler if we don't have to use the generic services.
There is no open source standard for ii). OLA has it's own
(StreamingRPCChannel) in C++, Python & Java (partial support).
If you're not scared away by all of this jump on IRC and let's talk.
I'm happy to put time in if it makes it easier for other people to
write clients in the favorite language.
[1] Search for cc_generic_services in
https://developers.google.com/protocol-buffers/docs/proto
[2] https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.compiler.plugin.pb