Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Java EE 8 Design Patterns and Best Practices

You're reading from   Java EE 8 Design Patterns and Best Practices Build enterprise-ready scalable applications with architectural design patterns

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher Packt
ISBN-13 9781788830621
Length 314 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
 Alberto Simoes Alberto Simoes
Author Profile Icon Alberto Simoes
Alberto Simoes
 Rocha Rocha
Author Profile Icon Rocha
Rocha
 Purificação Purificação
Author Profile Icon Purificação
Purificação
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Title Page
Copyright and Credits
Dedication
Packt Upsell
Contributors
Preface
1. Introduction to Design Patterns FREE CHAPTER 2. Presentation Patterns 3. Business Patterns 4. Integration Patterns 5. Aspect-Oriented Programming and Design Patterns 6. Reactive Patterns 7. Microservice Patterns 8. Cloud-Native Application Patterns 9. Security Patterns 10. Deployment Patterns 11. Operational Patterns 12. MicroProfile 1. Other Books You May Enjoy Index

Explaining the concept of an asynchronous REST service


Over time, the number of REST applications has grown and many APIs have been created to serve various kinds of services in many environments. In the same way as other applications, some REST applications need asynchronous processes and work with nonblocking processes. 

An asynchronous REST service is an asynchronous process that makes it easier to process threads. In contrast, in a request sent to a server, a new thread can be called to process a nonblocking task, such as operations on a filesystem. JAX-RS supports asynchronous processing in a client API and server API, but the asynchronous rest service is implemented at the server API. This is because it is the server API that provides services. The client API consumes the services and, as a result, we refer to the asynchronous processing in a client API as the asynchronous REST consume.

The client API can be completed through asynchronous invocation, which returns a Future<T> object...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images