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
JBoss: Developer's Guide

You're reading from   JBoss: Developer's Guide A complete guide to the JBoss ecosystem

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781788296199
Length 328 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
 Woguia Woguia
Author Profile Icon Woguia
Woguia
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Title Page
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Introduction to the JBoss Ecosystem FREE CHAPTER 2. Developing and Hosting Scalable Web Applications 3. Custom Web Deployment using Undertow and Swarm 4. Storing and Accessing Distributed Data 5. Exposing Data as a Service 6. Integrating Applications with JBoss Fuse 7. Delivers Information Safely and Connects IoT 8. Making Better Decisions in Your Applications 9. Developing Workflows

Grid computing


JBoss DataGrid is also a computing grid; nodes can be used to perform distributed computing. JBoss Datagrid provides various mechanisms to empower data stored in these nodes:

  • Distributed streams that aim to transform a cache entry set into a Java 8 Stream
  • Distributed executors that extend the Java Executor stack to schedule tasks on cache instances

Distributed Streams

Data grid can also be used as a grid computing engine to perform various computation tasks on large and distributed datasets. Users can turn all the cache entries of a local, replication, or invalidation cache into a regular Java Stream using the following operations:

cache.entrySet().stream()
cache.entrySet().parallelStream()

So, instead of iterating on data key values yourself, the underlying org.infinisap.CacheStream object handles it, and you just have to provide operations to perform on it.

The primary interest of using streams with an Infinispan cache is Distributed Streams. Distributed Streams allow any operation...

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