qiyuey
V2EX  ›  Java

gRPC 的 stream 有比较适合的场景吗?

  •  
  •   qiyuey · Apr 20, 2020 · 3494 views
    This topic created in 2221 days ago, the information mentioned may be changed or developed.
    一直都是用 rpc 的单次调用,格局、视野受限;随着 Reactive 、Coroutines Flow 的兴起,进一步方便了 stream 的使用,个人感觉提供了更多想象的空间;想问一下大家有实际使用的场景可以分享吗?
    6 replies    2020-04-20 14:39:48 +08:00
    guonaihong
        1
    guonaihong  
       Apr 20, 2020
    asr,语音识别等流式场景。
    qiyuey
        2
    qiyuey  
    OP
       Apr 20, 2020
    @guonaihong 是指被识别的语音数据,会一批一批不断传送过来吗?
    guonaihong
        3
    guonaihong  
       Apr 20, 2020
    @qiyuey 是啊。手机端边说话,服务端边识别。
    labulaka521
        4
    labulaka521  
       Apr 20, 2020
    https://github.com/labulaka521/crocodile 我这个项目就用到了,单向流,用来回传实时日志。
    dbskcnc
        5
    dbskcnc  
       Apr 20, 2020
    crud 的历史数据查询也很好用啊
    xkeyideal
        6
    xkeyideal  
       Apr 20, 2020
    watch 数据变更,数据实时上传,推送大量数据,场景很多,个人也用了很多
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4414 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 05:33 · PVG 13:33 · LAX 22:33 · JFK 01:33
    ♥ Do have faith in what you're doing.