Free lesson · Module 1, lesson 4 of 7

Meet the Campus Notice Board: the service you will run

Read the notice board's parts (an API, a database, an image, a pipeline, a cluster, a dashboard) on a recorded run of the finished system, and name the module that adds each part.

Lessons in this module

Lesson notes

For the student

The Campus Notice Board is a small web service that posts and lists college notices. Its API and its PostgreSQL database are given and finished: you run them and never edit app/. Everything that delivers and runs them is what you build, one part per module. Nothing to install for this lesson; you start the board yourself in lesson 1.7.

The six parts

  • API and database: posts and lists notices, answers in JSON; given, started in lesson 1.7
  • Image: the app sealed with everything it needs (module 6, containers)
  • Pipeline: lint, test, build and deploy on every push (module 7, CI and CD)
  • Cloud as code: the bucket, the network and the roles as files (module 8, infrastructure as code with Terraform)
  • Cluster: keeps 3 copies running and replaces one that crashes (module 9, Kubernetes)
  • Dashboard and alerts: numbers, graphs and a call when it breaks (module 10, monitoring)

The recorded run, `labs/m01/recorded-run.txt`

  • Lines 1, 2 and 5: the push of fix/exam-form-date, pull request #14, the merge
  • Lines 3 and 4: lint and tests; lines 6 and 7: the image campus-notice-board:sha-3f9c2a1 pushed, then a smoke test on staging
  • Lines 8 and 9: the Helm upgrade, then notice-board 3/3 ready
  • Lines 10 and 11: /version answers {"version":"1.4.0","commit":"3f9c2a1"}: the running service was built from that commit
  • Line 12: the dashboard, requests 4.2/s, errors 0.0%, p95 latency 38 ms (95 requests in 100 finish within 38 ms), pods 3/3; line 13: the alerts, none firing

The module map follows the path

  • 2 shell, 3 network, 4 Git; 5 cloud, 6 container; 7 pipeline, 8 Terraform; 9 cluster, 10 monitoring; 11 security and cost, 12 capstone
  • Each module needs the one before it, so take them in order
  • Seeing a problem (monitoring) and fixing it (the cluster starting a new copy) are different parts

Try it

  • Worksheet task 4 in labs/m01/README.md: read labs/m01/recorded-run.txt and label each of its 13 numbered lines with its stage from lesson 1.1 and the module that adds it
  • You should have a labelled list of 13 lines, for example line 12: watch, module 10

Lesson quiz

Checked in your browser. Nothing is sent or saved.

5 questions

Question 1 · easy

Which parts of the Campus Notice Board are given to you, finished?

Question 2 · medium

Which module adds the pipeline that lints, tests, builds and deploys on every push?

Question 3 · medium

Line 12 of the recorded run reads requests 4.2/s, errors 0.0%, p95 latency 38 ms, pods 3/3. What does p95 latency 38 ms mean?

Question 4 · medium

How does a team know that a merged fix is really live?

Question 5 · hard

Monitoring sees one copy of the notice board crash. Which part starts a new copy?

The cloud in one picture: computers rented by the minuteNext: DevOps and cloud roles: the job, the skills, the interview