Skip to Main Content
Design Patterns and Best Practices in Java
book

Design Patterns and Best Practices in Java

by Kamalmeet Singh, Adrian Ianculescu, Lucian-Paul Torje
June 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
7h 46m
English
Packt Publishing
Content preview from Design Patterns and Best Practices in Java

Request-response pattern

We will start with the simplest design pattern, the request-response pattern, which addresses the responsiveness pillar of reactive programming. This is one of the core patterns that we use in almost every application. It is our service that takes a request and returns a response. A lot of other patterns are directly or indirectly dependent on this, so it is worth spending a few minutes to understand this pattern.

The following diagram shows a simple request-response communication:

There are two parties to a request-response relationship. One entity makes a request and the second entity fulfills the request. A requester ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Design Patterns for Java Developers

Practical Design Patterns for Java Developers

Miroslav Wengner
Java Design Patterns

Java Design Patterns

Vaskaran Sarcar

Publisher Resources

ISBN: 9781786463593Supplemental Content