Sync Retry Queue
Component Detail
Infrastructure
medium complexity
backend
1
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Durable job queue for failed sync operations. Implements exponential back-off with a configurable max-retry ceiling. Ensures failed syncs are never silently dropped and surfaces persistent failures as actionable alerts in the security dashboard.
sync-retry-queue
Responsibilities
- Enqueue failed sync operations with full context payload for retry
- Execute retries with exponential back-off strategy
- Move permanently failed jobs to a dead-letter queue after max retries exceeded
- Emit alert events for dead-letter queue entries to trigger security dashboard notifications
Interfaces
enqueue(job: SyncJob): Promise<void>
processNext(): Promise<void>
getQueueDepth(orgId: string): Promise<number>
getDeadLetterJobs(orgId: string): Promise<SyncJob[]>
replayDeadLetterJob(jobId: string): Promise<void>
clearDeadLetterQueue(orgId: string): Promise<void>
Relationships
Dependents (2)
Components that depend on this component