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

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

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

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

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