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

Summary


In Chapter 7, Microservice Patterns, we explored the reactive programming paradigm and how it is implemented using Java EE 8 mechanisms. We also demonstrated how we can make asynchronous calls using Java EE 8 mechanisms, and how to control these calls and apply actions to them via asynchronous processing.

 

Event in CDI is a mechanism of the CDI specification that can be used in all tiers of an application. However, using this mechanism is recommended when working with a presentation tier. This is because CDI has a major focus on the presentation tier and its scopes are directly related to the HTTP interaction and HTTP session. Furthermore, we could launch an event with various elements that react to this event.

The asynchronous EJB method doesn't use the reactive programming paradigm but is an asynchronous process that makes it possible to decrease the time it takes to respond to the client. This is an EJB mechanism and it is recommended to use it at the business tier. The benefit...

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 €14.99/month. Cancel anytime
Visually different images