Vote for the best protocol for the given scenario

后端 未结 9 2192
时光取名叫无心
时光取名叫无心 2021-02-08 22:04

I have a design decision to make. I need your advice.

Requirements:

  • A server and a client. client is typically a mobile phone.
  • Connected through t
9条回答
  •  日久生厌
    2021-02-08 22:52

    Go for option 1 and use Google Protocol Buffers to autogenerate your code from the protocol definition (i.e. it gives you some consistency / standardisation whilst still being efficient).

提交回复
热议问题