Is it OK to use gRPC to push data?

后端 未结 1 1844
盖世英雄少女心
盖世英雄少女心 2020-12-30 15:33

I\'m wondering if it\'s a good idea to push data from gRPC server to a client. Basically I want to use a pub/sub pattern with gRPC. The way I do is that I return a response

相关标签:
1条回答
  • 2020-12-30 16:05

    gRPC is intended to be used in this way.

    You should still consider how the client should behave on failures and how you may want to re-balance across backends. If your connection is going across the Internet, you may also want to enable keepalive to detect connection breakages by providing KeepaliveParams to the client and server.

    0 讨论(0)
提交回复
热议问题