Ravindra BagaleCourses & study guides मराठी

Chapter 2: The Three Pillars and Golden Metrics

Part 1 The Three Guilds.

Welcome to Chapter 2!

I am Ravindra Bagale. In Chapter 1, we learned about the history of software and why catching bugs early saves millions. In this chapter, we step inside the inner council of Code City to understand the three guilds: Developers (Dev), Security Engineers (Sec), and Operations Engineers (Ops).

Raju and Guru-ji stood in the central courtyard of Code City, where three distinct towers reached into the sky.

"Guru-ji," Raju observed, "The leaders in these three towers seem to be arguing constantly! The Builder in Tower 1 wants to open doors faster, the Guard in Tower 2 wants to lock all doors completely, and the Overseer in Tower 3 wants nobody to move so the city stays quiet!"

Guru-ji nodded knowingly. "Ah, Raju! You have just witnessed the Classic Conflict of Software Engineering. These are the Three Pillars. Until these three work in harmony, Code City will always remain in chaos!"

Chapter 2 Learning Roadmap

  • Breakdown of the 3 Pillars, their distinct mindsets, goals, and fears.
  • Cultural Transformation: Transitioning from blame culture to blameless collaboration.
  • Deep dive into the 4 Golden DORA Metrics + Security Metrics with mathematical formulas.
  • Real-world metrics calculation scenarios and organizational transformation guides.

Part 2 Pillar 1 Dev. Tower 1: The Developer Guild.

The Developer Mindset: Velocity and Innovation. Developers are the creators and artists of Code City. They turn business requirements into functional digital features that users interact with.

Primary Objective: High Velocity. Developers are measured by business stakeholders on how fast they deliver features (e.g., adding UPI payment buttons, social logins, or dark mode toggle).

KPI: Feature Delivery Rate. Success for a developer is shipping completed user stories per sprint. Their focus is inherently forward-looking: "What cool feature can we build next?"

The Developer's Biggest Blind Spot: Unchecked Speed. Because business management pressures developers for speed, security reviews and edge-case testing are often rushed or skipped. Code is written quickly using copy-pasted libraries from the internet without verifying their security safety!

Quote: "I just want my code to run and pass business QA so we can launch on Friday!" — Typical Developer Focus.

Part 3 Pillar 2 Sec. Tower 2: The Security Guild.

The Security Mindset: Risk Prevention and Defense. Security engineers act as the guardians and intelligence agents of Code City. They constantly look for weaknesses that malicious attackers might exploit.

Primary Objective: Zero Risk and Compliance. Security professionals are held accountable if a data breach, ransomware attack, or compliance audit failure occurs.

KPI: Vulnerability Rate and Audit Compliance. Success for Security is measured by zero open Critical/High vulnerabilities and 100% adherence to regulatory policies (ISO 27001, PCI-DSS, SOC2).

Blind spot: The "Department of NO". In traditional setups, Security operates at the very end of development. They block releases right before launch, causing frustration for business teams without providing clear code remediation guidance.

Quote: "Stop the launch! This application fails compliance check #402!" — Traditional Security Stance.

Part 4 Pillar 3 Ops. Tower 3: The Operations Guild.

The Operations Mindset: Stability and High Availability. Operations and SysAdmins keep the physical and cloud infrastructure running smoothly 24/7/365.

Primary Objective: System Uptime (99.99%). Ops teams manage cloud servers, networks, load balancers, and databases. They want systems to remain rock-solid and stable.

KPI: SLA Uptime and Incident Mean-Time-To-Resolution. Ops is woken up at 3:00 AM if a server crashes. Thus, their natural instinct is to resist frequent software changes because "change causes instability!"

GUILD CORE GOAL MAIN FEAR TRADITIONAL MOTTO
Developer (Dev) Ship features fast Missing deadlines "Move fast, build cool things!"
Security (Sec) Prevent breaches Data leak / Audit fine "Lock everything down!"
Operations (Ops) 100% System uptime Outages and 3 AM alerts "If it works, don't touch it!"

Part 5 Blameless Culture.

Guru-ji showed Raju how DevSecOps dissolves conflict by shifting from a Culture of Blame to a Blameless Culture.

The Old Way: The Finger-Pointing Game. When a production server crashed in the past, management asked: "WHO wrote this bad line of code? Fire them!" Result: Developers hid their mistakes, swept security issues under the rug, and blamed Ops for misconfiguring servers!

The DevSecOps Way: Blameless Post-Mortems. Instead of asking WHO caused the failure, DevSecOps asks: "WHAT process or automated safeguard was missing that allowed this mistake to reach production?"

