What is hazlecast ?
- client → send request → LB → behing LB there are multiple server → each having our application runnin in tomcat server → running our WAR → now we can use httpSession to create session object and later store and show the session data to the user , these sessions objects will be stored in db → but we can also store some user data in → map,tree,graph or any form in hazlecast → which is in memory data store and this data can be shared accross jvm.
- in memory , distributed caching mechanismis for the jvm persistence , reliabiliry
- datagrid is there : data is shared between these nodes
- there is no master,slave concept, same as cassandra
- if one node goes down it will balance the nodes in the grid
- data partion : data is stored in the nodes
- we can share the hashmap data across the jvm → so here hazlecast solves this issue ,
- we can create the instance of hazlecast , store anything in that object retreive that and also share it
- publisher → subsriber → model is also there
- Cluster level locks → writing data in a cluster solves the problem of caching