Deep Dive into AWS EC2 Spot Instances & Spot Fleets

What Are EC2 Spot Instances?

EC2 Spot Instances allow users to purchase spare AWS compute capacity at discounts of up to 90% compared to On-Demand pricing.

Two Termination Strategies for Spot Instances:

  1. Stop & Resume:
  2. Terminate & Relaunch:

Using Spot Blocks for Guaranteed Uptime

If you don't want your spot instance to be interrupted, use a Spot Block:

When to Use Spot Instances?

Spot instances are best suited for:

Batch jobs

Data analysis

Fault-tolerant workloads (resilient to interruptions)

They are not recommended for:

Critical applications

Databases or workloads needing persistent storage