[Level 3 / Hard] Implement Incremental GitHub GraphQL Sync with Rate-Limit Backoff & ETag Caching

Aperta
#4,008 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@bhavesh-patil2007 ci sta già lavorando.

Dal 2/12/2026.

  • #4011 di @bhavesh-patil2007 — chiusa senza merge

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

status:assigned

Difficulty

Level 3 (Hard)

Problem Statement

Full-history GitHub API fetches on every dashboard refresh hit rate limits quickly and increase latency for active developers with large repository histories.

Proposed Solution

  • Implement an incremental sync worker using GitHub GraphQL cursors and conditional HTTP requests (ETag / If-None-Match).
  • Persist sync checkpoints per user/repository in PostgreSQL/Supabase.
  • Add exponential backoff with jitter when approaching X-RateLimit-Remaining thresholds.
  • Expose sync status and last-synced timestamps in the dashboard UI.

Acceptance Criteria

  • Incremental sync only fetches events/commits/PRs since the last stored cursor.
  • Rate-limit headers are tracked and respected with automatic backoff.
  • Unit and integration tests cover cursor persistence, 304 Not Modified handling, and rate-limit recovery.
Lingua principale
TypeScript
Stelle
246
Fork
436
Merge medio
9h 33m
PR unite (30g)
213

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Priyanshu-byte-coder/devtrack

Tutte le issue di Priyanshu-byte-coder/devtrack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.