Infinispan Data Grid Platform Definitive Guide
eBook - ePub

Infinispan Data Grid Platform Definitive Guide

Wagner Roberto dos Santos

Condividi libro
  1. 464 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Infinispan Data Grid Platform Definitive Guide

Wagner Roberto dos Santos

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Infinispan Data Grid Platform Definitive Guide è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Infinispan Data Grid Platform Definitive Guide di Wagner Roberto dos Santos in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Computer Science e Programming in Java. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2015
ISBN
9781782169970

Infinispan Data Grid Platform Definitive Guide


Table of Contents

Infinispan Data Grid Platform Definitive Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started
Introducing the Infinispan data grid
Infinispan and JSR 107 – Java Temporary Caching API
Getting started with Infinispan
Installing Infinispan
Looking inside the box
Using Maven
Running the sample application
Creating your first project
Creating a Maven project manually
Building Infinispan from source
Setting up the environment
Contributing to the project
Summary
2. Barriers to Scaling Data
Understanding performance and scalability
Improving performance using Infinispan
An introduction to performance tuning
Infinispan and performance
Improving scalability
Vertical scalability
Horizontal scalability
Design tradeoffs
Points to consider about relational databases
Distributed transactions and ACID
CAP theorem
BASE
Infinispan, CAP, and BASE
Scaling out your database
Scaling options
Master-Slave replication
Active/Passive configuration
Database clustering
Database sharding
Infinispan and network partitions
Configuring partition handling
Infinispan and high availability
Summary
3. Using the APIs
Infinispan architecture
Anatomy of an Infinispan clustered cache
The embedded (P2P) mode
The client/server mode
The cache container
Default cache
Naming your caches
Configuring an Infinispan cache
Declarative configuration on Infinispan 6.0.x
Global configuration (globalType)
Configuration settings
Declarative configuration on Infinispan 7.0.x
Understanding the JGroups element
Configuring the threads subsystem
Configuring the cache-container element
Programmatic configuration
Infinispan APIs
Learning the cache API
Understanding cache evictions
Configuring cache expiration
Eviction v/s Expiration
Persisting data in Infinispan
Configuring a cache loader
Filesystem-based cache loaders
JDBC-based cache loaders
JPA cache store
Selecting a JDBC cache loader
Using passivation in your application
Writing event listeners and notifications
The listener API
Cluster listeners in Infinispan 7.0
Listening to cache-level events
Writing cache manager-level events
Registering event listeners
Configuring logging in Infinispan
Introducing JSR-107 – The Java Caching API
Summary
4. Infinispan Topologies
Clustering modes
The local mode
The invalidation mode
The replicated mode
Understanding synchronous and asynchronous replication
The synchronous replication
The asynchronous replication
The asynchronous marshalling
The replication queue
The distribution mode
Server Hinting
L1 caching
Summary
5. Data Access Patterns
Data access patterns
Understanding and configuring second-level cache in Hibernate with Infinispan
Introducing first-level and second-level caching
Configuring Infinispan as Hibernate second-level cache
Implementing the cache-aside programming pattern
Reading and writing through cache
Writing behind caching
The Unscheduled Write-behind strategy
The Scheduled Write-behind strategy
Summary
6. Case Study – The TicketMonster Application
The JBoss developer framework
Installing and running the TicketMonster application
Project structure
In Eclipse
In IntelliJ
The TicketMonster application use cases
Administrators use cases
Building the administration UI using JBoss Forge
JBoss Forge installation and setup
Forge Plugin for Eclipse
Architecture and design of TicketMonster
The TicketMonster domain model
Utility classes in TicketMonster
The service layer of TicketMonster
Scaling TicketMonster
Clustered Web servers versus stateful session
Which pattern to use?
Adding Infinispan to Ticket Monster
Configuring the infrastructure
Using caches for seat reservations
Implementing shopping carts
Summary
7. Understanding Transactions and Concurrency
Transaction fundamentals
Java Transaction API
Transactional modes
Non-transactional data access
Transactional models
Optimistic transaction
Pessimistic transaction
Choosing the better transaction model
Batch mode
Transaction recovery
Integrating with Transaction Manager
Locking and concurrency control
Multiversion concurrency control
Configuring isolation levels in Infinispan
Implicit and explicit locking
Lock timeouts
Deadlock detection
Data versioning
Summary
8. Managing and Monitoring Infinispan
An overview of monitoring and managing with Java
Monitoring and managing Java applications with JMX
Interacting with Infinispan via JMX
The CacheManager level
The cache level
Monitoring Infinispan with JConsole
Monitoring Infinispan with VisualVM
Infinispan's MBeans
Other management tools
Introducing RHQ
Installing and configuring RHQ
Installing RHQ Server
Installing the Infinispan plugin
Installing the RHQ Agent
Monitoring Infinispan
Planning and scheduling operations
Creating alerts
Summary
9. Server Modules
Client/Server access
Introduction to server modules
Starting the server
Configuration
Customizing the endpoint and Infinispan subsystem
Enabling protocol interoperability
Infinispan REST server
Introduction to REST services
Configuring the Infinispan REST Server on earlier versions
Introducing the REST API
Using HTTP request headers for GET and HEAD operations
Accept
Using HTTP request headers for POST and PUT operations
Content-Type
performAsync
timeToLiveSeconds
maxIdleTimeSeconds
Client side code
cURL
Options
Testing REST services with RESTClient
Consuming RESTful web services with Java
Java.net
Using the Hot Rod server
Hot Rod clients
Using the Hot Rod Java Client
Starting a RemoteCacheManager
Configuring authentication for your Hot Rod application
Introducing the SASL framework
Supported SASL mechanisms
Configuring authorization policies
Realm conf...

Indice dei contenuti