Questions tagged [service-fabric-stateless]

Use this tag for questions related to Stateless Azure Service Fabric . No state is maintained in the service.

Stateless Azure Service Fabric. No state is maintained in the service. Longer-term state is stored in an external database. This is your typical application/data layer approach to building services, and it is currently the norm in cloud applications.

References:

  1. Azure Service Fabric Documentation
  2. Service Fabric application scenarios discusses the difference between stateful and stateless Azure Service Fabric configurations and uses.
181 questions
0
votes
2 answers

How to delay Service Fabric runtime automatic upgrades

Our team recently had an incident due to our stateless services being restarted for azure runtime automatic updates. One of the services was in the middle of processing a task when it was forcefully shutdown. These tasks can take as long as 4…
tonjohn
  • 255
  • 2
  • 14
0
votes
1 answer

Access Service Fabric cluster via .net standard with web api

I have a service fabric stateless service which I am running inside my cluster within azure At the moment the service in question only has 1 instance I would like to be able to access data in the service via web api How can I do this with .net…
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
0 answers

Service fabric failing with Service Status: fabric:/testsfApplication/tessf is not ready, no container is running

I have a Asp.net Core stateless Service fabric application which was working fine locally but suddenly started giving the above errors on build and deploy. I reset docker locally and also service fabric but it still fails with the same error. I…
Pradeepl
  • 198
  • 1
  • 12
0
votes
2 answers

Service Fabric self-deleting service

I'd like to add a service that executes some initialization operations for the system when it's first created. I'd imagine it would be a stateless service (with cluster admin rights) that should self-destruct when it's done it's thing. I am under…
Reddog
  • 15,219
  • 3
  • 51
  • 63
0
votes
0 answers

Get the name of the to-be-executed-method when using service fabric ServiceRemoting

I am trying to do some logging with Application Insights and I would like to log each dependency call. I do this based on the following SO answer on how to set header values: link In the RequestResponseAsync method I create my DependencyTelemetry…
0
votes
0 answers

Call method in controller w/o losing dependency injection

I am working on a service fabric application. Specifically, I am adding a CommandInstanceHandler which listens to messages from the service bus.. From the CommandInstanceHandler, I want to call a method in the Controller. However, it's not as…
0
votes
0 answers

service fabric communication listeners not calling from stateless application to another stateless service application

Actually i created service fabric stateless application.While adding instance listener like as follows protected override IEnumerable CreateServiceInstanceListeners() {return new[] { new…
0
votes
1 answer

Prevent service from changing nodes in Service Fabric

Is there any way to stop a service being moved between nodes in Service Fabric? I have a stateless service that connects to an api to collect data This API only permits 1 login at a time. If Service Fabric constantly moves between nodes there are 2…
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
1 answer

how to create a stateless service at runtime on local service fabric server

I'm trying to create instances of stateless services on demand at runtime without additonal entries about types at manifest file. At the begging I thought, that I can use using (FabricRuntime fabricRuntime = FabricRuntime.Create()) { …
0
votes
1 answer

Service Fabric: How can we report a metric load on specific replicas for stateful services and on specific instances for stateless services

How can we report a metric load on specific replicas for stateful services and on specific instances for stateless services. For example, stateless service with 5 instances, I want to report a metric load for instance 1 only, not affecting instances…
0
votes
1 answer

Azure Service Fabric Template - Which one to choose

I am creating a service fabric application. I saw in the Microsoft documentation that, based on how we store the data we can choose between stateless and sate full template. But under .net core 2.0 itself, it has "stateless" and "stateless Asp.net…
0
votes
1 answer

Service Fabric Stateless Cluster has 5 nodes but app only has 1 instance

I have a system that uses stateless services hosted in Service Fabric This is running in a local dev cluster with 5 nodes Some of my services have InstanceCount set to -1 I was expecting to see multiple instances of the host executables to show in…
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
1 answer

Asp.Net Core StateLess Serivce Calling StateLess Serice in Azue Service Fabric

I am trying to call a stateless service from Asp.Net Core Stateless API. I am not able to reach the methods in Stateless Service. This is the Controller action method which will call the stateless service method. // GET api/values [HttpGet] …
0
votes
1 answer

Web API Service Fabric app gives unauthorized

I have created a web api hosted in service fabric. When I hit the api from client it works fine on local but is giving 401 from remote machine. I have used IntegratedWindowsAuthentication and Negotiate authentication schemes in Web API. Can someone…
0
votes
2 answers

Service Fabric - Reliable services pub/sub or broadcast events

I could not found any broadcast or pub/sub pattern between Reliable Services in any documentation. Did I miss anything? My use case is , we need to notify custom event to all the SF stateful service replica in cluster if there any state change in…