service-fabric-stateful

Create key via SQL and C# for partition key

I have a set of data which has a hierarchy of 3 levels. Each level has a name. I am looking at combining all of these names into a single string then creating a numeric hash that can be used as a hash key for a service fabric stateful service. I have seen lots online about finding data with keys but...

Service Fabric .net core app not .net core

We are in the process of building an service fabric application and have run into a bit of a issue, whenever you user Visual studio to create a new service fabric app and you specify to use a .Net core app, the app/api that is create is a .Net framework app and not .Net core. <TargetFramework>net452...

Does service fabric create singleton instance for each stateful partition?

Say I created a stateful service fabric service with 5 partitions on a 5 node cluster. I see that each node gets 1 partition per node. When I debug the service in VS, I notice that service fabric is creating exactly 5 instances of the stateful service [essentially 1 static instance per partition]...

Access Azure Service Fabric stateful service state

I have added WebAPI to my stateful serive and want to access StateManager from it (from outside of StatefulService class implementation). What is the best way to do it? Currently I am using a small class for this: internal static class InstanceAccessor { internal static StatefulService...

Azure Service Fabric InvokeWithRetryAsync huge overhead

I'm currently working on a Service Fabric microservice which needs to have a high throughput. I wondered why I'm not able to achieve more than 500 1KB messages per second on my workstation using loopback. I removed all the business logic and attached a performance profiler, just to measure end to...

Deploy a C# Stateful Service Fabric application from Visual Studio to Linux

EDIT 04/06/18 => Updated question with last status So I have this working .Net 4.6 Stateful Service that currently run on my Windows Service Fabric cluster deployed on Azure. Starting from 09/2017, I should be able to move to Linux: https://blogs.msdn.microsoft.com/azureservicefabric/2017/09/25...

Service Resolver for Stateless Services in Service Fabric

I seem to keep getting "Service Not Found" whenever I try to resolve an endpoint for a stateless service. I have tried using the service partition resolver and also the service proxy but they both yield same results. Is there a restriction on Service Fabric or am I misunderstanding how stateless...

What do the EndPoints configure in the ServiceManifest of an Service Fabric Service?

We have a Service Fabric Service project with multiple services: Actors, Stateful services and Stateless services combined into one ServiceManifest. Two stateful services did not work: the constructors were called, the communicationlisteners (through remoting) were created, but the RunAsync method...

store cancellation tokens in service fabric services

I am trying to achieve cancel tasks feature in service fabric stateful services. Plan is using cancellation token to propagate notices to linked threads / Tasks. The problem is, while there are these long running tasks and threads waiting for this signal, I am not sure how I can find the right...