• 请不要在回答技术问题时复制粘贴 AI 生成的内容
shawngao
V2EX  ›  程序员

客户端(iOS/Android)直接使用 GRPC 与服务端进行通讯有坑吗?

  •  
  •   shawngao · Aug 30, 2019 · 2843 views
    This topic created in 2456 days ago, the information mentioned may be changed or developed.
    或者用 protobuf 序列化数据,但使用 http 来 serve,不知道这种做法是否可行?
    5 replies    2019-08-31 14:57:56 +08:00
    ihciah
        1
    ihciah  
       Aug 30, 2019 via iPhone
    protobuf+http2 不就是 grpc 了吗…你自己用 http 造轮子不一定效率高,至少连接不能复用
    ai277014717
        2
    ai277014717  
       Aug 30, 2019
    Mock 和调试会比较麻烦。
    ikaiguang
        3
    ikaiguang  
       Aug 30, 2019
    作为后端开发。对接过 ios,android

    安装可能有个:自签证书无法验证的坑。

    得手动跳过之类的。
    lqs
        4
    lqs  
       Aug 30, 2019
    在前前公司用过 android + http + proto2,遇到过 required 和 optional 的坑
    在现公司正在用 iOS + grpc + proto3,顺便可以实现长连接,需要回避默认值是 0 的问题,还没遇到其他坑
    boob
        5
    boob  
       Aug 31, 2019 via Android
    firebase 居然没听过?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1179 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 23:18 · PVG 07:18 · LAX 16:18 · JFK 19:18
    ♥ Do have faith in what you're doing.