Single Source of Truth

noun

say it: “SING-gul SORS uv TROOTH” /ˈsɪŋɡəl sɔːrs əv truːθ/

Keeping each piece of data in one place that every part of the app reads from.

What is Single Source of Truth?

Single Source of Truth — Keeping each piece of data in exactly one place that everything else reads from. In an Angular app, the cart lives in one service, so the header's count and the checkout page can never disagree.

In a sentence

  • “The Cart service is the single source of truth, so the badge and checkout always agree.”

Level: Journeyman · More Software Development terms at this level

Updated