Consider implementing pull / batch write to optimize flushing for streams
オープン
enhancement
performance
- 主要言語
- Java
- スター
- 12.1k
- フォーク
- 4k
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 37
説明
For streaming calls that can produce a batch of messages as a unit consider adding an interface that allows for a single flush to propagate through the framer to the transport.
In the case of outbound flow-controlled streams it should be possible for a producer to generate a sequence of messages that produce a single flush in response to the onReady (and onPayload) callbacks where the sequence of writes terminates when isReady becomes false.
コントリビューションガイド
調査の方向性
まず、issue に記載されているストリーミングコールバック、framer、トランスポートを追跡し、その後、送信側のフロー制御されたストリームが現在 onReady と onPayload をどのように処理しているかを確認します。合意されたインターフェースが、1 回の flush を生成するメッセージ列をサポートし、isReady が false になったときに書き込みを停止すれば、作業は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api, backend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100