Platform Engineering · Lesson 61

The Software Development Life Cycle: Waterfall, V-Model, Iterative, Agile, and DevOps

Every piece of software goes through the same phases, whatever the team calls them: work out what is needed, design it, build it, test it, secure it, release it, run it, and learn from how it is used. The software development life cycle (SDLC) is that sequence, and the models, waterfall, the V-model, iterative and spiral, Agile, and DevOps, differ in one main way: how much work passes through each phase at once, and how soon you find out you were wrong. This lesson follows one feature through the phases three ways, as part of a big waterfall release, as an Agile team without automation, and as a small batch through a DevOps pipeline, and shows where the weeks go and where a secure SDLC puts the security work.

Difficulty: Intermediate · Know this first: Lesson F06, Lesson 07, Lesson 60

Run it as:

When it breaks, I check

One thing to remember

Where the time goes

This bar splits one feature's journey from request to a lesson learned, in working days. It is a worked example, not a measurement. The building time is similar in every model; the difference is waiting, for the rest of a batch or in someone else's queue.

Try it: measure the delivery loop with the DORA metrics

Enter your team's four DORA metrics. The bands below are approximate, after the yearly DORA State of DevOps reports, whose exact thresholds change from year to year.

Roughly: high = deploys at least weekly, lead time under a week, failure rate under about 15%, restore within a day · low = deploys monthly or less, lead time over a month, or restore over a week

highthroughput
highstability
highoverall

Fast and stable: small batches are working

Check yourself

Three questions. No score is saved anywhere — this is just you against the material.

Basic to master

The SDLC grows in four levels: first the phases and the classic models, then running one model well, then a secure SDLC built into the pipeline, and finally choosing and changing the model for an organization.

Basic — Same phases, different batch sizes

At the basic level you can name the phases, requirements, design, build, test, release, operate, and maintain, and the main models.

  • Waterfall: each phase completes for the whole project before the next begins. Clear, predictable on paper, slow to learn.
  • V-model: waterfall with a test level paired to each phase: acceptance tests to requirements, system and integration tests to design, unit tests to code.
  • Iterative and incremental: build in slices, each going through all phases.
  • Spiral: iterations driven by risk: each loop tackles the biggest remaining risk first.
  • Agile (Scrum, Kanban): short iterations or continuous flow with frequent feedback; see Lesson F06 for the basics.
  • DevOps: the same team builds and runs, with automation from commit to production.

Try it: Basic

Which model pairs each development phase with a matching test level?

Now do it: Draw the V for one feature you know: what each test level would check.

Intermediate — Run one model well

At the intermediate level you run a team's life cycle so the phases do not become queues.

  • Requirements as small stories with acceptance criteria; a definition of done that includes tests, security checks, docs, and monitoring.
  • Trunk-based development with short-lived branches and code review.
  • A CI pipeline that runs the test pyramid on every change.
  • Feature flags so deploying and releasing are separate decisions.

Uses of each model: waterfall still fits fixed-scope work with hard external deadlines and little uncertainty, such as a regulatory filing; the V-model fits safety-critical systems that need traceable verification; iterative models fit almost everything with users.

Try it: Intermediate

What should a team's definition of done include so work does not pile up after the sprint?

Now do it: Write your team's definition of done and mark which items are checked by the pipeline and which by a person.

Advanced — A secure SDLC, built into the pipeline

At the advanced level security runs through every phase. Frameworks such as NIST's Secure Software Development Framework (SSDF, SP 800-218) and OWASP SAMM describe the practices; the pipeline makes them routine.

  • Plan and design: security requirements and a threat model for changes that cross a trust boundary.
  • Build: SAST, dependency (SCA) and secret scanning on every pull request; signed commits and protected branches.
  • Package: an SBOM, signed artifacts, provenance (SLSA levels).
  • Test: DAST against test environments; penetration tests for major changes.
  • Release and operate: policy checks at deploy, vulnerability management, and incident response.

Failure scenario: scanners that block on every low finding train people to ignore them. Gate on severity and exploitability, and route the rest to a backlog.

Try it: Advanced

A dependency scan finds a critical vulnerability in a library the service uses. In a secure SDLC, when should that be found?

Now do it: List the security checks in your pipeline per phase. Mark the gaps against the list above.

Master — Choose and change the model for an organization

At the master level you choose how an organization builds software and change it without stopping delivery.

  • Choose by uncertainty and risk: high uncertainty favours short iterations; high consequence of failure adds verification (V-model style traceability) without requiring big batches.
  • Measure: DORA's four metrics for the delivery loop, plus time from idea to learning; improve the slowest queue first.
  • Regulation: audits want evidence of review, testing, and approval. Pipelines produce that evidence for every change, which is stronger than a meeting.
  • Change management: move one value stream at a time, map its queues, automate the biggest, and show the metrics before and after.

Trade-off: big batches feel safer and plannable, and concentrate risk at the end; small batches feel chaotic at first, and spread risk into many small, reversible steps.

Try it: Master

A bank insists on a manual change board for every release because auditors require approval. What is the better design?

Now do it: Run batch_size.py in Go deeper and change WRONG to 12. Compare when each model discovers the last feature was misunderstood.

Go deeper

The models differ in batch size, and batch size decides how soon users get value and how soon you learn you were wrong. This script delivers the same 12 features as one big release and as 10-day iterations, and applies Little's law to work in progress. Standard library only; python3 batch_size.py.

