Async support
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
ソースファイル、テスト、エントリポイントはどれも名前が挙げられていません。まず、現在の同期イベントハンドラーのエントリポイントを整理し、引用されている Starlette と firebase-admin-python の非同期対応を確認してください。完了条件は、非同期ハンドラーのモデルが定義され、そのランタイム統合が行われ、説明されている逐次および並行ユースケースに対するカバレッジが文書化されていることです。
索引モデルが issue の本文から書いたものです。
説明
Would it make sense to support async functions here, so that the event handlers could be called in an async manner and consequently call async libraries?
This way a single instance could be handling more requests in parallel, for example if the cloud function calls several external APIs in a sequence to complete a process, and spends most of the time just waiting for responses, and uses only a little memory and CPU in general.
It is possible to call async code from the current sync functions, but it does not help with scalability, as the cloud function itself still blocks during the whole operation. This can help to do things in parallel in a cloud function, but not with sequential operations, which are common at least in our use case.
The original JS runtime is async, like all things Node, but also Python has standard async in version 3. Consequently, firebase-admin-python has worked on adding async support, since google-auth added async support in 2021. https://github.com/firebase/firebase-admin-python/issues/104
Hey Folks, We just released v5.3.0 which added async support for the Cloud Firestore API. This is the first step into fulfilling this FR so please give it a try and let us know what you think!
Starlette is a popular, lightweight ASGI framework which could maybe used for this, the same way Flask is for the sync version? https://www.starlette.io/
- 主要言語
- Python
- スター
- 167
- フォーク
- 36
- 平均マージ
- 4日 3時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/firebase-functions-python のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
HttpsError.__init__ does not pass message to super().__init__()対応中かも @Aayush99910 が 1 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
firebase/firebase-functions-python#314 · コメント 1 件 ·
-
Add support for VPC direct connect対応中かも @IzaakGough が 106 日前に担当しました。 オープンfeature-request
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
firebase/firebase-functions-python#275 · コメント 1 件 · リアクション 1 件 ·
-
feature-request
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
firebase/firebase-functions-python#271 · コメント 3 件 ·
-
[Bug] stability_digest_payload_from_ce_payload fails with AttributeError: 'dict' object has no attribute 'split'再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug unable to reproduce
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
firebase/firebase-functions-python#260 · コメント 6 件 ·
firebase/firebase-functions-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
UKGovernmentBEIS/inspect_ai#5781 ·
メンテナーはふだん 2 日以内に返信
-
Bump .cicd to wamp-cicd 4c2f9ac: `just land` refuses open A18 decisions, `just where` lists themオープン
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
crossbario/cfxdb#139 ·
-
Bump .cicd to wamp-cicd 4c2f9ac: `just land` refuses open A18 decisions, `just where` lists themオープン
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
crossbario/txaio#241 ·
-
UX
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
mediajunkie/piper-morgan-product#1963 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100