Infinispan Data Grid Platform
Formats:
save 15%!
save 37%!
Free Shipping!
| Also available on: |
|
- Configure and develop applications using the Infinispan Data grid platform
- Follow a simple ticket booking example to easily learn the features of Infinispan in practice
- Draw on the experience of Manik Surtani, the leader, architect and founder of this popular open source project
Book Details
Language : EnglishPaperback : 150 pages [ 235mm x 191mm ]
Release Date : August 2012
ISBN : 184951822X
ISBN 13 : 9781849518222
Author(s) : Francesco Marchioni, Manik Surtani
Topics and Technologies : All Books, JBoss, Open Source, Web Development
Table of Contents
PrefaceChapter 1: Installing Infinispan
Chapter 2: Using Infinispan Core API
Chapter 3: Introducing Infinispan Configuration
Chapter 4: Developing Advanced Configurations
Chapter 5: Monitoring Infinispan
Chapter 6: Infinispan and CDI
Chapter 7: Advanced Topics
Appendix: Infinispan and JBoss AS 7
Index
- Chapter 1: Installing Infinispan
- What is a data grid?
- Introducing Infinispan as a cache
- Going beyond JSR-107
- Installing the required software
- Installing Java SE
- Testing the installation
- Installing Maven
- Testing the installation
- Installing Infinispan
- Extending Infinispan with its additional modules
- Testing the installation with the GUI demo
- Summary
- Chapter 2: Using Infinispan Core API
- Infinispan operational modes
- Running Infinispan in embedded mode
- Running Infinispan in client-server mode
- The memcached protocol
- The Hot Rod protocol
- WebSocket protocol
- Infinispan REST interface
- Using the Hot Rod Java client
- Learning the Infinispan API
- Creating your first project
- Controlling the size of your data store
- Data eviction
- Data expiration
- Using listeners
- Listeners and synchronicity
- Infinispan and transactions
- Running the sample application with Maven
- Summary
- Chapter 3: Introducing Infinispan Configuration
- Learning the declarative configuration
- Global configuration settings
- Cache configuration settings
- Configuring cache loaders
- Common cache loader attributes
- Specific cache loader attributes
- Choosing the correct cache store for your application
- JDBC-based cache stores
- Chaining cache loaders
- Configuring eviction and expiration
- Testing our ticket system with eviction and passivation
- Infinispan programmatic configuration
- Creating a configuration from scratch
- Creating the Global configuration programmatically
- Summary
- Chapter 4: Developing Advanced Configurations
- Introducing clustering
- Configuring the network transport
- Creating the Infinispan cluster
- Configuring our application to use clustering
- Choosing between replication and distribution
- Advanced data distribution
- Improving the distribution of data with virtual nodes
- Using the L1 cache to prevent unnecessary remote calls
- Infinispan locking strategies
- Configuring isolation levels
- Data locking and transactions
- Explicit and implicit data locking
- Showing a node locking example
- Configuring lock timeouts
- Using lock pools to guard your cache keys
- Detecting deadlocks
- Summary
- Chapter 5: Monitoring Infinispan
- Enabling statistics collection
- Using JConsole to gather Infinispan data
- Managing Infinispan with RHQ
- Installing RHQ
- Configuring the RHQ agent
- Letting the agent discover Infinispan
- Installing the Infinispan plugin
- RHQ: your gateway to Infinispan
- A quick Summary view of our cache
- Getting alert conditions from your cache
- Monitoring your system in real time
- Summary
- Chapter 6: Infinispan and CDI
- A 30,000 foot overview of CDI
- Getting set up to use Infinispan and CDI
- Configuring and injecting Infinispan components into your CDI beans
- Injecting a cache using CDI
- Configuring which cache gets injected
- Configuring cache managers
- Specifying the default configuration
- Overriding the way an EmbeddedCacheManager is created
- Configuring a RemoteCacheManager
- Handling multiple configurations
- Controlling storage and retrieval using CDI annotations
- Enabling cache annotations in your CDI application
- Caching the result of a method invocation
- Specifying which cache to use
- Cache keys for cached results
- Custom key generation
- Removing an entry from the cache
- Clearing the cache
- Updating a cache entry
- Using Infinispan CDI with JBoss AS 7.x
- Summary
- Chapter 7: Advanced Topics
- The asynchronous API
- NotifyingFuture
- The query API
- Setting up your project to use Infinispan's querying capabilities
- Configuring your cache
- Annotating your objects
- Writing a query
- Storing indexes
- Infinispan directory
- Index storage and cache modes
- Customizing Infinispan
- BaseCustomInterceptor
- Commands and InvocationContext
- Creating a custom interceptor
- Configuring custom interceptors
- Interceptor positioning
- Summary
Francesco Marchioni
Manik Surtani
Code Downloads
Download the code and support files for this book.
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
- Learn about the core server configuration, including global configuration, data eviction/expiration, Cache loaders, and Interceptors
- Collect and make use of statistics on a live system
- Use the popular Contexts and Dependency Injection (CDI) programming model
- Find out about the advanced modules provided by Infinispan, such as the Query module and the Asynchronous API
- Extend and customize Infinispan to your needs
- Discover advanced topics like JTA compliant transactions, clustering, and locking/concurrency patterns in a cluster
In today's competitive business world, Enterprise systems must be able to deliver highly available, high transaction volumes with an increasing number of users. Infinispan enables you to do this as well as share and distribute data among servers in the most efficient way possible so that you achieve faster response times, while trying to avoid single points of failure.
Infinispan Data Grid Platform will teach you the most important concepts for building Enterprise applications. Using Infinispan will give you a decisive competitive advantage over the standard clustered applications that are typical in the enterprise today. This, the only book to cover Infinispan, offers detailed instructions for installing, configuring, and effectively using the Infinispan platform. You will learn how to utilize and make the most out of every feature of its API.
Progress from examples of adding, removing, and evicting data from a cache, to more complex scenarios such as clustering and distributing data more efficiently in the grid. Throughout the book, you will follow a simple example of an API using a ticket booking system, which will help you to learn how to set up robust and scalable Infinispan configurations. You will also see a complete demonstration of integrating the Infinispan data grid platform with JBoss AS 7.
By following a simple ticket booking example, you will learn how to use each of Infinispan’s features in the real-world. Lots of practical examples and screenshots help you to get to grips with Infinispan quickly and easily.
This book is for Enterprise developers and architects who want to use a distributed caching and data grid solution. You should have programming knowledge of Java and a general familiarity with concepts like data caching and clustering.

