liveBook · Manning

Amazon Elastic Compute Cloud

As explained in Machine Learning System Design

A cloud computing service that provides resizable virtual compute instances.

Amazon EC2 provides resizable virtual servers for deploying inference workloads. It suits services that need sustained capacity, low latency, AWS integration, and the option to scale workers. section 15.5.2

A practical EC2 deployment separates workload needs:

  • Run batch inference as a script on EC2, reading jobs from a queue and writing results to Amazon S3 and a database. section 15.5.2
  • Place stateless real-time inference workers behind an AWS Application Load Balancer, retaining guaranteed capacity while scaling additional instances when needed. section 15.5.2
  • Consider EC2 Spot Instances to reduce cost when terminated workers can be replaced safely; monitor CPU, RAM, and GPU usage. section 15.5.2

How Machine Learning System Design covers it

How deep it goes
Specifies deployment patterns, Spot tradeoffs, scaling, and monitoring, but defers exact instance and GPU selection to experiments.
Examples
Runs queue-driven batch inference and stateless real-time workers for a high-load image-serving system.
What it assumes
Assumes familiarity with batch inference, real-time inference, queues, load balancers, and AWS storage services.
What you can do after
Operate/configure EC2-backed inference services with load balancing, replaceable workers, cost controls, and resource monitoring.
How it connects
Connects virtual instances with AWS Application Load Balancer, Spot Instances, Amazon S3, databases, queues, and ElastiCache.

Also explained in

Compare how 3 books explain Amazon Elastic Compute Cloud →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.