Questions tagged [service-fabric-stateful]

222 questions
0
votes
1 answer

How to use Azure Service Fabric Reliable Services with one service writing to storage and another service reading from storage

I have a scenario in which a stateless service will raise some short notes/events that I need to store in cache, and another service or listener will read those notes and process them. Here is my approach: I will create a stateless service that will…
0
votes
1 answer

Handle Node Down (being disabled) in Service Fabric

Is there a way to handle the event of a Service Fabric Node going down (NodeStatus change) in C#. Possibly an event I can listen for?
Quinntyne
  • 47
  • 1
  • 10
0
votes
1 answer

Question on azure service fabric application design

I have a below requirement in Microservice architecture desgin. My project which is of type Azure Service Fabric stateless and stateful services in Dot Net Core. Total 3 stateless and 3 stateful services in that project. For Each stateful service…
0
votes
1 answer

Force return from RunAsync() via decision made in web API Controller in Service Fabric

This thread is highly relevant to the scenario when you see exception thrown such as FabricObjectClosedException. The question is for specific scenario when you see the above exception while en-queue using StateManager commit in web api controller…
swcraft
  • 2,014
  • 3
  • 22
  • 43
0
votes
1 answer

Locally cached stateManager... any risk in Service Fabric?

What seems to be just common practice could be the wrong thing to do in Service Fabric. I suspect the below code where stateManager is saved as local cache could cause a potential issue when the 'Startup' class is instantiated within the return…
swcraft
  • 2,014
  • 3
  • 22
  • 43
0
votes
1 answer

Service Fabric:How to Call Service with ServiceFabricIntegrationOptions.UseUniqueServiceUrl?

I'm trying to have a stateless ASP.NET Core service communicate with a stateful ASP.NET core service by using the following configuration on the stateful service: protected override IEnumerable
Ryan
  • 4,354
  • 2
  • 42
  • 78
0
votes
1 answer

Correct initialization of ReliableCollection from StateManager

Does anyone have any insights to which of the following two pseudo-patterns are the correct way of instantiating/utilizing reliable collections within a stateful service fabric service? Specifically, wondering if one approach is more performant,…
soren.enemaerke
  • 4,770
  • 5
  • 53
  • 80
0
votes
0 answers

Service Fabric StatelessService cannot access StatefulService within the same cluster

I am trying to connect to a stateful service from a Web Controller within the same cluster. The services deployed fine and they look healthy with no issues on the local cluster. The address used is also correct (it matches also the Cluster Manager's…
mhttk
  • 1,688
  • 1
  • 16
  • 29
0
votes
1 answer

Service Fabric Application settings not being overriden by Application Manifest parameters

Need some help understanding why the configuration settings of a service fabric application aren't being overriden by the values defined in the application manifest, as expected. Curently I have some settings defined for my two different…
nunob
  • 592
  • 7
  • 24
0
votes
1 answer

Invoke Cancel manually from client side in RunAsync(CancellationToken)

In the RunAsync(CancellationToken) background method, current code is spawning new thread and also having some long running tasks inside while(true) loop. The web api controller is exposed to provide cancel request and then using enqueue / dequeue,…
0
votes
1 answer

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…
0
votes
1 answer

Can't resolve endpoint to actor by ActorServiceProxy

I got an actor on my local servicefabric cluster, I try to delete it when job is done from my stateless service. I use RemotingListenerVersion.V2. var actor = ActorServiceProxy.Create(new Uri($"{_applicationName}/{_actorServiceName}"), actorId); …
0
votes
1 answer

Error while creating remote listener in service fabric stateful service (.NET Core application)

Error: Does not contain a definition for 'CreateServiceRemotingListener' and no extension method 'CreateServiceRemotingListener' accepting a first argument of type could be found (are you missing a using directive or an assembly reference?) Below…
0
votes
1 answer

Random FabricNotReadableException started happening randomly

[Resolved] We have a few old services within our cluster and needed to update one where it consumes and processes two extra messages. The messages are built in the exact same way and are being consumed the exact same way. After the service was…
0
votes
1 answer

state manager parallel transactions in runasync

In service fabric stateful services, there is RunAsync(cancellationToken) with using() for state manager transaction. The legacy code I want to refactor contains two queues with dequeue attempts inside the while(true) with 1 second delay. I would…