Note that there are some explanatory texts on larger screens.

plurals
  1. POAppFabric 1.1 How Many DataCacheServerEndpoint's Should Client Connect To?
    text
    copied!<p>The AppFabric 1.1 client documentation discusses assigning a list of DataCachServer endpoints to the DataCacheFactoryConfiguration. Most of the examples show the list consisting of a single or perhaps two different cache servers. If the cluster consists of <em>n</em> servers should the client register each of the servers? Does it matter what order the servers are registered in? For example, if I have 50 servers in my web tier, and 5 servers in my cache tier, do each of the 50 web servers register all 5 caching servers? Here is sample code:</p> <pre><code>// Declare array for cache host(s). DataCacheServerEndpoint[] servers = new DataCacheServerEndpoint[5]; servers[0] = new DataCacheServerEndpoint("Cache01", 22233); servers[1] = new DataCacheServerEndpoint("Cache02", 22233); servers[2] = new DataCacheServerEndpoint("Cache03", 22233); servers[3] = new DataCacheServerEndpoint("Cache04", 22233); servers[4] = new DataCacheServerEndpoint("Cache05", 22233); // Setup the DataCacheFactory configuration. DataCacheFactoryConfiguration factoryConfig = new DataCacheFactoryConfiguration(); factoryConfig.Servers = servers; // Create a configured DataCacheFactory object. DataCacheFactory mycacheFactory = new DataCacheFactory(factoryConfig); // Get a cache client for the cache named "default". DataCache myDefaultCache = mycacheFactory.GetCache("default"); </code></pre> <p>Can each web server register identically, and will the load be balanced across the caching tier? If a registered server becomes unavailable is the next one tried in sequence, or is it randomized? Links to supporting documentation would be helpful.</p> <p>Related to load balancing, <a href="http://social.msdn.microsoft.com/Forums/en-US/velocity/thread/ac04a2af-a850-4fea-836a-f3377f2bfa55" rel="nofollow">Jason Roth</a> wrote the following [is there other documentation available]?</p> <blockquote> <p>App fabric client is smart client and it can directly contact the server which ever server has your data. The application need not worry about load balancing. This is done using the routing client. </p> </blockquote>
 

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