The Twelve Factors
2021-11-01 09:35:45 0 举报
AI智能生成
微服务设计12条准测
作者其他创作
大纲/内容
automatically build
Build
rollback
release Id
Release
Run
stages
stateless & share nothing
Processes
handle diverse workloads by assigning each type of work to a process type
scale out
never daemonize or write PID files
processes are a first class citizen
Concurrency
The time gap
The personnel gap
The tools gap
Dev/prod parity
never concerns itself with routing or storage of its output stream
Logs
run in an identical environment as the processes of the app
same dependency isolation techniques should be used on all process types
Admin processes
App is always tracked in a version control system
A codebase is any single repo
one-to-one correlation between the codebase and the app
Codebase
app never relies on implicit existence of system-wide packages
Dependence
strict separation of config from code
app stores config in environment variables
Config
app makes no distinction between local and third party services
Backing Services
self-contained
exports as a service by binding to a port
Port binding
Processes shut down gracefully when they receive a SIGTERM signal from the process manager
Processes should also be robust against sudden death
Disposability
The Twelve Factors
收藏
0 条评论
回复 删除
下一页