Does Hazelcast Remember Between Runs? The Map Holds Values. The Agent Starts Empty.
Does Hazelcast Remember Between Runs? The Map Holds Values. The Agent Starts Empty. Hazelcast remembers exactly what its data structures were told to hold, for exactly as long as the cluster, a backup, or an optional persistence layer keeps them alive. An IMap entry put by one process can be read by another process seconds or days later, as long as the cluster stays up or the entry was written through to an external store. What Hazelcast never holds is a run. It stores current values under keys
Does Hazelcast Remember Between Runs? The Map Holds Values. The Agent Starts Empty.
Hazelcast remembers exactly what its data structures were told to hold, for exactly as long as the cluster, a backup, or an optional persistence layer keeps them alive. An IMap entry put by one process can be read by another process seconds or days later, as long as the cluster stays up or the entry was written through to an external store. What Hazelcast never holds is a run. It stores current values under keys. It does not store what an AI agent concluded, which steps it finished, or why it chose one path over another, and a scheduled agent that wakes tomorrow starts with only the values someone deliberately placed in the grid.
The default memory: partitions, backups, and a running cluster
The core Hazelcast model is an in-memory data grid. Data is divided into partitions, 271 by default, and each partition keeps a synchronous backup on another member. When a member crashes, its backups are promoted, the data is recovered from those backups, and new backups are formed on the surviving members. Availability survives a node failure because a second copy was already in memory elsewhere.
Notice the condition inside that guarantee. The memory lasts while the cluster lasts. Hazelcast's own FAQ answers the persistence question directly: by default, Hazelcast does not persist. A full cluster shutdown, planned or otherwise, ends the in-memory story unless one of the optional persistence mechanisms below was configured in advance. Eviction and time-to-live settings can also remove entries earlier, by design, because a grid is sized as working memory, not as an archive.
MapStore: persistence you build yourself
The main bridge to durable storage is the MapStore and MapLoader pair. When a MapStore implementation is attached to a map, a put also calls your store method, which writes the entry to a store you choose and operate: a relational database, a NoSQL store, or a file-based store. On a read that misses in memory, the loader can pull the entry back from that store, so a restarted cluster can rehydrate entries on demand.
Two modes decide how strong that bridge is. Write-through, with a write delay of zero, stores synchronously as part of the put, so a returned put means the external write succeeded. Write-behind, with a delay above zero, stores asynchronously on a background thread, potentially long after the put returned, which is faster and leaves a window where memory and store disagree.
The documentation is candid about the contract. MapStore calls follow at-least-once semantics, operations may be retried, reordered, or replayed after failures, and implementations must be idempotent. The API documentation states plainly that MapStore is not a durability layer in the database sense; it exists to make in-memory state recoverable, not to provide transactional persistence. Hazelcast also offers a disk Persistence feature that saves data for recovery after planned shutdowns and cluster-wide failures, and CP Subsystem persistence for its strongly consistent structures, but both are opt-in features rather than the default behavior of a map.
The CP Subsystem: strong consistency, small state
Hazelcast also contains a CP Subsystem built on the Raft consensus algorithm. Its structures, such as locks, atomic counters, and semaphores, are linearizable: they prefer consistency over availability during a network partition. By default the CP Subsystem also works only in memory. Disk persistence can be enabled so CP members restore their local state after crashes.
This is real, carefully engineered memory, and its scope is coordination. CP structures hold small, current coordination state: who holds the lock, what the counter reads now. They do not hold a history of how the counter got there, and they were never meant to answer questions about last week's work.
Where this leaves scheduled and AI-driven work
Place a scheduled AI agent next to the grid and the boundary becomes practical. A run can stash intermediate values in an IMap, and a later run can read those exact values back, which is genuinely useful for counters, feature flags, cached lookups, and shared working state. Teams do this every day, and the grid is good at it.
The gap appears one level up. The map holds the value under the key now. It does not hold the conversation that produced the value, the sources the agent checked, the options it rejected, or the reasoning a reviewer would need to trust the result. If nobody wrote a summary into the grid, the next run cannot recover one. If somebody did write a summary, the grid stores it as an opaque value, with no search by meaning, no link to the run that wrote it, and no record of the full exchange behind it. The agent wakes, reads a few current values, and reconstructs everything else from scratch: re-querying systems, re-reading documents, re-deriving decisions that were already made once.
The layer a data grid cannot be
That reconstruction is the cost a dedicated agent memory layer exists to remove. Vilix AI is built for the record of the work itself. It is cloud-hosted with zero infrastructure to run, so there is no cluster to size, back up, or keep alive. The same memory is reachable everywhere over MCP, so an agent in a scheduler, a coding tool, and a chat app all read one shared record instead of separate grids and stores. It keeps the full conversation history, not just facts or final values, so a later run can see what was asked, what was found, and what was decided, in order.
The practical terms stay simple. Vilix AI has a free plan that stays free forever, a 7-day Pro trial that needs no card, and export or delete controls available anytime, so the record of your agents' work stays yours. Hazelcast remains an excellent choice for fast shared values inside a running system. Let the grid hold the present. Give the runs a memory that holds the past, and the next run starts briefed instead of blank.