Free self-study · No account needed · Progress stays in this browser. Back it up before clearing site data or changing devices.

← All weeks

Advanced and Production AI / Week 23

Production AI Architecture

Build a versioned local application service. Package the accumulated components, add bounded queues, scoped caches, and a controlled local rollout.

Your lessons

  1. 01

    Designing an authorized request path

    60 minutes planned · 7 sections
    Start →
  2. 02

    Operating under load and overload

    60 minutes planned · 7 sections
    Start →
  3. 03

    Deploying and rolling out a coherent service

    60 minutes planned · 7 sections
    Start →

// Put it into practice

A versioned local application service

  1. Download week23.py from a lesson's practice section. Follow its setup instructions before running it.
  2. Lesson 1: Package the accumulated application behind a local service interface.
  3. Lesson 2: Load a small bounded queue and test two identities requesting similar private answers.
  4. Lesson 3: Deploy two local release versions and simulate a failed quality or latency guardrail.
  5. Run the supplied assertions and record actual results; a simulated contract check does not certify real model quality.
Download week 23 Python lab ↓

Read the script’s setup instructions and run it on your own computer. The website does not execute code or verify your results.

// Independent work

W23-LAB

Week 23: A versioned local application service

Package the accumulated components, add bounded queues, scoped caches, and a controlled local rollout.

Extend the guided artifact rather than start a second project. Restart, load, authorization, overload, persistent state, and rollback are demonstrated through real interfaces.

What to produce

  • A versioned local application service
  • Setup commands, data or generation procedure, versions, and recorded outputs
  • Acceptance results and a precise limitation

Check your work

  • Restart, load, authorization, overload, persistent state, and rollback are demonstrated through real interfaces.
  • Each claimed execution is supported by actual saved output.
  • Fixture results and real model results are identified separately.
  • Setup and reproduction use the taught tools without private credentials.
Self-assessment rubric
Technical correctness · 35 points
Implementation or analysis follows the relevant technical mechanism and handles the stated case.
Evaluation and evidence · 30 points
Reproducible tests, appropriate baseline, and accurate interpretation.
Engineering quality · 20 points
Clear structure, safe boundaries, and usable reproduction instructions.
Explanation and reflection · 15 points
Explains tradeoffs, limitations, and next experiment with evidence.

// Retrieve before you reread

Week 23 knowledge check

Try all 6 questions. Check your answers, review the explanations, and retry whenever you like. Answers are checked on this device.

1. A valid user presents another owner’s operation identifier. What must durable-result retrieval check?
2. A retrieved document proposes changing deployment policy. Which boundary should reject it?
3. A capacity-three waiting queue already contains three jobs. What is a correct fourth nonblocking admission outcome?
4. A cached private answer is keyed by question and source version but omits tenant. What must change?
5. A service restarts successfully after rollback but old operation queries fail because a column was removed. What is the operational status?
6. A failed canary wrote a stored result. A compatible rollback restores new-request behavior. What should happen to the historical record?

Next: week 24 →