Improve multiple endpoints configuration
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
Begin by locating the existing endpoint representation in project manifests and CLI flag parsing, then trace how endpoint values flow into project execution. Define the backward-compatible configuration shape and verify CLI JSON input and config-file runs; done means headers, rate limits, weighting, batch size, and retries work without breaking existing strings or arrays.
索引モデルが issue の本文から書いたものです。
説明
Description
Currently specifying endpoints is fairly limited. We can only specify a string for each one. But there are many use cases where you would want to have more control over these endpoints. This could include weighting them, specifying headers or rate limiting options.
Different api providers have different ways of providing api keys and other authentication. Currently the only way to do this is with path params and we convert them to headers. This is not very flexible and can lead to logging leaking api keys.
It is nearly impossible to determine the rate limit for an endpoint, being able to specify this will allow for optimal indexing speeds given a rate limited endpoint.
Requirements
- Be backwards compatible with current flags and project manifests
- Introduce a new data structure to specify endpoints details (this is a rough example):
type EndpointConfig = {
headers?: Record<string, unknown>;
rateLimit?: { requests: number, interval: 'second' | 'minute' | 'hour' };
weighting: number; // TBD, this should allow users to specify a primary endpoint that gets used over other endpoints
batchSize?: number; // JSON RPC batch size, where applicable (ethereum)
retries?: number; // Number of retries this endpoint will make before throwing. Default 1.
}
- Allow specifying a default EndpointConfig that applies to all endpoints
Manifests network endpoint would then have the following type string | string[] | Record<string, EndpointConfig>
- CLI flags should accept json strings for this new functionality.
- We should ensure that running a project from a config file works with this feature.
- 主要言語
- TypeScript
- スター
- 18.7k
- フォーク
- 396
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
subquery/subql のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
rohitg00/agentmemory#1428 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
boxlite-ai/boxlite#1729 ·
メンテナーはふだん 1 日以内に返信
-
detectors enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
SM260845/readme-gen#1 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
angular/angularfire#3774 ·
メンテナーはふだん 2 日以内に返信