grpc / grpc/grpc-java

binder: SecurityPolicies.allOf() and anyOf() should efficiently interop with AsyncSecurityPolicy

オープン
#11,547 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
binder enhancement
主要言語
Java
スター
12.1k
フォーク
4k
平均マージ
2日 17時間
マージ済み PR(30日)
37

説明

### Is your feature request related to a problem?
As it stands, these composite security policies can be used with AsyncSecurityPolicy, but they end up blocking an additional thread on Future.get() [here](https://github.com/grpc/grpc-java/blob/782a44ad62f84d19291b0771b56b431e6e723752/binder/src/main/java/io/grpc/binder/AsyncSecurityPolicy.java#L45).

### Describe the solution you'd like
We could create new allOfAsync() and anyOfAsync() methods or try to update the existing methods to special case AsyncSecurityPolicy..

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、issue でリンクされている Future.get() 呼び出しの箇所にある binder/src/main/java/io/grpc/binder/AsyncSecurityPolicy.java を読み、次に既存の SecurityPolicies.allOf() および anyOf() API を調べます。非同期固有のメソッドと特別な処理のどちらが追加のブロッキングスレッドを避けるのに最適かを判断し、選択した API が既存の複合ポリシーの動作をどのように維持すべきかを検討します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
security
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。