appfabric

Where to store AppFabric DataCacheFactory in Asp.net?

若如初见. 提交于 2019-12-03 20:47:06
AppFabric's DataCacheFactory takes long time to initialize so I am trying to create it once and re-use it in next requests. Currently, the best idea I have is to store it in HttpContext but I also have some WCF services (which don't have HttpContext set). Any other ideas where and how I should handle this? Thanks! This is a problem I've been giving some thought to over the last couple of months, but I haven't come up with a definitive answer... I'm not sure HttpContext is the right place to keep it - according to this page "A new HttpContext object will be created at the beginning of a request

Distributed Lock Service with Windows Server AppFabric Caching

馋奶兔 提交于 2019-12-03 16:57:58
I have an extension method for the Microsoft.ApplicationServer.Caching.DataCache object found in the Windows Server AppFabric SDK that looks like this: using System; using System.Collections.Generic; using Microsoft.ApplicationServer.Caching; namespace Caching { public static class CacheExtensions { private static Dictionary<string, object> locks = new Dictionary<string, object>(); public static T Fetch<T>(this DataCache @this, string key, Func<T> func) { return @this.Fetch(key, func, TimeSpan.FromSeconds(30)); } public static T Fetch<T>(this DataCache @this, string key, Func<T> func, TimeSpan

Microsoft BizTalk Server vs Azure AppFabric Service Bus…?

天大地大妈咪最大 提交于 2019-12-03 16:29:38
We all know that BizTalk is an commercial product from Microsoft for ESB (Enterprise Service Bus). What are other ready-made features which BizTalk supports over the AppFabric Service bus. Or in other words what does AppFabric Service Bus doesn't provide to the features of ESB ...? Is the term "Service Bus" misleading as far as the AppFabric Service Bus is concerned with respect to Enterprise Service Bus...? The BizTalk and AppFabric Service Bus teams at Microsoft are actually tightly collaborating and we (I work there) are integrating BizTalk's capabilities with AppFabric and Service Bus over

AppFabric Cache - An existing connection was forcibly closed by the remote host

烈酒焚心 提交于 2019-12-03 14:14:45
问题 I'm trying to get AppFabric cache up and running on my local development environment. I have Windows Server AppFabric Beta 2 Refresh installed, and the cache cluster and host configured and started running on Windows 7 64-bit. I'm running my MVC2 website in a local IIS website under a v4.0 app pool in integrated mode. HostName : CachePort Service Name Service Status Version Info -------------------- ------------ -------------- ------------ SN-3TQHQL1:22233 AppFabricCachingService UP 1 [1,1][1

AppFabric Redundancy

99封情书 提交于 2019-12-03 10:58:26
问题 We just tested an AppFabric cluster of 2 servers where we removed the "lead" server. The second server timeouts on any request to it with the error: Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0017>:SubStatus<ES0006>: There is a temporary failure. Please retry later. (One or more specified Cache servers are unavailable, which could be caused by busy network or servers. Ensure that security permission has been granted for this client account on the cluster and that

AppFabric Cache concurrency issue?

主宰稳场 提交于 2019-12-03 07:10:33
While stress testing prototype of our brand new primary system, I run into concurrent issue with AppFabric Cache. When concurrently calling many DataCache.Get() and Put() with same cacheKey, where I attempt to store relatively large objet, I recieve "ErrorCode:SubStatus:There is a temporary failure. Please retry later." It is reproducible by the following code: var dcfc = new DataCacheFactoryConfiguration { Servers = new[] {new DataCacheServerEndpoint("localhost", 22233)}, SecurityProperties = new DataCacheSecurity(DataCacheSecurityMode.None, DataCacheProtectionLevel.None), }; var dcf = new

AppFabric client Virtual Machine issue

醉酒当歌 提交于 2019-12-02 04:37:08
we have AppFabric cache cluster server and I can work with it using my dev machine as client. In order to simulate different web servers accessing the cache cluster server, I created a VMWare Virtual Machine and installed Visual Studio 2010 and my web application. From the VM as client, when I try to get cache, I get the following error... Please help.. thanks.. ErrorCode:SubStatus:There is a temporary failure. Please retry later. (One or more specified cache servers are unavailable, which could be caused by busy network or servers. For on-premises cache clusters, also verify the following

X.509 Chain Building Failed when connecting to the AppFabric

别等时光非礼了梦想. 提交于 2019-12-01 11:02:59
Writing a test application for my AppFabric-based library, I started getting a strange exception. The X.509 certificate CN=servicebus.appfabriclabs.com chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. The revocation function was unable to check revocation because the revocation server was offline. I've tried with next configuration with no success <behaviors> <endpointBehaviors> <behavior name="SecureMessageUserName"> <clientCredentials> <serviceCertificate> <authentication

X.509 Chain Building Failed when connecting to the AppFabric

主宰稳场 提交于 2019-12-01 08:37:15
问题 Writing a test application for my AppFabric-based library, I started getting a strange exception. The X.509 certificate CN=servicebus.appfabriclabs.com chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. The revocation function was unable to check revocation because the revocation server was offline. I've tried with next configuration with no success <behaviors> <endpointBehaviors>

Detect and Delete Orphaned Queues, Topics, or Subscriptions on Azure Service Bus

我怕爱的太早我们不能终老 提交于 2019-12-01 08:02:18
If there are no longer any publishers or subscribers reading nor writing to a Queue, Topic, or Subscription, because of crashes or other abnormal terminations (instance restart, etc.), is that Queue/Topic/Subscription effectively orphaned? I tested this by creating a few Queues, and then terminating the applications. Those Queues were still on the Service Bus a long time later. It seems that they will just stay there forever. That would be wonderful if we WANTED that behavior, but in this case, we do not. How can we detect and delete these Queues, Topics, and Subscriptions? They will count