ladderlore
  • S3 や IAM などのサービス名を入力してください。

概念

Types of inferencing

Real-time, serverless, asynchronous and batch: pick by speed, size and traffic.

このレッスンはまだ翻訳されていないため、英語で表示しています。

Answer needed now?
Steady traffic?
Real-time
Serverless
Whole dataset?
Batch
Asynchronous
yesyesnonoyesno
Three questions choose the type.
  • Real-time

    Answers
    At once
    Choose it for
    Steady traffic, low delay
  • Serverless

    Answers
    At once
    Choose it for
    Uneven traffic, idle gaps
  • Asynchronous

    Answers
    Later, from a queue
    Choose it for
    Large inputs, long jobs
  • Batch

    Answers
    After the whole job
    Choose it for
    Scoring many records offline
The four types side by side.

1 / 2

  • Real-time

    Answers
    At once
    Choose it for
    Steady traffic, low delay
  • Serverless

    Answers
    At once
    Choose it for
    Uneven traffic, idle gaps
  • Asynchronous

    Answers
    Later, from a queue
    Choose it for
    Large inputs, long jobs

2 / 2

  • Batch

    Answers
    After the whole job
    Choose it for
    Scoring many records offline
The four types side by side.

概要

Real-time inference answers one request at once, in milliseconds. The model runs all the time, ready to reply. Use it when a person or app waits, such as a fraud check at checkout.

Serverless inference also answers at once, but you pay only while it handles requests. It suits traffic that is uneven or has long idle gaps. A first request after an idle time can be slower.

Asynchronous inference queues large requests or long jobs and returns the result later. Batch inference runs a whole dataset in one go, with no one waiting, such as scoring all customers overnight. SageMaker AI offers all four ways; see Amazon SageMaker AI.

覚えること

  • Real-time: instant answers, model always running.
  • Serverless: instant answers, pay only when used, good for idle time.
  • Asynchronous: large payloads or long processing, result comes later.
  • Batch: a whole dataset at once, no one waits. SageMaker AI calls this a batch transform job.

覚えること

  • Choose by latency, payload size and how busy the traffic is.

試験では

  • “Predictions in milliseconds for a live app” points to real-time inference.
  • “Unpredictable traffic with long idle periods” points to serverless inference.
  • “Large input and the result may wait” points to asynchronous inference.
  • “Score a whole dataset overnight” points to batch inference.