最近还在考虑RPC方案,很可惜,ICE是不支持Python的串行化的。所以考虑一种方案,就是用protobuf做数据结构串行化,ICE做RPC框架。传递中的数据结构有可能是使用protobuf来存储的。查了一下protobuf对C#的支持,发现如下网页:
http://code.google.com/p/protobuf/wiki/OtherLanguages
才知道第三方语言支持这么多,我喜欢。
- Action Script: http://code.google.com/p/protobuf-actionscript3/
- Action Script: http://code.google.com/p/protobuf-actionscript/
- Action Script: http://code.google.com/p/protocol-buffers-actionscript/
- C: http://code.google.com/p/protobuf-c/
- C#: http://github.com/jskeet/dotnet-protobufs/tree/master
- C#: http://code.google.com/p/protosharp/
- C#/.NET/WCF/VB: http://code.google.com/p/protobuf-net/
- Common Lisp: http://code.google.com/p/cl-protobuf/
- Common Lisp: http://code.google.com/p/common-lisp-protobuf/
- Erlang: http://github.com/ngerakines/erlang_protobuffs/tree/master
- Haskell: http://darcs.haskell.org/packages/protocol-buffers/
- Java ME: http://code.google.com/p/protobuf-javame/
- Javascript: http://code.google.com/p/protobuf-js/
- Mercury: http://code.google.com/p/protobuf-mercury/
- Perl: http://groups.google.com/group/protobuf-perl
- Perl: http://search.cpan.org/perldoc?Google::ProtocolBuffers
- Perl/XS: http://code.google.com/p/protobuf-perlxs/
- PHP: http://code.google.com/p/pb4php/
- Ruby: http://code.google.com/p/protobuf-ruby/
- Ruby: http://code.google.com/p/ruby-protobuf/
- Visual Basic: http://code.google.com/p/protobuf-net/