ML Platformadvanced5 minute guide

Machine Learning Batch Inference Platform on AWS

This architecture runs scheduled or on-demand scoring as a durable workflow. Step Functions coordinates jobs, AWS Batch supplies container compute, ECR pins the runtime, an approved SageMaker model supplies the artifact, and S3 preserves inputs and predictions.

Open editable diagram

Published August 18, 2026

Reference architecture

Architecture diagram

Edit this exact diagram
AWS machine learning batch inference architecture diagram with EventBridge, Step Functions, AWS Batch, ECR, SageMaker model registry, S3 input and output, and AthenaOpen on the canvas

AWS machine learning batch inference architecture diagram with EventBridge, Step Functions, AWS Batch, ECR, SageMaker model registry, S3 input and output, and Athena. The image links to a fully editable BuildPlane starter.

Overview

A batch inference platform for scheduled or on-demand scoring. EventBridge triggers a Step Functions orchestrator that submits work to AWS Batch, which runs containerized jobs from ECR loading an approved SageMaker model. Input datasets and scored predictions live in S3.

Components

  • Orchestration: EventBridge triggers a Step Functions flow that queues jobs in AWS Batch.
  • Batch Compute: A managed compute environment runs job definitions from ECR images.
  • Model + Data: Jobs load an approved SageMaker model and read input datasets and write predictions in S3.

Inference Flow

  1. A schedule or an analyst triggers EventBridge, which starts the Step Functions orchestrator.
  2. The orchestrator submits a job to the AWS Batch queue and compute environment.
  3. The compute environment runs the job definition, which pulls the image from ECR and loads the approved model.
  4. The job reads input datasets from S3 and writes scored predictions back to S3.
  5. Downstream tools query the prediction outputs (e.g. with Athena) as needed.

Customize First

  • Swap AWS Batch for SageMaker Batch Transform or Processing Jobs if you prefer managed ML compute.
  • Add data-quality and model-drift checks before promoting predictions.
  • Introduce a feature store and lineage tracking for reproducibility.

Design rationale

Decisions that shape this architecture

1

Orchestrate the run as durable state

Step Functions records submission, waiting, success, and failure transitions. The workflow can retry control operations without hiding job status in one long-running process.

2

Version the model, image, and dataset together

A useful prediction record identifies the exact model artifact, container digest, input snapshot, configuration, and code used to produce it.

3

Choose compute for the batch shape

AWS Batch fits containerized jobs with variable CPU, memory, duration, or accelerator needs. SageMaker Batch Transform may fit teams wanting a more managed ML-specific execution path.

Before production

Operational checks

Validate input schema and data quality before consuming expensive compute.

Record lineage from source dataset through model version to output prefix.

Set retry rules that distinguish infrastructure failures from bad input.

Monitor queue age, job duration, failure rate, and prediction-quality drift.

Scope and tradeoffs

What this diagram does not solve

Batch output is not an online serving endpoint

Use a real-time inference service when applications need per-request predictions. Batch is optimized for throughput and scheduled completion.

Model approval does not guarantee data fitness

A validated model can still produce poor results when source distributions change. Data-quality checks and drift monitoring remain part of the platform.

Common questions

Frequently asked questions

Why use AWS Batch for inference?

AWS Batch schedules container jobs onto managed compute environments and is useful when scoring jobs need flexible resources or longer execution than functions provide.

When should SageMaker Batch Transform be used instead?

Use it when a managed SageMaker inference workflow fits the model packaging, input format, and operations model better than a custom batch container.

How can batch predictions be queried?

Write partitioned results to S3, catalog the output when needed, and query it with Athena or load it into the serving store used by downstream applications.

Keep exploring

View all 17 guides
AWS data lake and analytics architecture diagram with Kinesis, Firehose, Lambda, Glue, raw and curated S3 zones, Lake Formation, Athena, Redshift, and QuickSight
Data Platformadvanced

Governed Data Lake and Analytics Platform on AWS

This architecture supports both near-real-time processing and batch-oriented curation. Kinesis fans data into a fast Lambda path and a Firehose landing path, Glue creates query-ready datasets, and Lake Formation applies governance across Athena, Redshift, and QuickSight.

Explore the architecture
AWS CI/CD pipeline architecture diagram from GitHub through CodePipeline, CodeBuild, image scanning, ECR, manual approval, CloudFormation, and ECS Fargate
CI/CDadvanced

CI/CD Pipeline to Amazon ECS Fargate

This delivery architecture turns a source change into a tested, scanned, approved, and deployed Fargate release. It keeps build artifacts and container images distinct, makes the production approval visible, and delegates infrastructure updates to CloudFormation.

Explore the architecture
AWS IoT telemetry analytics architecture diagram with IoT Core, device registry, Kinesis, Firehose, Lambda, S3, Timestream, OpenSearch, EventBridge, SNS, and QuickSight
IoT Analyticsadvanced

IoT Telemetry and Analytics Platform on AWS

This architecture authenticates a device fleet, buffers telemetry, preserves raw events, derives searchable and time-series views, raises operational alerts, and presents fleet trends. Each storage path serves a distinct access pattern instead of treating one database as universal.

Explore the architecture

From reference to working draft

Adapt this architecture with your AWS AI Agent

Start from the exact diagram in this guide. Change requirements, challenge a decision, or ask what fails first, while keeping the architecture editable.

Open editable diagram