Questions tagged [service-fabric-stateful]
222 questions
1
vote
0 answers
Are Service Fabric Partition Identifiers persistent?
In Service Fabric we can get a Partition Identifier from a Service Context.
The docs doesn't say much about this property. :-(
I'm wondering whether this identifier is persistent for stateful services, so that it is assigned the same value every…

Mårten Wikström
- 11,074
- 5
- 47
- 87
1
vote
0 answers
Getting multiple Service Fabric reliable dictionary notifications for single entry in the reliable dictionary
I have stateful service fabric service with replica count is 3.
In this stateful service, I have a reliable dictionary.
I want to track notifications for each CRUD operation which performed on the reliable dictionary. Followed the below link to…

SRINIVASREDDY VELPULA
- 225
- 1
- 2
- 7
1
vote
1 answer
Updating a NETCore app to an AspNetCore app
I originally created a simple Microsoft NETCore stateful service, but am trying to use a library that requires it to be an AspNetCore service. Is there any way I can update the existing service to AspNetCore without deleting it and creating a new…

djangouser
- 41
- 3
1
vote
0 answers
Best pattern to validate DataContract properties conditionally
I have data class using DataContract and implementing field validation using System.ComponentModel.DataAnnotations.
In my class, the type attribute renders some fields relevant while others are not applicable. That is, some fields, depending on the…
1
vote
1 answer
How to make Service Fabric Reliable collections case-insensitive?
I have a Stateful Service Fabric service and create, update or read data using IReliableDictionary created with the following code:
var dictionary = await StateManager.GetOrAddAsync>(ReliableDictionaryName);
//…

Yeldar Kurmangaliyev
- 33,467
- 12
- 59
- 101
1
vote
2 answers
Call GetOrAddAsync in the OnOpenAsync method
I use a StatefulService with a IReliableDictionary.
Currently, I call StateManager.GetOrAddAsync everywhere I need this dictionary.
Is it best practice to call one time only StateManager.GetOrAddAsync in the…

Charstar
- 113
- 8
1
vote
3 answers
“Partition is below target replica or instance count” with stateful services on Service Fabric Local Cluster
Whenever I deploy any project on my local cluster (Even following simple Service Fabric tutorials online) I get the following message:
System application is unhealthy.
Unhealthy services: 100% (1/1), ServiceType='EventStoreServiceType',…

Ahmed Swahel
- 11
- 1
- 3
1
vote
1 answer
Stateful microservices default 443 port share issue on the azure service fabric cluster
We have Cluster where multiple microservices deployed, details as follows:
Total 7 microservices deployed to the Cluster, out of which 3 are stateless micro-services and 4 are stateful micro-services.
Implemented http.sys for exposing secured…

Ramgopal Reddy
- 13
- 2
1
vote
0 answers
Forward the cancellation to the right partition
This question is continuation from previous thread.
store cancellation tokens in service fabric services
Opened a new thread because answering this question would not be trivial.
To summarize what has been discussed regarding cancel a job / task…

swcraft
- 2,014
- 3
- 22
- 43
1
vote
1 answer
Application Insights with ServiceFabric StatefulServices and .Net Core 2.1
i have an ServiceFabric StatefulService with Remoting inside a ServiceFabric Solution which also contains a Stateless WebApi and want to use Application Insights for monitoring this service. The WebApi uses already AI and it works fine.
I tried…

Knut Niehaus
- 11
- 2
1
vote
2 answers
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…

teeboy
- 408
- 3
- 13
1
vote
1 answer
Service Fabric Actors: Problems when actors are deployed with newest versions of Service Fabric nuget packages
Yesterday I created a new service fabric application, including a new Actor. When I deploy it on my local service fabric cluster, the publish has a “succeeded” status.
But the problem is when I go on the Service fabric cluster, I can see that the…
1
vote
1 answer
Stateful service fabric service - replication of files changed in the disk
If I embed an SQLite db (or any big file) in a stateful Service Fabric Service or Actor process, (or even azure app service) how the replication works in the background?
Azure will try to copy the whole file when it detects changes, or disk…

stefan2410
- 1,931
- 2
- 16
- 21
1
vote
1 answer
Diagnosing 'System.Fabric.FabricNotPrimaryException'
[Update below]
We're encountering an issue whereby 'System.Fabric.FabricNotPrimaryException' is thrown very regularly from a new service that we're developing.
The data flow is:
Message is published to a particular partition by modding a unique…

Alex Zevenbergen
- 181
- 1
- 12
1
vote
1 answer
Azure Stateful Service - with remoting and custom singleton service
I would like to use remoting in a .net core stateful service. I have a custom class which needs to be added as a singleton. Is this possible?
First I tried to register the custom class in Startup.cs's ConfigureServices() method but then I realized…

Luca
- 371
- 4
- 15