Choosing an Explicit Configuration Boundary

Configuration can select behavior without changing the built artifact. Define where defaults and overrides are read and which parts depend on them.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a view default
  2. Keep the scope predictable

Trace a view default

A service can choose a default search language from a settings record passed to its index. Tests can supply another value without touching shared variables. See module state and settings.

Keep the scope predictable

Document whether values are read at startup, per request, or per job. Input snapshots explain why the time matters.[1]

References

  1. David L. Parnas, On the Criteria to Be Used in Decomposing Systems into Modules, CMU-CS-71-101 ↩