azure-appfabric

Best practice when using Azure AppFabric Caching Service?

一个人想着一个人 提交于 2020-01-01 12:10:39
问题 I have successfully started using Azure AppFabric Caching Service, but I' not sure what the best practice way of creating the DataCacheFactory object is. Now I'm creating it for every call into the cache, but apparently this is not the ideal way of doing it... Some advise call for a Singleton. But I'm not sure I understand how this would be implemented (not the actual Singleton class, but how to tie it all together). Today I have a CacheProvider class that is created for me using Ninject

Azure service fabric Instance count

醉酒当歌 提交于 2019-12-30 07:11:48
问题 I am working on a POC with azure service fabric. Deployed my service in a local cluster and it's working fine with default settings in Local.xml. The moment I change the instance count it's throwing following exception. Where is the option to change the instance count? Basically i am trying to run my service on two nodes now. It's working fine when it is the default value that is 1. InnerException: HResult=-2146233088 Message=Error -4091 EADDRINUSE address already in use Source=Microsoft

When using Azure AppFabric Cache as a Session State Provider what causes a transaction

烈酒焚心 提交于 2019-12-23 06:32:06
问题 I have AppFabric Cache configured as the Session State Provider for an ASP.NET MVC application. Not all pages access session state (in fact only a few ajax requests do, the main pages commonly accessed by the site users don't, in order to make them cacheable) Give the hourly transaction limit on AppFabric cache, what causes the Session Provider to execute a transaction with the Cache ? (See @knightpfhor answer on Estimating simultaneous Azure Appfabric Cache Connections for the source of this

EF4.1 hangs for 120 seconds when using Microsoft.ApplicationServer.Caching.DataCacheFactory

北慕城南 提交于 2019-12-21 23:19:06
问题 I have a consistent, repeatable 120 second hang whenever the application calls this.cacheProvider.Add(new CacheItem(cacheKey, data, this.regionName), cachePolicy); at line 60 of the CachedDataSource.cs of the sample.. The .Add method is internal to Microsoft's DLL and I don't have code to it. Here are my parameters: cacheKey = "listofCompanies" data = // this is an EF 4.0 database first model class with 70 entries... result from IQueryable this.regionName = "companies" Reproducing the error:

How to pass required claims to OpenID identity provider with Azure ACS?

为君一笑 提交于 2019-12-20 11:13:11
问题 When looking at the request urls that Azure ACS generates I can see that ACS includes email, fullname, firstname and lastname as required claims. Further, the fullname attribute is mapped to the http://axschema.org/namePerson claim type. Now I have added MyOpenID as an Identity Provider. MyOpenID does not recognize the axschema claim, but I have successfully retrieved http://schema.openid.net/namePerson from MyOpenID. The problem is though, even if I add the http://schema.openid.net

Cache Host config in Azure In-Role caching

情到浓时终转凉″ 提交于 2019-12-11 19:59:14
问题 Accordingly to this MSDN article (on AppFabric Caching, which is what Azure is run on), I should be able to find a DistributedCacheService.exe.config file located at \Windows\System32\AppFabric , but it doesn't exist on any of the instances. When remoting into one of the instances and searching for configs, I find several cache-related config files in E:\plugins\Caching . The CacheService.config.exe file looks very promising (similar to DistributedCacheService .exe.config ), except that the

Unable to host a Service Bus WCF Host in IIS on Azure

ぐ巨炮叔叔 提交于 2019-12-11 07:02:08
问题 I have worker roles that send out multicast messages using the azure service bus. Two of the consumers of these messages are websites hosted on Azure. I know that there are issues hosting service bus WCF endpoints in IIS even when running on premise. I've followed the Microsoft's advice and configured a service host programmatically. One of the websites has been using this technique successfully for quite a while. It uses the hosted web core (it was developed before full IIS was an option on

Does Azure AppFabric really support AMQP 1.0?

假如想象 提交于 2019-12-08 13:31:36
问题 I watched the AMQP 1.0 presentation by David Ingham, responsible for AMQP at Microsoft, which is about Azure AppFabric's support of AMQP messaging in the cloud. David says AppFabric will support AMQP for the messaging patterns Queue and Pub/Sub . Yet when checking documentation on official websites such as http://www.windowsazure.com/en-us/develop/java/how-to-guides/service-bus-queues/ (especially looking at non-.net stuff that, according to David's talk is supposed to connect via AMQP,

Azure ServiceBus returns null on Client.Receive()

僤鯓⒐⒋嵵緔 提交于 2019-12-07 18:45:17
问题 I have a problem with receiving messages from a queue i have set up in azure. I have done this successfully using the same code before but now i just get null when i try to fetch messages. When i view the queue in azure management console i clearly see that the queue contains 5 messages. Here is the code: ServiceBus SB = new ServiceBus(); Microsoft.ServiceBus.Messaging.BrokeredMessage message; while (true) { message = SB.ReceiveMessage("orders"); if (message == null) { break; } Procurement

Azure AppFabric vs. Server AppFabric - today

只谈情不闲聊 提交于 2019-12-07 03:38:48
问题 Via Google, I found another question on stackoverflow regarding the differences and similarities between Azure AppFabric and Windows Server AppFabric. It was mentioned that both versions of AppFabric come closer together or even melt together. This post is almost 2 years old and today in 2012, I still struggle with trying to unterstand the plan behind both AppFabric versions. From my point of view, I worked with the Azure AppFabric (Caching, Service Bus, ACS) and I am familiar with it. But