12-Factor App methodology — 12 принципов для cloud-native: codebase, dependencies, config (env vars), backing services, build/release/run, stateless processes, port binding, concurrency, disposability (graceful SIGTERM), dev/prod parity, logs to stdout, admin processes. Foundation для контейнеризации и Kubernetes. 4 сценария: anti-pattern config-in-code vs factor 3, stateless scaling (factor 6+8), graceful SIGTERM (factor 9), build/release/run + logs (factor 5+11). 2 ADR: где 12-factor остался релевантен в 2026, sticky sessions vs externalized state.
The Twelve-Factor methodology separates source, build, release configuration, processes, backing services and logs. It is a useful application contract, but it does not supply a deployment controller, rollback, database replication, backup restoration, queue semantics or multi-region recovery. Those remain explicit architecture and operational work.
A cache outage can shift load to the database; a queue retry can repeat a side effect; and a process crash can leave an acknowledged request ambiguous. Define timeouts, retry budgets, idempotency keys, expiry and overload behavior for each backing service.
If a secret enters Git history, revoke or rotate it before attempting a history rewrite. Rewriting does not invalidate clones, forks or cached copies and can recontaminate the repository if collaborators are not coordinated.
Введите числа или выберите пресет