🚀 Feature: Improve Storage API by adding streamed responses
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
調査の方向性
まず、SDKテンプレート全体で生成される getFileView、getFileDownload、getFilePreview のエントリポイントを追跡し、次に issue にリンクされている Android の getFileStream の変更と比較します。サポート対象の SDK 向けに互換性のあるストリーミングレスポンスのアプローチを定義し、既存のバイト配列メソッドを維持したうえで、生成された API が既存の呼び出し元を壊すことなく新しいオプションを公開することを検証します。
索引モデルが issue の本文から書いたものです。
説明
🔖 Feature description
Currently, getFileView/Download/Preview return byte arrays.
This will force the user to wait for the whole download to be complete, before he gets a response from the client call.
Also, the whole file will be held in RAM.
Previously, i ran into issues downloading big files: https://github.com/appwrite/sdk-for-android/issues/44
Here are some pros for this feature:
- Reduced Memory Usage:
Streaming allows data to be processed in smaller chunks rather than loading the entire content into memory. - Handling Large Files:
Streaming is particularly useful for handling large files, such as videos or high-resolution images. It allows applications to start playing or displaying content without waiting for the entire file to be downloaded
🎤 Pitch
I see two possible ways to implement this feature:
- Simply replace
ByteArraywithInputStream-> WILL BREAK COMPATIBILITY - Add three functions, suffixed with "Streamed" for example, enabling users to choose between
ByteArrayandInputStreamwithout breaking their current implementations." - Make use of generics, allowing the user to specify the return type:
getFileDownload<InputStream>()(Maybe not possible for every language)
In my case, i added a new function getFileStream to the Android SDK that returns an InputStream instead of a byte array.
https://github.com/joern-h/sdk-for-android/commit/60d10be7567dd67d119e30e252cea690a7cbcb96
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
- 主要言語
- Twig
- スター
- 330
- フォーク
- 212
- 平均マージ
- 12時間 3分
- マージ済み PR(30日)
- 131
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
appwrite/sdk-generator のほかの issue
-
🐛 Bug Report: Execution.fromMap throws Bad state: No element when server doesn't return resourceType (pre-Sites servers再び着手できるかも @Aakriti7-giti が 79 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
appwrite/sdk-generator#1858 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Generate Push by default for SDKs that already released it再び着手できるかも @ChiragAgg5k が 34 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
appwrite/sdk-generator#2043 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
appwrite/sdk-generator#1996 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
appwrite/sdk-generator#1851 ·
メンテナーはふだん 1 日以内に返信
-
📚 Documentation: Add Vale linting for all generated docs and examples対応中かも @kekubhai が 74 日前に担当しました。 オープン
appwrite/sdk-generator#1822 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
appwrite/sdk-generator の issue をすべて見る
似ている issue
-
HTTP Request Smuggling: non-final chunked Transfer-Encoding not rejected (CWE-444)対応中かも @code1a2024 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
IBM-Cloud/terraform-provider-ibm#7115 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
hiero-ledger/hiero-sdk-js#4793 ·
メンテナーはふだん 1 日以内に返信
-
.NET bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
weaviate/weaviate-python-client#2265 ·
メンテナーはふだん 1 日以内に返信