Skip to content
Ameen Abozaid
ARC-014

Compute choices

  • 6 Lessons
  • 3 h practice (estimate)
On this page 9 topics

Overview

Topics

  • VMs
  • containers
  • Kubernetes
  • serverless

Learn first

3 h of practice (estimate)

Learning outcomes

  1. Compare VMs, containers on managed platforms, Kubernetes, and serverless functions by control, scaling, cost, and operating effort.
  2. Match compute to workload shape (steady, spiky, event-driven, batch).
  3. Decide whether an organization should run Kubernetes at all.

Lessons

  1. 01The compute spectrum
  2. 02VMs and managed container platforms
  3. 03Kubernetes: when it is worth it
  4. 04Serverless functions
  5. 05Matching compute to workload shape
  6. 06Demo: compute choices for Larkspur's storefront, order processing, and nightly batch

Lab and exercises

Lab

ARC-014-LAB1 · Compute decisions

Outcomes: 1–3 · Time: ~3 h

  1. List the Larkspur workloads: storefront API, order processing, product search indexing, nightly stock and ERP batch, image resizing.
  2. Describe each workload's shape (steady, spiky, event-driven, batch).
  3. Choose compute per workload and describe scaling behavior and operating model.
  4. Write each choice as an ADR including team skills and on-call capacity.
  5. State when each decision should be revisited.

Acceptance: the team's skills and operating capacity are part of each decision.

Exercises (case-based; six exercises)

IDOutcomeTask
ARC-014-EX011Compare VM, managed containers, Kubernetes, and functions for the product-image resizer on four criteria.
ARC-014-EX021List what the Larkspur team still operates when it uses managed containers versus VMs.
ARC-014-EX032Match four workloads (checkout API, Black Friday catalog reads, ERP nightly export, order-confirmation email) to compute and justify.
ARC-014-EX042A function processes a continuous stream 24 hours a day and the bill is high. Diagnose and propose a change.
ARC-014-EX053Write a one-page recommendation on whether Larkspur should run Kubernetes now.
ARC-014-EX063Define three measurable revisit triggers that would justify moving to Kubernetes.
Show solutions
  • EX01 Functions: event-triggered on upload, scale to zero, low effort, ideal; managed containers: fine but idle cost; VM: most effort; Kubernetes: overkill.
  • EX02 Containers: images, deployments, autoscaling rules, application monitoring. VMs: all that plus OS patching, hardening, scaling groups, and host monitoring.
  • EX03 Checkout API: managed containers, autoscaling. Catalog reads: CDN and cache plus autoscaling containers. ERP export: scheduled batch job. Email: queue-triggered function or worker.
  • EX04 Per-run pricing on steady load exceeds a continuous small instance; move to a container service with steady capacity, keep functions for bursts.
  • EX05 Recommend no for now: few services, small team, no platform capacity; operating cost exceeds benefit; use managed containers and revisit.
  • EX06 For example: more than about 15 services, more than three teams deploying independently, a dedicated platform team of at least two, or a requirement for custom scheduling or portability.

Workplace evidence: a compute platform decision you made with operating cost considered.

Outcome coverage: all outcomes covered by exercises and the lab.

Quiz

Outcomes: O1 compare options · O2 match to workload shape · O3 decide on Kubernetes.

A self-check for you: nothing is graded, saved or sent anywhere. Choose an answer, then check it. You can try again as often as you like.

  1. 1Which option gives the most control and the most operating work?O1
  2. 2Serverless functions typically:O1
  3. 3A managed container platform removes the need to:O1
  4. 4A nightly restartable batch job fits best on:O2
  5. 5Steady predictable load is usually cheapest on:O2
  6. 6A known risk of spiky function workloads is:O2
  7. 7Kubernetes is most justified when there are:O3
  8. 8The default for a small team with simple workloads is:O3
  9. 9A good ADR for compute includes:O3
  10. 10"Serverless for long-running steady load" is a mistake because:O3

Practical part

ADR review of the ARC-014-LAB1 compute decisions plus exercises ARC-014-EX01 to EX06. Pass: quiz at least 8/10, at least five of six exercises correct, and each ADR including the team's skills and operating capacity.

Common mistakes

Kubernetes for a small team with simple workloads; serverless for long-running steady load.

Assessment

ADR review.

Workplace evidence

A compute platform decision you made with operating cost considered.

Career relevance

Cost architecture (ARC-021).

Type to search levels, phases, modules and lessons.