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 4. Client-Server Architectures

The client-server architecture is one of the most common architectural styles applied today, and it has been used in many different ways.

When we hear the term client-server architecture, we often think of old applications that provide a UI for editing complex databases in which the major part of the business logic resides. However, the truth is that this architectural style offers underlying support for almost every single modern architectural style, including microservices, event-driven architectures, or any distributed computing system.

In this chapter, we will review how the client-server architecture works, as well as how it can be implemented. We will use the Spring Framework to build the server side, and then we'll code clients interacting with the server using Java.

This chapter will cover the following points:

  • Understanding client-server architectures
  • Where to apply client-server architectures
  • Implementing client-server architectures: 
    • Writing a...