Does MemCache persist cached values across multiple nodes in HA?
I assume it doesnt but wanted to double check with the product team. thanks Miro
Do you still need an answer for this question?
MemCache is local to the JVM process. If you have code running on multiple nodes, which you will in production. The MemCache will be loaded (and expire) in a lazy fashion as the workload / service invocations flow through that node.
thank you Chris
No prob Miro, thanks also to Malcolm Edgar for the technical content.
Malcolm Edgar we have similar requirement to create a MemCache object but share across multiple nodes. So just to be clear from your answer, does this mean MemCache is available for that particular node (that was assigned by LB) only? If we were to have MemCache available on all nodes, do we need to add a check in the groovy service to check for Null (or timed out) and create as we go? Eventually all nodes will have a copy of MemCache object.
The design pattern for using MemCache is to:
In this fashion the MemCaches in each TM server (process) will be loaded in a lazy fashion as the workload arrives on the nodes.
Thanks Malcolm Edgar