Design and assess ML training, serving, and experimentation system architectures.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "system-type-ml-serving" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/amplifier-bundle-systems-design/main/skills/system-type-ml-serving/SKILL.md 2. Save it as ~/.claude/skills/system-type-ml-serving/SKILL.md 3. Reload skills and tell me it's ready
Design a model serving architecture for a recommendation system with one million daily active users. Cover online inference, feature stores, canary rollout, A/B testing, monitoring, alerting, and failure fallback, and explain the key trade-offs.
A layered architecture plan with core components, data flows, and capacity and reliability trade-offs.
Review this machine learning training pipeline design. Focus on data versioning, experiment tracking, feature consistency, GPU scheduling, model registry, and failure recovery, then identify high-risk areas and improvements.
A structured review listing issues, risk levels, and actionable optimization recommendations.
Analyze common failure modes in an AI inference platform, including feature latency, model version drift, cache invalidation, GPU resource contention, and downstream timeout, and provide debugging paths and mitigation plans.
A failure mode checklist, root-cause analysis framework, and phased response and prevention measures.
Patterns, failure modes, and anti-patterns for machine learning infrastructure and model serving systems.
What it is. Model receives a request, runs inference synchronously, returns a prediction. The model sits in the request path — latency matters as much as accuracy. When to use. User-facing predictions where the result must be immediate: search ranking, recommendation, fraud scoring at transaction time, autocomplete. When to avoid. When predictions can be precomputed. When the model is too large to meet latency budgets. When the cost per prediction doesn't justify real-time serving. Key concerns. Tail latency (P99, not just P50) dominates user experience. Model loading time creates cold start problems. Memory footprint determines how many models fit per node. Timeouts must be set aggressively — a slow prediction is worse than a fallback.
What it is. Run predictions over a large dataset on a schedule (hourly, daily). Write results to a store; serve precomputed predictions at request time. When to use. Recommendations that refresh periodically. Risk scoring where real-time freshness isn't required. Any case where the input space is bounded and enumerable. When to avoid. When input features change faster than the batch interval. When the input space is too large to precompute (e.g., arbitrary user queries). When staleness directly harms the user. Key concerns. Batch jobs that overrun their schedule. Incomplete batches that leave stale predictions for some entities. The join between precomputed predictions and request-time serving (cache misses for new entities). Monitoring must cover prediction freshness, not just job success.
What it is. Model consumes events from a stream (Kafka, Kinesis), produces predictions continuously. Sits between batch and real-time — lower latency than batch, lower cost than synchronous serving. When to use. Event-driven predictions: fraud detection on transaction streams, anomaly detection on telemetry, real-time feature updates feeding downstream models. When to avoid. When you need sub-100ms request-response latency. When the prediction consumer expects synchronous responses. Key concerns. Consumer lag means predictions fall behind reality. Backpressure from slow models causes event queue growth. Exactly-once semantics for predictions that trigger side effects (e.g., blocking a transaction). Reprocessing on model update — do you recompute predictions for the backlog or only apply the new model forward?
Model-as-a-service. Centralized inference endpoint. Clear ownership, independent scaling, versioning decoupled from application deploys. But: network latency, one more service to operate, coupling on availability. Embedded models. Model ships inside the application binary or container. No network hop. But: every application deploy includes the model, model updates require app redeployment, resource isolation is harder (the model competes with the app for memory and CPU). The real question: How often does the model change independently of the application? If weekly or more, service extraction pays off. If quarterly, embedding avoids operational overhead.
What it is. A system that manages feature computation, storage, and serving for ML models. Separates feature engineering from model training and serving. Online store. Low-latency key-value lookups at serving time. Backed by Redis, DynamoDB, or similar. Optimized for point lookups by entity ID. Offline store. Historical feature values for training. Backed by a data warehouse, object storage, or lakehouse. Optimized for bulk reads with time-range filters.
…
Design and assess enterprise integration patterns, legacy modernization, and orchestration strategies.
Review system designs with a seven-step method to surface risks and improvements.
Evaluate system designs through Unix/Linux principles for simplicity and composability.
Design or assess Azure system architectures, operations, and cloud service choices.
Design and evaluate data pipelines, streaming systems, and ETL architecture patterns.
Design offline-first edge systems with sync, conflict handling, and weak-network resilience.
Design and evaluate CLI tools and developer SDK architecture and usability.
Design or evaluate web services, APIs, scalability, and reliability tradeoffs.
Design and evaluate real-time collaborative systems, sync flows, and failure handling.
Design or assess SPA architecture across routing, state, performance, and offline support.
Design and evaluate event-driven, message-based, and asynchronous system architectures.
Design and assess multi-tenant SaaS architecture, isolation, billing, and resilience.