Docker vs VM for CPU-intensive workloads

322 Views Asked by At

Considering only performance, which is best for CPU-intensive workloads between Docker and VM?

Once provisioned, this apps will be short lived in most cases so performance over stability is much more needed.

What is the best between Docker & VM(AWS EC2) to deploy this apps to maximize every available CPU?

1

There are 1 best solutions below

0
On BEST ANSWER

In my opinion, you cannot reliably say which is better for CPU intensive workloads.

It's not slower than a VM normally, and might even be "faster" because startup is normally much faster than VM startup.

Also, I am no AWS expert but Docker containers on AWS also run on EC2 instances, so you have always a EC2 instance somewhere.