V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Zuckonit
V2EX  ›  问与答

求推荐 跨语言的 rpc

  •  
  •   Zuckonit · 2014-05-16 14:02:10 +08:00 · 4694 次点击
    这是一个创建于 3640 天前的主题,其中的信息可能已经有所发展或是发生改变。
    求推荐 跨语言的rpc
    23 条回复    2014-05-17 13:39:06 +08:00
    initialdp
        1
    initialdp  
       2014-05-16 14:20:32 +08:00
    thrift
    chmlai
        2
    chmlai  
       2014-05-16 14:26:12 +08:00
    protobuf
    dcoder
        3
    dcoder  
       2014-05-16 15:03:30 +08:00
    最实用的当然是 HTTP RESTful API
    bengtuo
        4
    bengtuo  
       2014-05-16 15:10:24 +08:00
    thrift
    66450146
        5
    66450146  
       2014-05-16 15:14:56 +08:00
    RPC 本来就是跨语言的啊。。。只是有没有实现这个协议的问题罢了。。。楼主的问题不知所云。。。
    Zuckonit
        6
    Zuckonit  
    OP
       2014-05-16 15:32:50 +08:00
    @66450146 知道, 可能没表述清楚, 跨语言的意思是不用自己去实现客户端语言里面做反序列化。
    ctrlaltdeletel
        7
    ctrlaltdeletel  
       2014-05-16 15:37:01 +08:00
    只用过zerorpc,是基于ZeroMQ和MessagePack的。官方貌似只给了python和nodejs的客户端sdk。
    duoglas
        8
    duoglas  
       2014-05-16 15:40:14 +08:00   ❤️ 1
    据说这个应该有不同语言的客户端.
    噗, 我只是随便推荐下.
    https://github.com/alibaba/dubbo
    Zuckonit
        9
    Zuckonit  
    OP
       2014-05-16 15:44:56 +08:00
    @ctrlaltdeletel 本打算用这个的, 可惜只支持python, nodejs。 服务端打算用python做, 可是客户端用的php额
    Zuckonit
        10
    Zuckonit  
    OP
       2014-05-16 15:45:29 +08:00
    @duoglas 被迎面而来的一大堆目录吓尿
    jacobbubu
        11
    jacobbubu  
       2014-05-16 15:59:39 +08:00
    dnode
    Zuckonit
        12
    Zuckonit  
    OP
       2014-05-16 16:17:27 +08:00
    @dcoder Restful暂不考虑
    twor2
        13
    twor2  
       2014-05-16 17:35:08 +08:00 via iPhone
    hprose
    Zuckonit
        14
    Zuckonit  
    OP
       2014-05-16 17:47:14 +08:00
    @jacobbubu mark 一下
    a591826944
        15
    a591826944  
       2014-05-16 17:48:10 +08:00
    thrift
    9hills
        16
    9hills  
       2014-05-16 17:49:19 +08:00
    1,2 楼这么靠谱,lz竟然不考虑?
    Zuckonit
        17
    Zuckonit  
    OP
       2014-05-16 17:59:27 +08:00
    @9hills T___T 是靠谱, 感觉不是很易用。 发帖就是想寻些意见嘛
    Zuckonit
        18
    Zuckonit  
    OP
       2014-05-16 18:01:35 +08:00
    @twor2 mark
    aszxqw
        19
    aszxqw  
       2014-05-16 18:01:49 +08:00
    thrift对c++支持的不错。
    对python支持的不好,慎用。
    clino
        20
    clino  
       2014-05-16 21:48:32 +08:00
    之前同事刚用过一个 xmlrpc
    用uliweb给android 的 repo 的 smartsync 功能写了一个 xmlrpc 的 服务端
    clino
        21
    clino  
       2014-05-16 21:55:54 +08:00
    另外还有个不跨语言的 rpc (Remote Python Call)
    我觉得这个实现的接口用起来非常方便
    https://github.com/tomerfiliba/rpyc
    Lelouchcr
        22
    Lelouchcr  
       2014-05-16 22:04:04 +08:00
    简单,不追求速度,压缩的话 hessian
    hhkbp2
        23
    hhkbp2  
       2014-05-17 13:39:06 +08:00
    thrift, avro

    @aszxqw thrift对python有啥支持不好?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2457 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:39 · PVG 22:39 · LAX 07:39 · JFK 10:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.