aws / aws/serverless-java-container
Use Futures instead of latches to synchronize request processing
オープン
enhancement
- 主要言語
- Java
- スター
- 1.6k
- フォーク
- 574
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
* Framework version: 2.0
* Implementations: All
## Scenario
The framework currently uses latches on the `HttpServletResponse` implementation to wait for the completion of a request. We should change this to use Futures. This need for this was highlighted in #272 as throwing an exception without releasing the latch may cause memory leaks.
コントリビューションガイド
調査の方向性
まず HttpServletResponse の実装と、リクエスト処理中に使用される latch のライフサイクルを追跡し、次に latch が解放されないままになる可能性のある例外経路について issue #272 を確認します。すべての実装で、リクエストの完了に latches ではなく Futures を使用し、例外発生時にもリソースを保持しない状態になれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api, backend
- issue の種類
- リファクタリング
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100