Twelve Factor: Difference between revisions
From ym2149.org
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
== XI == | == XI == | ||
* logging goes to stderr not stdout | * logging goes to stderr which is already unbuffered and this is consistent with the rest of the world, not stdout which is fully buffered (would be line buffered if connected to a terminal) | ||
* wishful thinking to characterise logging as an event stream as much of it is under the control of libs or even other processes, and logs are typically untested | |||
* structured logging to satisfy the demands of visual tools is expensive, plain text is sufficient for investigating incidents using ordinary unix tools, and it compresses well | |||
[[Category:Programming]] | [[Category:Programming]] |
Revision as of 13:07, 19 April 2024
- https://12factor.net/
- itil for influencers
III
- environment variables are too crude for typical config workloads
V
- to avoid unpleasant surprises, a deployment should only be able to access config specific to that environment (along with config common to all envs)
X
- differences between envs must be inspectable, so that the confidence you gain in one env actually means something in the next
XI
- logging goes to stderr which is already unbuffered and this is consistent with the rest of the world, not stdout which is fully buffered (would be line buffered if connected to a terminal)
- wishful thinking to characterise logging as an event stream as much of it is under the control of libs or even other processes, and logs are typically untested
- structured logging to satisfy the demands of visual tools is expensive, plain text is sufficient for investigating incidents using ordinary unix tools, and it compresses well