Skip to main content

Online Endpoints for Real-Time Inference

Online endpoints provide real-time inference for machine learning models with low latency, automatic scaling, and built-in monitoring.
Managed online endpoints handle infrastructure, scaling, and security automatically - you focus on your model.

What are Online Endpoints?

Online endpoints deploy models to web servers that return predictions via HTTP. They’re optimized for:

Low Latency

Sub-second response times

Synchronous Requests

Request-response pattern

Real-Time Scoring

Immediate predictions

Auto Scaling

Handle traffic spikes

When to Use Online Endpoints

Choose online endpoints when:
1

Low Latency Required

Need predictions in <1 second
2

Request-Response Pattern

Client waits for immediate response
3

Small Payloads

Input data fits in HTTP request
4

Variable Traffic

Need to scale based on requests

Managed Online Endpoints

Recommended deployment method with full infrastructure management.

Key Features

Fully Managed:
  • Automatic compute provisioning
  • OS updates and patching
  • Node recovery on failure
  • Load balancing
  • SSL termination

Create Online Endpoint

Step 1: Define Endpoint

Step 2: Create Deployment

Step 3: Route Traffic

Scoring Script

For custom models, provide a scoring script:

Invoke Endpoint

Using Python SDK

Using REST API

Using cURL

Traffic Management

Mirror Traffic (Shadow Testing)

Test new deployment without affecting production:

Gradual Rollout

Autoscaling Configuration

Monitoring and Logging

View Deployment Logs

Query Metrics

Key Metrics

Security Best Practices

Enable system-assigned identity for secure access:
Disable public access for sensitive workloads:
Encrypt data at rest with your own keys:

Performance Optimization

  • Convert to ONNX format
  • Apply quantization
  • Prune unnecessary layers
  • Use model distillation

Cost Management

Next Steps

Batch Endpoints

Deploy for large-scale batch processing

Monitor Endpoints

Set up monitoring and alerts

MLOps

Automate deployment workflows

Troubleshooting

Debug deployment issues