The same work, one batch or many

# batch_size.py - the same 12 features, one big release or small iterations
FEATURES, DAYS_EACH, HORIZON = 12, 10, 180      # 10 working days of effort per feature
BIG_BANG_OVERHEAD = 30                           # integration, test phase and release for one big batch
WRONG = 7                                        # feature 7 was misunderstood

def big_bang():
    ship = FEATURES * DAYS_EACH + BIG_BANG_OVERHEAD
    return [ship] * FEATURES                     # everything reaches users on the same day

def iterative():
    return [DAYS_EACH * (i + 1) for i in range(FEATURES)]   # one feature per iteration

for name, plan in [("one big release", big_bang()), ("iterations of 10 days", iterative())]:
    first = min(plan)
    value = sum(max(0, HORIZON - d) for d in plan)          # feature-days in users' hands
    found = plan[WRONG - 1] + 5                              # users notice about 5 days after shipping
    print(f"{name}:")
    print(f"  first feature reaches users on day {first}")
    print(f"  feature-days of use by day {HORIZON}: {value}")
    print(f"  the misunderstood feature {WRONG} is discovered on day {found}")

# Little's law for work: lead time = work in progress / throughput
for wip in (12, 3, 1):
    print(f"{wip:>2} feature{'s' if wip > 1 else ' '} in progress, 1 finished per 10 days -> lead time {wip * DAYS_EACH} days each")
$ python3 batch_size.py
one big release:
  first feature reaches users on day 150
  feature-days of use by day 180: 360
  the misunderstood feature 7 is discovered on day 155
iterations of 10 days:
  first feature reaches users on day 10
  feature-days of use by day 180: 1380
  the misunderstood feature 7 is discovered on day 75
12 features in progress, 1 finished per 10 days -> lead time 120 days each
 3 features in progress, 1 finished per 10 days -> lead time 30 days each
 1 feature  in progress, 1 finished per 10 days -> lead time 10 days each

Read it like this: with the same effort, iterations put the first feature in users' hands on day 10 instead of day 150, give almost four times the use by day 180, and reveal the misunderstood feature 80 days sooner. The last three lines are Little's law: with one feature finished every ten days, every extra feature in progress adds ten days to everyone's lead time.

A secure SDLC in one pipeline (GitHub Actions)

name: build-test-secure
on: [pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      contents: read
    steps:
      - uses: actions/checkout@v4
      - name: Unit and integration tests
        run: make test
      - name: Static analysis (SAST)
        run: semgrep scan --config auto --error
      - name: Dependency scan (SCA)
        run: trivy fs --exit-code 1 --severity CRITICAL,HIGH .
      - name: Secret scan
        run: gitleaks detect --source . --redact
      - name: SBOM
        run: syft dir:. -o spdx-json > sbom.spdx.json

The workflow parses as YAML and follows the GitHub Actions syntax; the tools (Semgrep, Trivy, Gitleaks, Syft) must be installed in the runner first, usually with their official setup actions, and the commands should be checked against the versions you install. Design-time threat models and penetration tests stay human; everything above runs on every pull request.

One time it broke

This is a composite of a failure pattern that keeps repeating; the numbers are illustrative. A retailer planned a year-long replatforming as one waterfall release: requirements in Q1, design in Q2, build in Q3, test in Q4.

Timeline

  • Month 10Integration testing starts. Interfaces agreed in month 4 have drifted; 600 defects are logged in three weeks.
  • Month 12A penetration test finds the new checkout logs card data. The launch moves past the holiday season.
  • Month 15Launch. Customers dislike the new search, which was designed from requirements written before a competitor changed what people expect.

What changed after

The next phase was cut into thin slices, each launched to a few percent of customers behind a flag, with tests and security scans in the pipeline and a threat model per slice. The team still wrote requirements, designed, tested, and reviewed security; it just did all of them every two weeks for a small piece, and heard from customers within a month instead of a year.

If you remember nothing else

Design exercise

Redesign the delivery life cycle of a payments team that ships every quarter, has a manual QA phase and a monthly change board, and must pass PCI DSS audits.

Clarifying questions to ask

Where does a feature wait today, and for how long? Which approvals do the auditors actually require, and what evidence satisfies them? Which tests and security checks could run on every change? How will you release safely in smaller pieces?

Rough sizing

Say 8 engineers, 40 changes a quarter, a 90-day lead time, a 25 percent change failure rate, and a 5-day mean time to restore.

Shape of the answer

Map the value stream and its queues; trunk-based development with feature flags; the test pyramid and SAST, SCA, secret scanning, and SBOMs in CI; a threat model per change touching card data; standard changes approved automatically from pipeline evidence, with the board reviewing only high-risk changes; canary deployments with rollback; DORA metrics tracked monthly with targets of weekly deploys and under a week of lead time within two quarters.

Trade-offs to name

Automated approval satisfies auditors with better evidence and needs pipeline controls the auditors trust. Smaller releases lower risk per change and need flags, observability, and on-call maturity. Keeping a human board for high-risk changes slows those down on purpose.

Saved on this device, in this browser.
Next in this series · Lesson 62
Agile in Practice: Scrum, Kanban, Flow Metrics, and Forecasting

Lesson F06 introduced sprints, boards, and stand-ups. This lesson is what makes them work for an engineering team. Scrum gives a fixed rhythm: planning, a sprint, a review, and a retrospective.

Go to Lesson 62 →

Or browse the full course from the Lessons index.