When Should I Use VMs vs Containers?

0
22
Asked By CuriousCoder42 On

I'm looking for some insight into using virtual machines (VMs) versus containers. I often default to using containers whenever possible, but I'm not entirely sure when it's better to choose VMs. Any experienced users willing to share their thoughts and criteria for making the decision? Thanks!

5 Answers

Answered By CloudHopperSteve On

In my role with a strong VDI platform, containers work great for most of our use cases. That said, whenever client apps need full stacks, or for things like EKS Clusters, VMs can sometimes make things simpler. It really comes down to how you want to manage resources for those edge cases: about 5% of the time we hit that need.

Aks_Explorer -

Yep, we moved to AKS from Container Apps for similar reasons, especially with FUSE issues.

Answered By ExploratoryDev On

I think you hit the nail on the head: anything stateless is a candidate for containers. Web servers, APIs, those fit well in containers. Databases, which are stateful, are typically better suited for VMs. But it’s always good to evaluate the specific requirements of the app.

Answered By LegacySupportGuy On

For me, VMs are the go-to when we're dealing with older architectures where changing to containers just isn't practical. Trying to force legacy systems into a modern containerized setup can end up being more trouble than it's worth. Sometimes it’s just better to keep things as they are for stability’s sake.

VM_Champion23 -

Exactly! Also, if you're working with certain apps that have proprietary licensing issues, containers can be a nightmare.

Answered By TechSavvyGal99 On

It's great that you're already using containers! In my experience, the main reason to choose VMs is when you need to run software that just doesn't support containers. They can be a hassle with all the configuration and monitoring, but for legacy apps or apps with strict licensing, they're sometimes a must. Otherwise, if it can run in a container, we do it!

OldSchoolDev -

Yeah, it can be a real chore to create a Docker image for legacy applications not designed for it.

ContainerNinja88 -

Or when you're stuck with some outdated legacy code that's a pain to convert.

Answered By AlwaysContainerFan On

Honestly, I prefer containers for everything. The efficiency and resource savings are just too good to pass up. But I do consider VMs when a specific application absolutely can’t externalize its state, which can be tricky. Sticking to containers whenever possible is a good rule of thumb, though!

SkepticalDev -

But wait, would you still use containers if you're dealing with stateful applications? Seems risky!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.