A prediction when the application asks
How deployed models handle on-demand requests through synchronous or asynchronous responses, with serverless hosting independent of response timing. · foundational
Online inference means using a deployed model to handle incoming application requests on demand. The application sends input to a model-serving endpoint, an address through which it can request a prediction. The output might be a fraud score, a product ranking, or a generated answer. Running inference normally does not retrain the model.
With synchronous inference, the caller waits for the prediction as part of the same request. This is commonly called real-time inference: the response should arrive soon enough for the application, not necessarily instantly or within a guaranteed deadline.
With asynchronous inference, the caller submits work and receives the result separately, later. An initial reply can acknowledge acceptance without containing the prediction. Both patterns can serve current application demand; the difference is how the caller receives the result.
| Response pattern | Initial interaction | Prediction delivery |
|---|---|---|
| Synchronous | Wait for prediction | Same request |
| Asynchronous | Accept the work | Separate, later delivery |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.