Platform Blueprints
Three shapes that cover most of production ML
Most ML platforms are one of a few recognizable shapes: batch-scored, real-time scoring, or LLM-oriented. Choosing the blueprint up front sets the whole architecture, including cost and latency economics.
What you will learn
- Match a business need to a platform blueprint
- Contrast batch-scored, real-time and LLM-oriented platforms
- Price the latency/cost trade-offs each blueprint makes
What is this?
A platform blueprint is a reference architecture you can start from instead of inventing a topology per project. The common shapes are the batch-scored platform (predictions computed on a schedule into a store), the real-time scoring platform (predictions computed per request at the API), and the LLM platform (foundation model + retrieval + guardrails).
Why do you need it?
- Blueprints encode hard-won defaults — the expensive lesson is learning which topology fits which problem.
- A batch blueprint is dramatically cheaper and simpler; the data usually already lands on a schedule.
- Real-time scoring changes every downstream contract: feature fetching, latency budgets, scaling.
- Blueprints give teams a shared vocabulary and let you assess cost, latency and reliability before building.
Mental model
House plans an architect keeps
Platform blueprints
An architect doesn't redesign a house from nothing each time — ranch, split-level, modern — each plan has known costs and properties. ML platforms have the same few proven shapes.
How it works
- The batch blueprint runs a scoring job on a schedule: latest features are joined, the model scores them, results land in a database for dashboards, reports or downstream systems.
- The real-time blueprint serves a single prediction at request time: an API fetches fresh features (often from a feature store), runs the model in-process or via an inference server, and returns a prediction within a latency budget.
- The LLM blueprint wraps a foundation model endpoint with prompt/retrieval pipelines, context stores and lightweight finetuned models for routing or guardrails — the heavyweight model is replaced by a managed API.
- Hybrid blueprints score most traffic in batch and reserve the real-time path for the long tail of urgent decisions.
- Every blueprint still shares the same registry, dataset versioning and monitoring planes — only the serving geometry changes.
Three platform blueprints and how predictions reach consumers.
Examples
A blueprint decision in one table
# batch vs real-time vs LLM platformdef pick_blueprint(latency_ms, traffic, model_type): if model_type == "llm" or "foundation" in model_type: return "llm-platform: managed endpoint + retrieval + guardrails" if latency_ms and latency_ms < 300: return "realtime-platform: model server + online feature store" return "batch-platform: scheduled scoring into a prediction store" for case in [(None, "daily", "xgboost"), (150, "high", "xgboost"), (None, "weekly", "gpt")]: print(case, "->", pick_blueprint(*case))The blueprint choice falls out of three questions: how fresh must the prediction be, how much traffic, and what kind of model. None of the three needs a custom architecture.
In production
- An insurance company scores all renewal likelihoods nightly in batch and writes results to Snowflake for sales workflows — zero serving infrastructure, sub-cent cost per prediction.
- A rideshare app serves ETA predictions in real time from a Triton pool, with features read from an online store backed by Redis.
- A support-automation startup uses an LLM blueprint: a managed chat model with retrieval over the KB and a guardrail classifier for disallowed topics.
Best practices
- Prefer the batch blueprint unless the decision truly needs seconds-fresh predictions.
- When real time is needed, overprovision for p99 latency, not just average — tail latency is the serving bugbear.
- Keep the shared planes identical across blueprints so teams can shift shapes later.
- Write a one-page blueprint note for each new platform: shape, latency budget, cost model, owners.
Common mistakes
- Building a real-time platform for a decision made once a day — wrong blueprint, ten times the cost.
- Copying a blueprint element (e.g. 'feature store') without the problem it solves, adding moving parts for their own sake.
- Assuming the LLM blueprint removes all serving concerns — retrieval quality, cost per call and guardrails are new problems, not no problems.
Common issues
Real-time predictions cost 50x the batch equivalentThe decision doesn't need sub-second freshness but got a real-time blueprint
Move to scheduled batch scoring and keep a thin real-time path only for genuinely urgent edge cases.
LLM inference bill doubles every monthNo caching or routing; every request hits the largest model with long prompts
Add response caching, cheaper models for easy cases, and prompt truncation/retrieval to bound context length.
Debugging tips
- Re-check the freshness need when a blueprint feels over-engineered; a batch job may be the honest fix.
- For real-time platforms, profile where the milliseconds go: feature fetch, model exec or serialization.
- For LLM platforms, measure tokens and feedback loops before touching model choice — cost usually lives there.
Interview checkpoint
Hands-on lab
- Model the cost and latency of batch, real-time and LLM blueprints from simple assumptions
- Compare total hourly cost across traffic levels
- Pick the right blueprint for a scenario and justify it with numbers
Price Three Platform Blueprints
30 min · intermediate
Quick quiz
Which blueprint fits 'renew each user's support-ticket priority instantly when they open the app'?
Every ML platform needs a separate, custom architecture before it can be production-grade.