Status: Accepted (in force). Verified 2026-07-21.

Context

The Warehouse (RFD-001) is a copy of operational data. A copy needs a refresh strategy. Options: refresh on every operational write (transactional, always current, but couples every write to warehouse maintenance), or refresh periodically (decoupled, but lagging).

Decision

Refresh periodically, via DataSynchronizationService — a BackgroundService on a 30-second loop that calls SyncBIData() across the domain services:

every 30s: Person, Payroll, Requests, Contractor, Payment .SyncBIData()
           + SyncContactData, EWA employees → CleanupDataSyncTask()

So the Warehouse — and therefore all reports and dashboards — is eventually consistent, trailing live data by up to ~30 seconds plus the sync duration.

Consequences

Good:

Bad / costs:

Guidance