title: Using Replicated Cache vs LB sticky session
body: <p>I need to keep some data in cache on server. The servers are in cluster and call can go to any of them. In such a scenario is it better to use a replicated/distributed cache like EhCache Or  to use session stickiness of LB.</p>
  
  <p>If the data size(in cache) is big, won't it have a performance impact of serialization and de-serialization across all servers? </p>
  
  <p>Also in case of distributed cache, whats the optimal number of servers till which such cache is effective. Since data is replicated to all nodes, and say number of nodes is 20, its like master to master replication across all nodes. By that I mean, each node will get notifications from other 19 and will update modifications to other 19.Does such type os setup scale?</p>