☁️Spot Instance
Also known as Spot Instances, Spot VM, Preemptible VM, Azure Spot Virtual Machine
A spare cloud server sold very cheap. The cloud can take it back at short notice.
Think of it like
Think of it like a cheap seat at a show. You must give it up if someone who paid full price comes.
Example
AWS says spot can cost up to 90% less, and it warns two minutes before taking a server back. Azure warns 30 seconds ahead. Lucy saves each video frame as it is done, so a lost server costs her one frame.
Why it matters
It is the cheapest way to rent a lot of computing. Work that can be cut short gets done for a small part of the price.
Definition
Example code
console
$ curl -s -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/spot/instance-action
{"action": "terminate", "time": "2026-11-18T08:22:00Z"}Common mistake
Key takeaways
- 1Spare machines. Unused machines, sold cheap.
- 2Can vanish. Taken back after a short warning.
- 3Built to stop. Only for work that can restart.