Building a Security Champions Program. To scale security across large engineering departments, select 1 or 2 developers in every squad to become Security Champions.

They receive extra training in secure coding and threat modeling.

They act as the local security expert inside the development squad.

They bridge communication between the core Sec team and everyday Devs.

Part 6 DORA metrics 1 and 2.

Guru-ji opened the Grand Metric Scroll. DORA (DevOps Research and Assessment) identified four key metrics that differentiate top engineering teams.

Metric 1 Deployment Frequency (DF), Velocity. Definition: How often successful code is deployed to production. Formula: Deployment Frequency = (Total Production Deployments) / (Time Period).

Performance Level Deployment Frequency
Elite Multiple deployments per day
High Once per week to once per day
Low Fewer than once per month

Metric 2 Lead Time for Changes (LTC), Efficiency. Definition: Time elapsed from a developer committing code to that code running live in production. Formula: Lead Time = (Time Code Deployed) - (Time First Commit Created).

Performance Level Lead Time for Changes
Elite Less than 1 hour
High Between 1 day and 1 week
Low More than 1 month

Part 7 DORA metrics 3 and 4.

Metric 3 Mean Time to Restore (MTTR), Resilience. Definition: The average time required to recover from a production service outage or critical security incident. Formula: MTTR = (Total Downtime Minutes across Incidents) / (Number of Incidents).

Performance Level Mean Time to Restore
Elite Less than 1 hour (automated rollback)
High Less than 1 day
Low More than 1 week

Metric 4 Change Failure Rate (CFR), Quality. Definition: The percentage of deployments that cause a production outage or require an emergency hotfix. Formula: CFR = (Failed Deployments / Total Deployments) × 100%.

Performance Level Change Failure Rate
Elite 0% to 15%
High 16% to 30%
Low Greater than 45%

Part 8 Security metrics.

Guru-ji emphasized: "DORA metrics measure speed and stability, but DevSecOps requires measuring security risk!"

  1. Mean Time to Remediate (MTTR-Sec). Time elapsed between identifying a security vulnerability (via SAST/SCA/Pentest) and deploying the verified patch. Target: Critical (SLA < 24h), High (SLA < 7 days).
  2. Vulnerability Escape Rate (VER). Percentage of total security bugs that bypassed automated CI/CD security gates and were discovered in live Production. VER = (Prod Security Bugs / Total Security Bugs Found) × 100%.
  3. Dependency Freshness (Software Age). Measures how outdated third-party open-source libraries are relative to their latest upstream secure release.

Part 9 Calculation workshop.

Guru-ji's Real-World Calculation Challenge for Raju:

A Fintech Startup (PayFast) recorded the following team data over a 30-day month:

  • Total deployments pushed to production: 60 deployments
  • Deployments that caused server crashes / bugs: 6 deployments
  • Outage durations: Incidents took 10, 20, 15, 30, 25, and 20 minutes to fix.
  • Developer code commit to live deployment average time: 45 minutes

Raju's Step-by-Step Solution

  1. Deployment Frequency: 60 / 30 days = 2 deployments/day (High/Elite Performer)
  2. Lead Time for Changes: 45 minutes (Elite Performer < 1 hr)
  3. Change Failure Rate: (6 / 60) × 100% = 10% (Elite Performer < 15%)
  4. MTTR: (10+20+15+30+25+20) / 6 = 120 / 6 = 20 minutes (Elite Performer < 1 hr)

"Guru-ji, PayFast is an Elite DORA Performing Team!" — Raju exclaimed proudly.

Conclusion.

  • DevSecOps Culture: Aligns Dev (speed), Sec (risk), and Ops (uptime) into a shared responsibility model.
  • Blameless Culture: Focuses on systemic fixes and automated safeguards rather than pointing fingers at individuals.
  • Security Champions: Scaling security expertise into individual development squads.
  • 4 Golden DORA Metrics: Deployment Frequency, Lead Time, MTTR, and Change Failure Rate track delivery speed and stability.
  • Security Metrics: MTTR-Sec and Vulnerability Escape Rate ensure quality is maintained at pace.

Looking Ahead to Chapter 3: Threat Modeling. In Chapter 3, Raju and Guru-ji learn how to become the Mind of the Hacker. We will cover:

  • The STRIDE Threat Modeling Framework.
  • PASTA Framework for Enterprise Risk.
  • Drawing Data Flow Diagrams (DFDs) for a Payment Gateway application.

END OF CHAPTER 2 MASTER CLASS