azure-service-fabric

Service fabric reliable dictionary performance with 1 million keys

。_饼干妹妹 提交于 2019-12-03 08:22:38
I am evaluating the performance of Service Fabric with a Reliable Dictionary of ~1 million keys. I'm getting fairly disappointing results, so I wanted to check if either my code or my expectations are wrong. I have a dictionary initialized with dict = await _stateManager.GetOrAddAsync<IReliableDictionary2<string, string>>("test_"+id); id is unique for each test run. I populate it with a list of strings, like "1-1-1-1-1-1-1-1-1", "1-1-1-1-1-1-1-1-2", "1-1-1-1-1-1-1-1-3".... up to 576,000 items. The value in the dictionary is not used, I'm currently just using "1". It takes about 3 minutes to

Service Fabric Stateful Service Remoting V2

别等时光非礼了梦想. 提交于 2019-12-03 06:53:30
I have a Stateful Service called by a Stateless service, in .Net Standard Asp.net Core 2.0 running on Visual Studio 15.4. I can't make the Service Remoting V2 work. The old code in the Stateful service that worked for V1 is not valid anymore protected override IEnumerable<ServiceReplicaListener> CreateServiceReplicaListeners() { return new List<ServiceReplicaListener>() { new ServiceReplicaListener((context) =>this.CreateServiceRemotingListener(context)) }; I tried to follow this tutorial but the example is for the stateless one. I tried to change the code in this without success. protected

Azure Service Bus 1.1 Failing to Start

烈酒焚心 提交于 2019-12-03 06:13:51
问题 Service Bus Gateway is not starting. First of all I have tried completely uninstalling all Azure/Fabric/Service Bus type SDKs and installations. I have installed both Windows Azure Pack: Service Bus 1.1 and Windows Azure Pack: Security Update for Service Bus 1.1 (KB2972621) from scratch. After deleting all service bus related databases I start the Service Bus Configuration wizard and begin starting a new farm with custom settings. I leave everything default except adding my own certificates,

Azure Service Fabric activation error

只愿长相守 提交于 2019-12-03 05:51:13
问题 The deployment of one of my apps to a Service Fabric Cluster failed and triggered an Unhealthy Evaluation with an error event saying: There was an error during CodePackage activation.The service host terminated with exit code:3762504530 However, on the node where the app is deployed, Health State indicates: The application was activated successfully. Is there any way to get a more detailed report on the error event? 回答1: I usually connect via RDP to the affected node and do the following

Azure Service Fabric reliable actors vs reliable services

余生颓废 提交于 2019-12-03 04:48:08
问题 I am new to Azure Service Fabric and the biggest questions I have are When should I use reliable actors? Give me practical examples please. When should I use reliable services? Give me practical examples please. 回答1: Taken a look at the differences: State analogy : Actors work on a single instance of an object graph. Services usually have state for multiple callers. Scope : Actors can’t work alone, because of their size (more like objects). Life-cycle : Actors are only active when used, so

API gateway/proxy pattern for microservices deployed using Azure Service Fabric

佐手、 提交于 2019-12-03 03:38:04
问题 After watching the BUILD conference videos for Azure Service Fabric, I'm left imagining how this might be a good fit for our current microservice-based architecture. There is one thing I'm not entirely sure how I would go about solving, however - the API gateway/proxy. Consider a less-than-trivial microservice architecture where you have N number of services running within the Azure Service Fabric exposing REST endpoints. In many situations, you want to package these fragmented API endpoints

Azure Service Fabric vs Azure Container Services

柔情痞子 提交于 2019-12-03 03:01:29
问题 I understand that both Azure Service Fabric and Azure Container Services can be used to host microservices through containers. In what scenarios is it practical & cost effective to use one over the other? What are some strong use cases for Azure Service Fabric and Azure Container Services models of hosting I read this comparison but did not find it comprehensive Update: A comparison table like one in this diagram would help keep the points "sticky" & memorable while deciding which option to

Pub/sub pattern in Azure Service Fabric

主宰稳场 提交于 2019-12-03 02:48:23
问题 I'm working on an Azure Service Fabric application here where I have certain actors that need to receive pings/hooks from other services on demand. The application is a sort of event distribution engine that is intended to work something like this: An event router actor that can take an event in and then take care of distributing that event to all subscribers of that event type. 0..N event subscription actors that somehow need to inform the router what type of events they wish to subscribe to

Understanding when to use stateful services and when to rely on external persistence in Azure Service Fabric

冷暖自知 提交于 2019-12-03 01:00:35
问题 I'm spending my evenings evaluating Azure Service Fabric as a replacement for our current WebApps/CloudServices stack, and feel a little bit unsure about how to decide when services/actors with state should be stateful actors, and when they should be stateless actors with externally persisted state (Azure SQL, Azure Storage and DocumentDB). I know this is a fairly new product (to the general public at least), so there's probably not a lot of best practices in regards to this yet, but I've

Can I use load balancer for scaling Azure Service Fabric apps

最后都变了- 提交于 2019-12-03 00:18:34
Recently came to know about Azure Service Fabric and seems a good way to develop scaling applications as bunch of micro services. Everywhere it is telling that we need to have stateless front end web services and stateful partitioned internal services. The internal services scale by partitioning the data . But what happens to the front end services in load? .The chances are very less as they are doing nothing but relying to internal stateful services. Still should we use load balancer before front end services? If so, can we host the same too via Service Fabric's Stateless model using OWIN or