
How the course is structured, what you need installed, how the hands-on lectures work, and how to get the most out of it.
The invented loan model you will deploy for the next nine hours, the artefacts it produces, and a lab whose only job is to prove every figure this course quotes.
What actually ships alongside the model, the four shapes a model service can take, and how the caller's requirements choose one for you.
Training and serving are two programs with opposite constraints. The artefact is the line between them, and everything you compute on the wrong side of it is paid for on every request, forever.
The four tools this course uses, what each one actually is underneath its interface, and a lab that checks your machine and tells you which piece is missing.
What is actually inside a pickled scikit-learn Pipeline, why joblib exists, why pickle is not a security boundary, and the version coupling that turns a working artefact into a dead one.
Fit the loan approval pipeline, write it as pickle and as joblib, reproduce all three published byte counts on your own machine, then break the load twice on purpose.
What a web framework actually gives you, the request lifecycle around a prediction, why the model is process state rather than request state, and the four things Flask deliberately does not do for you.
Put the artefact from 2.2 behind a Flask endpoint, call it, expose health and version, and then make it fail in the three ways a first service always fails.
Designing a prediction contract you can still change in a year: the batch-shaped request, the response envelope, status codes, and a client that sets a timeout and handles a retry honestly.
The failure is never the malformed request you reject - it is the plausible one you accept. Wrong units, a missing field defaulting to zero, a string that coerces, and a schema declared at the edge that catches all three.
A handler that looks up, joins and aggregates a feature on the way to a prediction: why it is tempting, what it does to the tail and to availability, and the three shapes the fix can take.
WSGI versus ASGI as a mechanism rather than a marketing claim: what an event loop actually buys, what transfers unchanged from the Flask service in Sections 2 and 3, the four things that change in the code, and when Flask is still the right answer.
The twelve-field schema from lecture 2.6 becomes the signature of the endpoint: what typing catches by itself, what it catches once you add bounds, the unit error it still cannot see, the 422 the caller gets instead of a confident wrong answer, and documentation generated from the same declaration.
Take the Flask service from 2.4 and serve the same pickled artefact under FastAPI: the load moved into a lifespan handler, the twelve features as a declared request model, a declared reply, uvicorn and then gunicorn with uvicorn workers - and an assertion that the prediction is identical to Flask's.
What an event loop actually does, why scoring a model is the one thing it cannot help with, the failure mode you acquire the day you write async def around a blocking call, where async genuinely earns its place in a prediction service, and why the method rather than a number is the answer.
What the Flask development server is and is not, what gunicorn's master and workers add, what nginx buffers away, and what specifically breaks when you skip each layer.
Run the same service under four worker and thread configurations against a CPU-bound and an IO-bound endpoint, and read your own numbers rather than a blog's formula.
One loan model, three consumers with different deadlines, and the serving architecture that falls out of asking who is waiting before asking which tool.
Rolling, blue-green, canary and shadow, compared by what each costs, what evidence each buys, and when each is overkill for a model service whose labels arrive weeks late.
The shape of a latency distribution, the knee in a throughput curve, the method that makes a run trustworthy - and why this course will never quote you its own p99.
A stepped ramp against the loan service until throughput flattens, with a control run to prove the client is not the bottleneck and your own CSV at the end of it.
What a container actually is - namespaces, cgroups and a layered filesystem - what a Dockerfile pins, and the four things a container does not give you.
Build an image around the loan service, run it, prove the endpoint answers from inside the container, and read the three failures that stop you.
What a layer's cache key actually is, why the first miss invalidates every layer after it, why deleting a file does not shrink an image, and what a base image choice costs.
Run the model service behind a reverse proxy on one declared network, and learn why start order is not readiness.
What a registry actually stores, why a tag is a mutable pointer and a digest is not, and what it means to promote an artefact rather than rebuild one.
The control loop, the components that run it, what the scheduler actually decides, and an honest account of what adopting it costs.
The three objects you actually write, the label selector that silently joins or breaks them, and why a Service's membership list is built from readiness.
A local kind cluster, one Deployment, one Service, a real prediction through both - and the three states a pod gets stuck in.
Four axes you can actually turn, what an autoscaler compares against what, why the target is a percentage of your request, and the things that refuse to scale horizontally.
Drive real load at a local cluster, watch an autoscaler react, and see pods go Pending when the replica count outruns the node.
What a request does to scheduling, what a limit does to the kernel, why the pod dies with no application log, and how to set a limit honestly.
What a rolling update actually does, why readiness controls traffic and liveness controls life, and the two probe mistakes that turn a release into an outage.
What you hand over when you hand over capacity, the contract your container has to satisfy, the concurrency setting that decides everything, and the four things that quietly break.
The one lecture that may need a cloud account. Check the serverless contract locally first, measure your own cold start, then deploy the same image with one command - and delete it.
What is actually happening while a request waits for an instance that does not exist yet - stage by stage - which levers move which stage, and how to measure your own split instead of trusting anybody's number.
The same artefact expressed four ways, the jobs each option takes off you, the packaging contract a managed endpoint imposes, and the move-cost test to run before you choose.
When the answer is consumed on a schedule, score on a schedule and serve a table - what that buys, what staleness costs, and how to write a job that can be rerun without lying.
The event arrives whether or not you asked for it. What that does to the health metric, to parallelism, to duplicate handling, and to the question of how you release a new model without stopping the stream.
Four honest reasons to put a model on a device, what you give up when you lose the central deploy, why conversion has to be re-evaluated rather than trusted, and how a fleet is rolled back.
The mechanism, measured exactly on this course's own model: 48 bytes to 12, and 0.05 points of accuracy. Then an honest account of why that is a rounding error and when the technique genuinely matters.
Reproduce every published quantisation figure exactly, assert them against figures.json, count the decisions that flipped, then sweep the bit width until your own model falls apart.
What changes the day after the release, the four challenges that belong to a model service rather than to any web service, the practices that are cheap enough to be worth arguing for, and an honest list of what operating a model involves that this course does not teach.
Three signals that answer three different questions at three very different costs, the handful of fields a model service should record that a web service never would, and the privacy trap that makes logging raw features the wrong default.
What the Werkzeug debugger hands an attacker, where secrets can and cannot live, what an image layer remembers after you delete it, why unpickling untrusted input is remote code execution, and what an unauthenticated prediction endpoint actually is.
One release, told as a sequence of events: what looked fine, the signal that arrived late, who decided, what made the reversal fast and what made it slow - and the two traps that turn a rollback into a rebuild.
The brief: one artefact, three runtimes - a container, a cluster deployment and a serverless runtime - held to the same acceptance criteria and compared on five named dimensions, with a harness that checks the criteria for you.
My own answer to the capstone: the three deployments, the decisions inside each, the two places the result was not what I expected, and the comparison as I would actually write it up.
A short audit of a service you actually operate, scored against this course's own arguments, and the four directions the result can point in - including the one that is a different profession rather than a next course.
The four things lecture nought point two promised, checked off honestly; what you are carrying away that is not a file; the four boundaries this course never crossed; and where the sequel picks it up.
This course contains the use of artificial intelligence.
You can fit a model. You have never been on call. That is the gap this course is for.
Almost every deployment tutorial ends at the same place: the endpoint returns a prediction, the terminal shows some JSON, and the lesson stops. Everything expensive happens after that moment. This course keeps going. What the service does when real demand arrives. What OOMKilled means, why your pod died at three in the morning with no application log, and where the evidence actually is. Why your image rebuilds from scratch every single time because of one misplaced line in a Dockerfile. What a cold start costs you and how to live with it. And what you do in the twenty minutes after you realise the new version is worse than the old one.
You deploy one model the whole way through: a small-business loan approval model, 12 features, trained on a seeded synthetic extract of 24,000 rows. It is invented, and so is the lender - no real organisation appears here as a case study. It scores 75.03% on held-out data against a 73.0% approval rate, which makes it a weak model, deliberately. A weak model deploys exactly like a strong one, and the deployment is the subject. A megabyte and a half of training data collapses into a 1,440-byte pickle, or 1,225 bytes as joblib, 14.93% smaller. The whole course is about moving that artefact around correctly.
It teaches Flask and FastAPI, in that order, and takes a position on both. You build the Flask service, put gunicorn and nginx in front of it, and find out what workers and threads actually do. Then WSGI versus ASGI as a mechanism rather than a slogan: what an event loop buys you, what transfers unchanged, the four things that change in the code, typed requests with Pydantic and the documentation you get free. And then the lecture most courses skip - scoring a model is CPU-bound, it never awaits, and writing async def around it does not make it faster. It can make it worse, because one blocking call inside a coroutine stalls the loop for every concurrent request. Flask is still the right answer for some services, and the course says which.
Then containers, properly: layers, caching, image size, Compose for local multi-service testing, registries and how an image gets promoted rather than rebuilt. Then Kubernetes as an object model instead of a console - what a Deployment is, what a Service does, what ingress is for, how horizontal autoscaling behaves under load, what requests and limits talk to, and why a rolling update with no readiness probe is a confident way to serve errors.
There is one thing this course refuses to give you, and it refuses on principle. No latency figure. No requests per second. No worker count that is correct. No cold-start duration. Those are properties of a machine, a kernel and a Python build, and a course that publishes its own tail latency as a fact is publishing a fact about somebody else's laptop. You get the shapes instead - what a histogram looks like when you are queueing rather than computing, where the knee in a throughput curve is - the method that makes a run defensible, and a lab that prints your numbers on your hardware. That argument is made explicitly, once, in Section 3. It is a credibility moment, not an apology.
Nothing walks a UI. Menus get renamed and buttons move; manifests, command lines and object models have been stable for years, and that is what gets taught. Where a managed product is named, it is named as an example of a category and the category's cost is stated.
The capstone ships the same artefact three ways - a container, a cluster deployment and a serverless runtime - against identical acceptance criteria, and compares them on reversibility and operational load rather than on a benchmark.