Switching to a Container-based Application Architecture? Not So Fast
November 03, 2021

Jayne Groll
DevOps Institute

Container technology, such as Docker and CoreOS, have become an increasingly popular step in DevOps journeys. Containers are lightweight and portable, making them easier on organizations' resources. Containers can benefit cloud environments in a variety of ways, but that does not mean they are perfect for every situation. Software teams must manage a container's life cycle, including provisioning, deployment, scaling (up and down), networking, load balancing and more. The maintenance and implementation of container technology can be tedious and, therefore, there are situations where containers simply are not a good idea.

I asked top industry experts — DevOps Institute Ambassadors— to share their thoughts on when you may not want to use containers. Here's what landed at the top of the list:

Anshul Lalit

head of technology and transformation, Kongsberg Digital

"Containers are perfect for deploying an application with many dependencies that the end-user does not need to touch. However, containers might not be the best option if the application is very lightweight, and it's not essential for users to quickly update the application with each new version. For example, I would recommend for a monolith lift-and-shift to use a simple VM to avoid disruption.

In addition, it is vital to understand the limitations and differences between using a container and using another technology stack. Some use cases where you may avoid containers are:

If you need to use a special driver, capability or incompatible software with the standard container kernel.

If you need to change the kernel configuration, use a custom kernel, add other software or run commands that interfere with a container's standard configuration.

If you need to work with files that are incompatible with a container. For example, if you need to access a file system or a database not available in a container.

Also, as a general guideline, I highly recommend The Twelve-Factor App methodology for building modern software-as-a-service (SaaS) apps. It just makes your product life easier, predictable and covers all bases."

Supratip Banerjee

solutions architect, Principal Global Services

"If security is a priority, maybe Docker is not the best solution.

The most significant security benefit of Docker is that it divides the software into smaller pieces. If the security of one component is jeopardized, others are unaffected. While separated processes in containers offer greater security, all containers have access to the same host operating system. You face the risk of operating Docker containers with insufficient isolation. Any malicious malware has the ability to gain access to your computer's memory.

It is common practice to operate a large number of containers in a single environment. Unless you limit the resource container capabilities, this is how you make your app vulnerable to resource abuse attacks. Each container should handle one specific area of concern for optimal efficiency and isolation.

Another issue is that Docker's default setup does not namespace users. Namespaces allow software resources to use other resources only if they are in the same namespace."

Parveen Arora

co-founder and director, VVnT SeQuor

"If you're doing a project(s) related to "lift and shift" of your applications, you may be better off with a simple VM deployment to experience the least amount of disruption. However, if you're creating a new application from scratch, you're probably better off starting with containers."

Vishnu Vasudevan

head of product engineering and development, Opsera

"If you're running a monolithic application, people assume that switching from monolithic to container-based microservices is like flipping a switch, but that's not the case. Understanding the application needs to happen first and deciding to make it containerized is only viable if your team has the right skills for converting a monolithic application into a containerized application. If you do not have the skills within the application team running the monolith, they are likely going to fail. Whoever is building the application needs to know best practices for container orchestration. They need to analyze and recommend whether or not this application fits in the wheelhouse of containerization. Do not try to move everything to containers because it's the popular thing to do or your competitors are doing it. It has to be solely based on the merit of the application, not based on the merit of the person pushing to move to containers."

Join DevOps Institute for SKILup Day: Container Orchestration, for how-to sessions to expand your container knowledge.

Jayne Groll is CEO of DevOps Institute
Share this

Industry News

November 20, 2024

Spectro Cloud completed a $75 million Series C funding round led by Growth Equity at Goldman Sachs Alternatives with participation from existing Spectro Cloud investors.

November 20, 2024

The Cloud Native Computing Foundation® (CNCF®), which builds sustainable ecosystems for cloud native software, has announced significant momentum around cloud native training and certifications with the addition of three new project-centric certifications and a series of new Platform Engineering-specific certifications:

November 20, 2024

Red Hat announced the latest version of Red Hat OpenShift AI, its artificial intelligence (AI) and machine learning (ML) platform built on Red Hat OpenShift that enables enterprises to create and deliver AI-enabled applications at scale across the hybrid cloud.

November 20, 2024

Salesforce announced agentic lifecycle management tools to automate Agentforce testing, prototype agents in secure Sandbox environments, and transparently manage usage at scale.

November 19, 2024

OpenText™ unveiled Cloud Editions (CE) 24.4, presenting a suite of transformative advancements in Business Cloud, AI, and Technology to empower the future of AI-driven knowledge work.

November 19, 2024

Red Hat announced new capabilities and enhancements for Red Hat Developer Hub, Red Hat’s enterprise-grade developer portal based on the Backstage project.

November 19, 2024

Pegasystems announced the availability of new AI-driven legacy discovery capabilities in Pega GenAI Blueprint™ to accelerate the daunting task of modernizing legacy systems that hold organizations back.

November 19, 2024

Tricentis launched enhanced cloud capabilities for its flagship solution, Tricentis Tosca, bringing enterprise-ready end-to-end test automation to the cloud.

November 19, 2024

Rafay Systems announced new platform advancements that help enterprises and GPU cloud providers deliver developer-friendly consumption workflows for GPU infrastructure.

November 19, 2024

Apiiro introduced Code-to-Runtime, a new capability using Apiiro’s deep code analysis (DCA) technology to map software architecture and trace all types of software components including APIs, open source software (OSS), and containers to code owners while enriching it with business impact.

November 19, 2024

Zesty announced the launch of Kompass, its automated Kubernetes optimization platform.

November 18, 2024

MacStadium announced the launch of Orka Engine, the latest addition to its Orka product line.

November 18, 2024

Elastic announced its AI ecosystem to help enterprise developers accelerate building and deploying their Retrieval Augmented Generation (RAG) applications.

Read the full news on APMdigest

November 18, 2024

Red Hat introduced new capabilities and enhancements for Red Hat OpenShift, a hybrid cloud application platform powered by Kubernetes, as well as the technology preview of Red Hat OpenShift Lightspeed.

November 18, 2024

Traefik Labs announced API Sandbox as a Service to streamline and accelerate mock API development, and Traefik Proxy v3.2.