Book Image

Software Architecture with Spring 5.0

By : René Enríquez, Alberto Salazar
Book Image

Software Architecture with Spring 5.0

By: René Enríquez, Alberto Salazar

Overview of this book

Spring 5 and its ecosystem can be used to build robust architectures effectively. Software architecture is the underlying piece that helps us accomplish our business goals whilst supporting the features that a product demands. This book explains in detail how to choose the right architecture and apply best practices during your software development cycle to avoid technical debt and support every business requirement. Choosing the right architecture model to support your business requirements is one of the key decisions you need to take when a new product is being created from scratch or is being refactored to support new business demands. This book gives you insights into the most common architectural models and guides you when and where they can be used. During this journey, you’ll see cutting-edge technologies surrounding the Spring products, and understand how to use agile techniques such as DevOps and continuous delivery to take your software to production effectively. By the end of this book, you’ll not only know the ins and outs of Spring, but also be able to make critical design decisions that surpass your clients’ expectations.
Table of Contents (21 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Containers


Containers provide a lightweight approach to virtualization that consists of providing the bare minimum that an application requires in order to work. In the old days, VMs used to be the main choice for provisioning environments and running applications. However, they require a complete OS in order to work. Containers, on the other hand, reuse the host OS to run and provision the required environments. Let's learn more about this concept by looking at the following diagram:

Virtual machines and containers

In the preceding diagram, we can see the Virtual Machines (VMs) on the left side and the containers on the right side. Let's start by learning how a Vm works.

VMs require their own OS using the hardware assigned to the VM, which is supported by the hypervisor. The preceding diagram shows three VMs, which means that we need to have installed three OSes, one per VM. When you're running applications within VMs, you have to consider the resources that will be consumed by the application...