ETL: multi-tenant token management for high-volume data pipelines
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start by reading the SDK's existing OAuth token creation flow and CacheInterface to understand their contracts. Then determine whether token pooling belongs in the core SDK and how expiry should be represented; the issue leaves both decisions open. Done means an agreed design supports per-tenant token reuse and refresh before jobs start.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
In multi-tenant SaaS platforms, each tenant has its own Openapi credentials. Running ETL jobs for hundreds of tenants simultaneously requires generating, caching, and refreshing tokens per-tenant — something the current SDK does not model.
Current workaround
foreach ($tenants as $tenant) {
$oauth = new OauthClient($tenant['username'], $tenant['apikey']);
$token = json_decode($oauth->createToken($scopes), true)['token'];
// Problem: no TTL tracking, no reuse across jobs, no central cache
$client = new Client($token);
runEtlJob($tenant, $client);
}
What would help
A TokenPool or TokenStore abstraction that:
- Caches tokens per-tenant until near expiry
- Refreshes automatically before a job starts
- Plugs into the existing
CacheInterface
$pool = new TokenPool($oauthClient, cache: new RedisCache($redis));
$client = new Client(tokenPool: $pool->forTenant($tenantId));
Open questions
- Is
TokenPoolwithin scope for the core SDK or a separate package? - Should it integrate with the existing
Cache\CacheInterfaceor define its own contract? - How should token expiry be tracked — store the TTL alongside the token?
- Ngôn ngữ chính
- PHP
- Star
- 20
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openapi/openapi-php-sdk
-
Improve PHPDoc Consistency Across the CodebaseCó thể làm lại được @Seraphim200001 đã nhận 138 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
openapi/openapi-php-sdk#36 · 3 bình luận ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
openapi/openapi-php-sdk#34 ·
-
good first issue question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
openapi/openapi-php-sdk#33 · 2 bình luận ·
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
openapi/openapi-php-sdk#32 ·
-
help wanted question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
openapi/openapi-php-sdk#31 ·
Tất cả issue của openapi/openapi-php-sdk
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
scanaislop/aislop#482 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
humanmade/publication-checklist#73 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Werkstattl/OpenBlogware#92 ·