ExitModel Inference: the managed request–response lifecycle1 / 9
Explanationassociate9 steps · 4 exercises

Choose when the application needs the result

How an application prepares input for a managed model, chooses between an immediate response and a job result, and interprets the output before acting on it.

Inference runs a trained model on new input to produce an output, such as a review score. It applies what the model learned during training; an ordinary inference request does not update the model.

Choose synchronous inference when the caller needs the prediction to continue, such as when the next screen depends on it. The caller waits, and a successful response carries the prediction. The model call needs to fit within the application's response time budget.

Choose deferred inference when the caller can continue without the prediction. An asynchronous endpoint can accept an individual request for later processing, which is useful for longer-running work. A batch job instead processes a collection of records, such as an overnight scoring file. In both cases, acceptance is not completion: the application needs a way to learn the outcome and retrieve the result.

Next up: Sort the statements on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.