Infinispan Data Grid Platform Definitive Guide
eBook - ePub

Infinispan Data Grid Platform Definitive Guide

Wagner Roberto dos Santos

Buch teilen
  1. 464 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Infinispan Data Grid Platform Definitive Guide

Wagner Roberto dos Santos

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Infinispan Data Grid Platform Definitive Guide als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Infinispan Data Grid Platform Definitive Guide von Wagner Roberto dos Santos im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Computer Science & Programming in Java. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
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...

Inhaltsverzeichnis