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

Where to apply client-server architectures

There are a bunch of situations where the client-server architectural style can be used. Let's review some typical examples, in order to better understand this approach.



As mentioned previously, databases commonly fit this architectural style. Currently, we have many database vendors available in the market, and the majority of them only offer the chance to scale vertically. Two classic examples of this approach are SQL Server and PostgreSQL. However, there are options to scale horizontally, as well. The most well-known database following this model is Cassandra, which is a database created by Facebook that was later adopted as an Apache project. This database uses a ring model to connect different nodes, where the data is stored. In this manner, you can add as many nodes as you need to, in order to support high-availability.


Chat services, like Slack, are a classic example of client-server architectures that use the cloud. This chat has clients...