What do you use EC2/Spot for?

Hello

After using Lambda so much, and seeing what it can do, I found my self wondering what EC2 is really used for and how. So, what does you/your company run on EC2/Spot instances, and how do you run it?

We only use EC2 for 3rd party software that provides AMIs or don’t have good Kubernetes support, or legacy stuff, think like windows server or similar. We don’t deploy any new software on EC2 unless its the only supported way (no kubernetes support). If you’re self hosting a SAAS product you can’t go serverless so you’ll have to use EC2 or kubernetes.

I use it for databricks

EKS

For cost reasons. We had to run around 100 million lambda invokes to process a ton of data. We ended up running it on spot instances for a fraction of the price.

We use it for running software that doesn’t support containerization and running databases that don’t support RDS.

If you’re doing greenfield development, you certainly don’t need EC2. However, if you’re an enterprise running your cloud on AWS, you will find lots of use-cases for them.

We use it for everything that needs a combination of speed, size, latency or bandwidth (in the broad sense).

In one of the orgs we have perhaps 290 lambdas but 1300 EC2 instances, which is a pretty similar ratio in larger and smaller orgs we have IIRC.

Most fans of lambdas are attracted to it for either the shiny new thing factor, or because their CI/CD is so bad that anything that lets them actually just run code is a breath of fresh air. It’s rarely because they have parallel async workloads that benefit from per-second billing and spike-ish behaviour.

Running 100-200 spot instances for much much lower price.

How do you manage Spot instances selection? Don’t discounts vary?

I use it personally for a mega gaming rig considering how infrequently I play. Spot pricing totally worth it

Karpenter on EKS with Spot EC2
Fargate spot for dev workloads
EMR with graviton 2 spot

ECS

We used it for a distributed workflow engine (doing media processing e.g. transcoding) with extremely bursty demand. We go from 0 to 5000 instances for an hour or so many times per day.

Now we have an enterprise level compute savings plan that outperforms spot in terms of cost, so we just use on-demand EC2.

In the future we will likely use a blend of Lambda and spot EC2.

how come your company uses EC2 instead of Amazons media service?

We do occasionally use MediaConvert for certain things that they do particularly well that would be expensive or challenging for us to build.

However, MediaConvert is somewhat limited in functionality. We often need to do things it simply cannot do, and we have a software engineering team and media workflow experts like me to build that.

Also, for many tasks we can be dramatically more cost effective.

Ah

All my ECS and EKS workloads

We used it for pipeline build agents and proof of concepts.

Perfect for load testing. Spin up 200 t4 machines to hit my own service? Easy peasy

CI nodes