Why does invokeBinding not return metadata to caller?
- 主要言語
- Java
- スター
- 300
- フォーク
- 230
- 平均マージ
- 5日 1時間
- マージ済み PR(30日)
- 5
説明
When using SQL binding (tested with Postgres), sidecar is sending metadata and it is available at java-sdk level as well. However sdk only sends data to the caller, it ignores metadata completely.
Use case where metadata is helpful - Insert/Update/Delete queries (exec operation in sidecar) provide number of rows affected and this information is part of metadata. This information is useful for the application hence it should be sent to the caller.
Do we have any helper to get the metadata after invoking invokeBInding? If not, would like to get inputs for the use case.
Refs:
https://docs.dapr.io/reference/components-reference/supported-bindings/postgres/
https://github.com/dapr/java-sdk/blob/866b166e110a1b335396712b74dffe6410d7a7a9/sdk/src/main/java/io/dapr/client/DaprClientGrpc.java#L256
コントリビューションガイド
調査の方向性
sdk/src/main/java/io/dapr/client/DaprClientGrpc.java の256行目付近から始め、リンク先のドキュメントに記載されている Postgres binding のメタデータと binding レスポンスの処理を比較します。invokeBinding がメタデータ用のヘルパーを公開しているか、また呼び出し元向けに適切な API は何かを判断します。既存のレスポンスデータを失わずに影響を受けた行のメタデータを取得できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, postgresql
- 領域
- api, backend-api-design
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100