Sync Event Log Store
Component Detail
Data Layer
low complexity
backend
0
Dependencies
3
Dependents
1
Entities
0
Integrations
Description
Append-only store for all sync operation outcomes. Each record captures entity type, direction, timestamp, status, error details, and idempotency key. Feeds the sync status dashboard and satisfies audit trail requirements.
sync-event-log-store
Responsibilities
- Append sync event records with full outcome metadata
- Query recent sync events by organization, entity type, and status
- Calculate aggregate sync metrics (success rate, error count, last success time)
- Purge events older than retention policy to manage storage
Interfaces
appendEvent(event: SyncEvent): Promise<void>
queryEvents(orgId: string, filter: SyncEventFilter): Promise<SyncEvent[]>
getMetrics(orgId: string): Promise<SyncMetrics>
purgeOldEvents(retentionDays: number): Promise<number>
Relationships
Dependents (3)
Components that depend on this component