Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I will try to present here possible solution from Infinispan point of view.</p> <p>In your use case I would suggest to use cluster of Infinispan standalone nodes (client-server access, for example via HotRod) with configured underlying cache store.</p> <p><a href="https://docs.jboss.org/author/display/ISPN/Infinispan+Server" rel="nofollow">https://docs.jboss.org/author/display/ISPN/Infinispan+Server</a> &amp; <a href="https://docs.jboss.org/author/display/ISPN/Using+Hot+Rod+Server" rel="nofollow">https://docs.jboss.org/author/display/ISPN/Using+Hot+Rod+Server</a></p> <p>Now more specifically to your questions:</p> <blockquote> <p>What I need to know is how this cache will be repopulated when the individual nodes or the entire application restarts.</p> </blockquote> <p>That's why I suggest you to use let's say "independent" cluster with remote client-server access. Your caching layer does not depend directly on your application. When application restarts, crash, redeploying... you still have cached data in Infinispan cluster and simply connect to it once your app lives again.</p> <blockquote> <p>All the data that a node requires is present in the underlying database. So can each node simply load the data from its database and populate the cache after restarts? </p> </blockquote> <p>In Infinispan, yes. Nodes are able to load data from cache store. Please see this section: <a href="https://docs.jboss.org/author/display/ISPN/Cache+Loaders+and+Stores" rel="nofollow">https://docs.jboss.org/author/display/ISPN/Cache+Loaders+and+Stores</a> and especially <strong>preload</strong> configuration element which is there for pre-loading data from store to the cache after cache start.</p> <blockquote> <p>How will the cache then bring the cluster nodes to a single state? </p> </blockquote> <p>There is a <em>state transfer</em> in Infinispan. This new implementation (<a href="https://community.jboss.org/wiki/Non-BlockingStateTransferV2" rel="nofollow">https://community.jboss.org/wiki/Non-BlockingStateTransferV2</a>) even doesn't block your cluster any more during new nodes joining. State transfer simply takes care about your data distribution across the cluster after join/leave changes. </p> <blockquote> <p>Is there a way an app can reload the cache with all the data at restart and have all the caches do the same and sync up the deltas?</p> </blockquote> <p>Yes, according to all mentioned above. You can simply use replication so entries are replicated to all nodes and the state is consistent. However, this case is better for heavy-read scenario. In your case, I suppose, distribution mode with respective numberOfOwner should be enough.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload