1
votes

Can I know Hazelcast support disk persistence? In other words can I use Hazelcast as regular database? (Like apache ignite).

2

2 Answers

2
votes

No, Hazelcast is an in-memory data store. It does not support persistence.

One corner case that is supported in Hazelcast is, so-called, Hot Restart, but it's limited to the scenarios when you need to shut down your cluster for maintenance or your cluster suddenly crashes. You can read more at Hazelcast: Hot Restart.

1
votes

Generally, Hazelcast is memory centric storage with respective trade-offs. Persistence options are designed to populate the cache faster upon start-up and to recovery faster after a failure. See the Hot Restart.

Use Hazelcast as a database for data you can recover or ignore if lost. Hz gives you many tools to recover the data: MapStore, Connectors. I wouldn’t recommend using it when you need strong durability (as in “ACID” database), e.g. for a long-term storage.

Disclaimer: I work at Hazelcast