Over a million developers have joined DZone.

Containers vs. VMware: Which Is the Best Fit for You?

Is virtualization enough, or should you make the move to containers? Get a rundown of the benefits of both to see which works best for you.

· Cloud Zone

Build fast, scale big with MongoDB Atlas, a hosted service for the leading NoSQL database on AWS. Try it now! Brought to you in partnership with MongoDB.

VMware virtual machines and containers address the fundamental needs of operating and managing workloads. Both have developed a loyal following, and in recent years, it appears containers are the heir-apparent to the decade-long reign of VMware. What containers lack in fully realized ecosystem development (something that is rapidly being addressed), they make up for in mindshare.

whatisdocker_3_containers_2_0

VMware

VMware has been the industry leader in virtualization technology for the better part of the last decade. Their technology leverages a Type 1 hypervisor to run virtual machines, and they have developed an impressive array of first and third-party tooling to run and manage this environment. VMware, however, can be difficult to scale without investing in additional first-party software offerings.

Operations teams are familiar with VMware’s technology and have a strong affinity for it. So VMware can be a good choice if you already run it. Applications can be run on existing hardware in the existing environment with little to no configuration delay.

With the virtual machine paradigm, workloads are typically managed at the OS, and it is assumed the OS is highly managed, typically with existing configuration management capabilities. It is also common to spawn virtual machines using a cloned template model, native to VMware.

Workloads on VMware are easier to scale vertically than horizontally. Most virtual machines can have cores and RAM hot added without restarting the virtual machine, allowing for additional cycles to be handled by the same machine. Scaling virtual machines can also reduce the number of OS instances that need to be managed.

The VMware ecosystem is highly mature, allowing for deep and varied use of associated products from VMware, including robust software-defined networking support, host cloning, and low-latency hot workload migrations. This is especially helpful when operating low-tolerance critical workloads such as SQL databases.

Containers

Containers are a read-only packaged workload run on a container host. The most popular container format is Docker, but others exist, such as lxc and rkt. Docker has a strong and growing base of tooling supporting their “batteries included but replaceable” philosophy, including Swarm, for orchestration; Compose, for linking containers together into workloads; and Datacenter, for running and operating clusters of containers. Containers can be run by many platforms, including AWS Elastic Container Service, Google Container Engine, or on-prem with OpenStack.

Containers tend to be easier to scale than virtual machines and are especially effective at tackling very spiky workloads because they can be dramatically scaled up and down as needed. There are less OS instances to manage because many containers can be run on a single container host. This also leads to a potential security vulnerability between containers because one container could potentially overwhelm other containers on the same host.

Developer-centric tools such as the CLI and APIs are first-class citizens in the container ecosystem, making containers easier to integrate into your development pipeline. Many tools, like Codefresh for example, exist to build containers from source control, and work in conjunction with an organizational artifact repository. The ecosystem and container-native tools like Codefresh were also designed from the ground up for blue/green testing and Continuous Deployment. Incorporated into an end-to-end managed pipeline, containers can significantly reduce the complexity of configuration management in production applications.

Now it's easier than ever to get started with MongoDB, the database that allows startups and enterprises alike to rapidly build planet-scale apps. Introducing MongoDB Atlas, the official hosted service for the database on AWS. Try it now! Brought to you in partnership with MongoDB.

Topics:
vmware ,containers ,docker ,cloud

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}