java - Tomcat 6 cluster with shared objects -
We have a large cluster of Tomato servers and I find an efficient way to share a number between them I am trying. This calculation is the number of purchased "widgets" and should be checked for each pageview. Any server can meet a sales and salary increase, at which point the new value should be made available to all cluster members.
We do not want to use the counting from the database because it is unnecessary to get DB for many page views and views of each page between all the updates of the cluster.
We have a comprehensive memcatch cluster where we can store the value, get it on every page view, and whatever the value updates it sets the new value to the cluster. It is useless again because a page for the view of each page gets a cache.
What I want to do, there is an in-memory value on each server and a multicast (or similar mechanism) message tells all servers that they have just increased and the new number is X. It appears to be the most effective because only one action is taken when every page is updated instead of working for the scene.
How have you handled it in your applications? Am I thinking more about this ... should we just throw it in a memcatch?
Thank you!
If you already have a meconnected infrastructure, then I do not know why you use it It should not be that this will be ideal for it. It will be useless in sea or another drop, only test will tell you. Architecture will be as easy as compared to starting some sculptures or other cache sharing systems as infiltration.
Comments
Post a Comment