EU AI Act high risk obligations are now enforceable. Check your exposure
Insights About us Careers
Contact us
MLOps, LLMOps and AI Infrastructure

Model Deployment and Serving

Getting a model out of the notebook and into production with the latency, throughput and failure behaviour the application genuinely requires, and a rollback that has been rehearsed rather than documented.

4 to 10 weeks
Typical build
Fixed scope
Commercial model
Rollback
Rehearsed

The gap between a model that works and a model that serves is mostly made of unglamorous questions. What happens on the tenth concurrent request. What the consuming application does when inference times out. Whether the version that answered a query last Tuesday can be identified. None of them are interesting and all of them are load-bearing.

In one paragraph

Model deployment and serving is the infrastructure that exposes a trained model to the systems that use it, with defined latency and throughput characteristics, versioning, scaling behaviour, failure handling and the ability to roll back to a previous version safely.

Choosing the serving pattern

PatternHow it worksSuits
Batch scoringScheduled scoring of a set, results written to a storePredictions consumed later; cheapest and simplest
Real-time endpointSynchronous request and responsePredictions needed within a user interaction
Streaming inferenceScoring events as they arriveContinuous flows; see streaming
Embedded in applicationModel runs inside the consuming serviceVery low latency, small models, no network hop
Edge deploymentModel runs on device or on siteConnectivity, privacy or latency constraints; see edge AI

Most organisations reach for a real-time endpoint by default and would be better served by batch scoring, which is cheaper, simpler and easier to reason about. The question that settles it is whether the prediction is needed inside a user interaction or merely soon.

How we build serving

Set the requirements as numbers

Latency at the ninety-fifth and ninety-ninth percentiles, sustained throughput, peak throughput, and the availability target. Averages hide the experience users complain about, and a target expressed as 'fast' cannot be designed against or verified.

Decide what happens when inference fails

Timeouts, retries, circuit breaking, and a defined fallback: a cached prediction, a default value, a rules-based answer or a visible degradation. An application whose behaviour on model failure was never specified will discover it during an incident.

Version the endpoint, not just the model

Every response carries the model version that produced it, and previous versions remain deployable. This is what makes rollback a command rather than a rebuild, and what lets you answer a question about a decision made three months ago.

Roll out in stages, with a shadow first where it matters

Shadow deployment scores live traffic without acting on the result, so a new version can be compared against the incumbent on real inputs. Then a canary share, then full traffic, with automatic rollback on error or latency thresholds.

Scale to the real load pattern

Autoscaling configured against measured behaviour, with attention to cold start, which is the usual reason a scaled-out endpoint still misses its latency target during a spike. Where GPUs are involved, the cost of idle capacity has to be designed for deliberately. See GPU cost optimisation.

Log predictions for the questions that come later

Inputs, outputs, model version, latency and timestamp, retained with attention to what may lawfully be stored. This log is the raw material for monitoring, for debugging and for the audit conversation that eventually happens.

The application contract

Serving is a contract with the systems that consume it, and the contract has to be explicit or it will be assumed incorrectly:

  • The interface. Request and response schema, versioned, with a compatibility policy so the model can change without breaking callers.
  • The latency guarantee. What the caller may assume, and what it must do when that is exceeded.
  • Confidence, where the decision needs it. So the application can route uncertain cases to a person rather than acting on a weak prediction.
  • The failure contract. What is returned when the model is unavailable, and whether the caller degrades or blocks.

Written down at design time, this prevents the most common production surprise: an application that silently treats a fallback value as a real prediction.

Process

How the engagement runs

Latency and failure behaviour are specified as numbers before any infrastructure is chosen.

Week 1

Requirements

Latency percentiles, throughput, availability target and failure behaviour agreed with the consuming teams.

Week 2

Design

Serving pattern, scaling approach, versioning and rollback strategy decided and costed.

Weeks 3 to 6

Build

Endpoint or batch pipeline implemented with versioning, prediction logging and the failure contract.

Weeks 7 to 8

Load and failure testing

Performance verified at peak and under spike; failure injection and rollback rehearsed.

Weeks 9 to 10

Rollout and handover

Shadow then staged rollout, with runbook and working sessions for the owning team.

Deliverables

What you receive

A serving layer that meets a stated latency target and can be rolled back in one step.

01

Deployed serving infrastructure

Endpoint or batch pipeline with autoscaling configured to measured load.

02

Interface specification

Versioned request and response schema with a compatibility policy for callers.

03

Staged rollout capability

Shadow, canary and full rollout with automatic rollback thresholds.

04

Prediction logging

Inputs, outputs, version, latency and timestamp, retained lawfully.

05

Load test results

Measured latency at p95 and p99 and behaviour under spike, against the agreed target.

06

Runbook

Deployment, rollback, failure handling, scaling and cost levers.

Fit check

Is this the right engagement?

Worth being direct. Model Deployment and Serving is the wrong spend in some situations, and those are listed rather than buried.

Good fit if

  • A model is validated and needs to serve production traffic.
  • An existing endpoint misses its latency target or falls over under spike.
  • Rollback is currently a rebuild rather than a command.
  • The consuming application has no defined behaviour when inference fails.
  • You cannot identify which model version produced a past prediction.

Choose something else if

Questions

Frequently asked questions

Marked up with FAQPage schema so these answers can surface directly in search results and inside AI assistant responses.

Should we serve predictions in real time or in batch?

Batch wherever the prediction is needed soon rather than inside a user interaction — it is cheaper, simpler and far easier to operate. Real-time endpoints are justified when a person or a transaction is waiting on the answer. A large share of real-time deployments we are asked to fix should have been batch jobs.

How do you handle traffic spikes?

Autoscaling configured against measured load rather than guessed load, with explicit attention to cold start, which is the usual reason an endpoint still misses its target during the spike it scaled for. Load testing to peak and beyond is part of the build rather than something done after the first bad day.

What happens if the model service goes down?

Whatever you decided it should, which is why the failure contract is agreed at design time: a cached prediction, a default, a rules-based fallback or visible degradation. The dangerous version is an application that silently treats a fallback as a real prediction, and that is what specifying it prevents.

Can we test a new model on real traffic without risk?

Yes, through shadow deployment: the new version scores live requests and its outputs are recorded and compared, but nothing acts on them. It is the safest way to validate on real inputs, and it is followed by a canary share before full traffic.

Do you deploy on our cloud or yours?

Yours. Models, data and logs stay within your accounts and your regions, which matters for data residency and for the audit conversation later. We work across the major clouds and on-premises; see cloud AI setup where the environment itself needs building.

Is this the right engagement?

Tell us what you are trying to build. If a different service fits better, or if you do not need us at all, we will say so.