Set of code snippets designed for getting started with Coherence quickly along with some more advanced tips and tricks. The tests and examples are supported by a multi-process test suite which was a precursor to the little-grid / the coherence incubator.
Topics covered:
Basics:
- Agregators
- Cache Stores (Async/Sync)
- CQCs
- Entry Processors
- Extend Proxies
- [Filters] (https://github.com/benstopford/coherence-bootstrap/blob/master/src/com/benstopford/coherence/bootstrap/basic/Filters.java)
- Index Performance
- MapListeners
- Near Caching
- PartitionListeners (for detecting data loss)
- POF
- Put & Get
- Triggers
More Complex:
- Hopping between caches on the server
- Is POF always a good idea - testing serialisation times
- How listeners can lose data
- Membership listeners
- Multithreaded clients
- PutAll that reports individual errors
- Overflow caches
- Using services to isolate work onto groups of hardware
- Sizing the indexes in your Coherence Cache via JMX
- Exploring POF internal encodings
- Understanding POF performance, when it is faster and when it is not?
- Put backups on disk with elastic data
- Put all data on disk with elastic data
- Join, server side, using backing map access and key-association
Utilities
- ClusterGC: GC all processes incrementally [test] [code]
- BinaryCacheSizeCounter: Work out how much data is in your cluster. [test code]
Getting started is simple:
- Download the zip or clone this repository
- If you wish, run 'ant test' to check everything works ok
- Create a project in your IDE of choice
- Add lib/ & "." to your classpath
- Refer to the ant script if you have any problems
Outstanding Tasks
- Port cluster framework to LittleGrid