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

Chapter 5. Model-View-Controller Architectures

In this chapter, we will dive into one of the most common architectural patterns used by frameworks today.

The Model-View-Controller (MVC) architectural pattern was formulated in 1979 by Trygve Reenskaug. This was one of the first attempts to create an organized method for working on graphical user interfaces. Although many years have passed since then, this pattern continues to be quite popular even in the most modern UI frameworks. This is because it is designed to build almost any type of application, including the most common types of applications, such as mobile, desktop, and web applications.

The popularity of this pattern mostly comes down to the ease of understanding it. MVC provides an excellent way to separate applications into three different components, which we will review in this chapter.

In this chapter, we will cover the following topics:

  • The elements of MVC:
    • Model
    • View
    • Controller
  • The benefits of using MVC architectures
  • Common pitfalls...