Windows Server AppFabric キャッシュの圧縮により、データが圧縮されて保存されるか、圧縮されて送信されますか?
ネットワーク帯域幅を節約するだけですか、それとも帯域幅とサーバー メモリの両方を節約するためですか?
これは Windows Server AppFabric に関する質問です。
Windows Server AppFabric キャッシュの圧縮により、データが圧縮されて保存されるか、圧縮されて送信されますか?
ネットワーク帯域幅を節約するだけですか、それとも帯域幅とサーバー メモリの両方を節約するためですか?
これは Windows Server AppFabric に関する質問です。
はい。データはクライアントで圧縮されているためです。
これを確認する非常に簡単な方法は、 CmdLet Get-CacheStatisticsです。
DataCacheServerEndpoint[] servers = new DataCacheServerEndpoint[1];
servers[0] = new DataCacheServerEndpoint("fr-vmrd-web1", 22233);
DataCacheFactoryConfiguration factoryConfig = new DataCacheFactoryConfiguration();
factoryConfig.Servers = servers;
factoryConfig.SecurityProperties = new DataCacheSecurity(DataCacheSecurityMode.None, DataCacheProtectionLevel.None);
factoryConfig.TransportProperties.MaxBufferSize = int.MaxValue;
factoryConfig.TransportProperties.MaxBufferPoolSize = int.MaxValue;
factoryConfig.IsCompressionEnabled = true;//or false
DataCacheFactory mycacheFactory = new DataCacheFactory(factoryConfig);
var data = File.ReadAllText(@"c:\test.log"); //40 MB
DataCache myDefaultCache = mycacheFactory.GetDefaultCache();
myDefaultCache.Put("test", data);
圧縮あり
...
Size : 2575360
ItemCount : 1
RegionCount : 1
...
圧縮なし
...
Size : 41900032
ItemCount : 1
RegionCount : 1
...
これがあなたを助けることを願っています。