9. BigMemory uses Ehcache as its main programming interface
Off-Heap without Garbage Collection Pauses
3 major bricks: CacheManager, Cache and Element
Serializable data classes
Sigma Ukraine9
DISTRIBUTED CACHE MODE
15. Sigma Ukraine15
HOW IT WORKS
Specify root objects
Launch terracotta server
Launch app instances
16. Terracotta uses aspect-oriented technologies to adapt the
application at class load time.
Terracotta does not use serialization.
DSO uses object identity, instrumented classes (byte-code
instrumentation), object-graph roots, and cluster-wide locks to
maintain data coherence
Distributed GC
Sigma Ukraine16
DSO INTERNALS
17. All Standard non-value types like maps, lists
POJO Objects
Synchronization Java objects like locks, semaphores
Sigma Ukraine17
OBJECTS TO SYNC
20. Start Terracotta Server (local or cluster)
Launch two Java application instances through terracotta
script launcher.
Sigma Ukraine20
EXAMPLE — LAUNCH
21. Sharing ordinary objects
Legacy clastering
Distributed Cache
Hibernate 2nd Cache (through DSO)
Web Session clustering (through DSO)
Clastering read/write data with fast update
Sigma Ukraine21
USE CASES
22. Internal ACID Transactions
Only data changes are broadcast
Local caches
DSO- POJO transparent clasterizations
Monitoring Control tools
Sigma Ukraine22
BENEFITS
24. InMemory Distributed Cache
Open Source solution
Supports own special distributed data structures
Supports locks and events
Might be slcaled out
Easy to use and integrate
All objects must be serializable
Supports standard collection interfaces
Sigma Ukraine24
WHAT IS HAZELCAST
25. Distributed Queue
Distributed Topic
Distributed Map
Distributed MultiMap
Distributed Set
Distributed List
Distributed Locks
Distribured Event (Listeners)
Distributed Topic (Hello JMS)
Distributed Semaphore
Distributed Executor Service
Sigma Ukraine25
SUPPORTED DATA
27. Partitioning with replicas
Scalable Peer-toPeer architecture
Availability over Consistency
Failover cluster
Native Client support
Sigma Ukraine27
CLUSTERIZATION
28. User ASID Transactions over several operations
It is free, unlimited community license *
Persistence
Search enhanced by user-defined indexes
Spring support (beans, cachable)
Simple interfaces in comparison to Terracotta BigMemory
Sigma Ukraine28
BENEFITS
29. Share data across cluster
Send/receive messages
Distributed Coordination (locks)
Hibernate 2nd Cache
Http Session Clustering with HazelcastWM (based on Servlet
specification)
Sigma Ukraine29
USE CASES