dora-core
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDORA Core Model
DORA核心模型
DORA measures how fast and how safely a team delivers software. It is the bridge between product strategy (what to build, when to release) and technical execution (how to build it reliably).
DORA用于衡量团队交付软件的速度与安全性,是产品策略(构建什么、何时发布)与技术执行(如何可靠构建)之间的桥梁。
The 4 Key Metrics
4项关键指标
| Metric | What it measures |
|---|---|
| Deployment Frequency (DF) | How often code is deployed to production |
| Lead Time for Changes (LT) | Time from code commit to running in production |
| Change Failure Rate (CFR) | % of deployments causing a production incident |
| Time to Restore (MTTR) | Time to recover from a production failure |
| 指标 | 衡量内容 |
|---|---|
| Deployment Frequency (DF) 部署频率 | 代码部署至生产环境的频次 |
| Lead Time for Changes (LT) 变更前置时间 | 从代码提交到在生产环境运行所需的时间 |
| Change Failure Rate (CFR) 变更失败率 | 引发生产事故的部署占比 |
| Time to Restore (MTTR) 恢复时间 | 从生产故障中恢复所需的时间 |
Performance Tiers
性能层级
| Tier | Deployment Frequency | Lead Time | Change Failure Rate | MTTR |
|---|---|---|---|---|
| Elite | On-demand (multiple/day) | < 1 hour | 0–5% | < 1 hour |
| High | 1/day – 1/week | 1 day – 1 week | 6–15% | < 1 day |
| Medium | 1/week – 1/month | 1 week – 1 month | 16–30% | 1 day – 1 week |
| Low | 1/month – 1/6 months | 1 month – 6 months | 16–30% | > 1 week |
Elite and High performers deploy 973× more frequently and have 6,570× faster recovery than Low performers (DORA 2023 State of DevOps).
| 层级 | 部署频率 | 前置时间 | 变更失败率 | 恢复时间 |
|---|---|---|---|---|
| 精英级 | 按需部署(每日多次) | < 1小时 | 0–5% | < 1小时 |
| 高级 | 每日1次 – 每周1次 | 1天 – 1周 | 6–15% | < 1天 |
| 中级 | 每周1次 – 每月1次 | 1周 – 1个月 | 16–30% | 1天 – 1周 |
| 低级 | 每月1次 – 每6个月1次 | 1个月 – 6个月 | 16–30% | > 1周 |
精英级和高级团队的部署频率比低级团队高973倍,恢复速度快6570倍(来源:DORA 2023年DevOps状态报告)。
Key Capabilities (The Drivers)
关键能力(驱动因素)
DORA research identifies capabilities that predict high performance. Focus on these highest-impact ones:
DORA研究确定了可预测高性能的能力,重点关注以下高影响力能力:
Technical Capabilities
技术能力
| Capability | Impact | Integration |
|---|---|---|
| Loosely Coupled Architecture | #1 predictor of high DF | |
| Trunk-Based Development | Reduces integration debt | Short-lived branches, feature flags |
| Continuous Integration | Reduces LT and CFR | Automated test on every commit |
| Test Automation | Reduces CFR | Unit + integration tests in CI |
| Deployment Automation | Reduces LT | One-click or auto deploy to prod |
| Shifting Left on Security | Reduces CFR | Security checks in CI, not post-deploy |
| Monitoring & Observability | Reduces MTTR | Metrics, logs, traces in production |
| Database Change Management | Reduces CFR | Schema migrations versioned and automated |
| 能力 | 影响力 | 集成方式 |
|---|---|---|
| 松耦合架构 | 部署频率高的首要预测因素 | |
| 主干开发 | 减少集成债务 | 短生命周期分支、功能开关 |
| 持续集成 | 缩短前置时间、降低变更失败率 | 每次提交自动触发测试 |
| 测试自动化 | 降低变更失败率 | CI中集成单元测试+集成测试 |
| 部署自动化 | 缩短前置时间 | 一键或自动部署至生产环境 |
| 左移安全 | 降低变更失败率 | 在CI中执行安全检查,而非部署后 |
| 监控与可观测性 | 缩短恢复时间 | 生产环境中的指标、日志、链路追踪 |
| 数据库变更管理 | 降低变更失败率 | 版本化并自动化执行 schema 迁移 |
Process Capabilities
流程能力
| Capability | Impact |
|---|---|
| Working in Small Batches | Directly reduces LT and CFR |
| Streamlining Change Approval | Manual approval gates are the #1 LT killer |
| Team Experimentation | Faster learning → better product decisions |
| Customer Feedback | Shorter feedback loop → less wasted work |
| 能力 | 影响力 |
|---|---|
| 小批量工作 | 直接缩短前置时间、降低变更失败率 |
| 简化变更审批 | 手动审批关卡是延长前置时间的首要因素 |
| 团队实验 | 更快学习 → 更优产品决策 |
| 客户反馈 | 更短反馈循环 → 减少无效工作 |
Cultural Capabilities
文化能力
| Capability | Impact |
|---|---|
| Generative Culture (Westrum) | High trust, blameless postmortems → faster MTTR |
| Psychological Safety | Teams that can surface problems fix them faster |
| Learning Culture | Continuous improvement on all 4 metrics |
| 能力 | 影响力 |
|---|---|
| 生成式文化(Westrum模型) | 高信任、无责事后复盘 → 更快恢复时间 |
| 心理安全感 | 敢于暴露问题的团队能更快解决问题 |
| 学习型文化 | 持续优化全部4项指标 |
DORA Assessment: How to Use
DORA评估:使用方法
- Measure current tier — ask for each of the 4 metrics in the last 30 days
- Identify the bottleneck metric — which metric is worst relative to its tier?
- Map to capability — use the table above to find the root capability gap
- Prioritize — fix the bottleneck capability first; others are downstream
- 衡量当前层级 —— 统计过去30天内的4项指标
- 识别瓶颈指标 —— 哪项指标相对于其层级表现最差?
- 映射至能力 —— 通过上表找到核心能力差距
- 优先处理 —— 先解决瓶颈能力;其他问题为下游影响
Quick Diagnostic Questions
快速诊断问题
- "How often do you deploy to production?" → Deployment Frequency tier
- "How long from to live in prod?" → Lead Time tier
git commit - "What % of deploys caused a hotfix or rollback in the last quarter?" → CFR tier
- "When production broke last, how long to restore?" → MTTR tier
- "你们多久向生产环境部署一次?" → 部署频率层级
- "从到上线需要多长时间?" → 前置时间层级
git commit - "过去一个季度中,有多少比例的部署需要热修复或回滚?" → 变更失败率层级
- "上次生产故障时,花了多久恢复?" → 恢复时间层级
Integration with Other Skills
与其他技能的集成
→ diffusion-release-tracking
diffusion-release-tracking→ diffusion-release-tracking
diffusion-release-trackingDeployment Frequency is a prerequisite signal before advancing Rogers Gates:
- Elite/High DF (daily+): can iterate rapidly through Innovator → Early Adopter gates
- Medium DF (weekly): gate advancement is slower; plan for longer validation windows
- Low DF (monthly): cannot run proper phased rollouts — fix DF first before attempting Rogers gate strategy
部署频率是推进Rogers阶段的先决信号:
- 精英/高级部署频率(每日及以上):可快速迭代完成创新者→早期采用者阶段
- 中级部署频率(每周):阶段推进较慢;需规划更长的验证周期
- 低级部署频率(每月):无法执行合理的分阶段发布 —— 先解决部署频率问题,再尝试Rogers阶段策略
→ collaborative-engineering-agent
collaborative-engineering-agent→ collaborative-engineering-agent
collaborative-engineering-agent| DORA Metric | CEA Practice |
|---|---|
| Lead Time ↓ | Atomic PRs (<200 lines), trunk-based dev reduces integration bottleneck |
| CFR ↓ | Dialectical Review Engine (DRE) catches issues before merge |
| MTTR ↓ | Automated fix-branch workflow, observability tooling |
| DORA指标 | CEA实践 |
|---|---|
| 前置时间 ↓ | 原子PR(<200行)、主干开发减少集成瓶颈 |
| 变更失败率 ↓ | 辩证评审引擎(DRE)在合并前发现问题 |
| 恢复时间 ↓ | 自动修复分支工作流、可观测性工具 |
→ c4-model
+ ddd-core
c4-modelddd-core→ c4-model
+ ddd-core
c4-modelddd-core- Loosely Coupled Architecture (DORA's #1 capability) is achieved through:
- C4 L2: independent deployable containers with clear API boundaries
- DDD: Bounded Contexts with anti-corruption layers prevent cascade failures
- Conway's Law applies: if the org structure is tightly coupled, the architecture will be too — and DF suffers
- 松耦合架构(DORA排名第一的能力)可通过以下方式实现:
- C4 L2:具有清晰API边界的独立可部署容器
- DDD:带防腐层的限界上下文防止级联故障
- 康威定律适用:如果组织架构紧密耦合,技术架构也会紧密耦合 —— 进而影响部署频率
→ business-product-leadership
business-product-leadership→ business-product-leadership
business-product-leadership| DORA Tier | Product Strategy Implication |
|---|---|
| Elite | Deploy on-demand → rapid MVP validation, tight Rogers feedback loop |
| High | Weekly deploys → manageable Early Adopter gate iteration |
| Medium | Monthly deploys → must plan Rogers gate windows months in advance |
| Low | Cannot run agile product strategy — delivery is the bottleneck |
| DORA层级 | 产品策略影响 |
|---|---|
| 精英级 | 按需部署 → 快速MVP验证、紧密的Rogers反馈循环 |
| 高级 | 每周部署 → 可管理的早期采用者阶段迭代 |
| 中级 | 每月部署 → 需提前数月规划Rogers阶段周期 |
| 低级 | 无法执行敏捷产品策略 —— 交付环节是瓶颈 |
Anti-Patterns
反模式
- Measuring DF but ignoring CFR — high DF with high CFR = fast failure, not fast delivery
- Using DF as a vanity metric — deploying to staging doesn't count; production only
- Manual change approval gates — DORA research shows this is the single biggest LT killer, with no measurable CFR improvement
- Optimizing MTTR with more process — MTTR is reduced by observability and psychological safety, not more approval steps
- Treating DORA as a report card — metrics are diagnostic tools, not performance reviews
- 只衡量部署频率却忽略变更失败率 —— 高部署频率+高变更失败率=快速失败,而非快速交付
- 将部署频率视为虚荣指标 —— 部署至预发布环境不算数;仅统计生产环境
- 手动变更审批关卡 —— DORA研究表明这是延长前置时间的最大单一因素,且对降低变更失败率无显著作用
- 通过增加流程优化恢复时间 —— 恢复时间的缩短依赖于可观测性和心理安全感,而非更多审批步骤
- 将DORA视为成绩单 —— 指标是诊断工具,而非绩效评估标准