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
2
votes
1 answer

Migrating Service Fabric app to Kubernetes

Having a simple SF application (API + Service projects), how would one convert it so it runs on Kubernetes? Can anyone please explain if it's possible to containerize SF app and deploy it to Minikube/Kubernetes? Or does it have to be re-written in…
ShaneKm
  • 20,823
  • 43
  • 167
  • 296
2
votes
1 answer

Restrict to one service instance within all the service fabric nodes

I have a stateless service fabric service which basically does a batch processing at specified time interval. So having multiple instances would complicate things as each instance would try to do the same batch job. I strictly want to run a single…
Kurubaran
  • 8,696
  • 5
  • 43
  • 65
2
votes
1 answer

Service Fabric local development cluster with 5 nodes runs less instances and less partitions than expected

I am running a Service Fabric application on a local development cluster with 5 nodes "simulated" on my PC. The application has a public API stateless service with instance count set to -1. I expect to see 5 instances of the stateless service in…
2
votes
3 answers

Dynamically creating services in an service fabric application

This is a bit descriptive so please bear with me. :) In the application that I'm trying to build, there are distinct functionalities of product. Users can choose to opt-in for functionality A, B, D but not C. The way I'm building this, is that each…
2
votes
2 answers

Service Fabric (On-premise) Routing to Multi-tenancy Containerized Application

I'm trying to get a proof of concept going for a multi-tenancy containerized ASP.NET MVC application in Service Fabric. The idea is that each customer would get 1+ instances of the application spread across the cluster. One thing I'm having trouble…
2
votes
1 answer

V2Listener not found error

I am connecting a web api service to a backend-stateless service. The Backservice is called MyProject.Management.Company and its code is: internal sealed class Company: StatelessService,ICompanyManagement { private readonly CompanyManagementImpl…
2
votes
1 answer

Unique Name must be specified for each listener when multiple communication listeners are used

I have created a .NET Core stateless Service Fabric application (v 3.0.467). I need to use both KestrelCommunicationListener and a ServiceProxy remote call for this service. When I am deploying the application to the local cluster, it's throwing an…
2
votes
2 answers

Sending request to ASP.Net Core Web API running on a specific node in a Service Fabric Cluster

I am working on a Service Fabric Application, in which I am running my Application that contains a bunch of ASP.NET Core Web APIs. Now when I run my application on my local service fabric cluster that is configured with 5 nodes, the application runs…
starklord
  • 291
  • 2
  • 6
  • 16
2
votes
1 answer

Using Windows Jobs with Service Fabric

I have a microservice deployed to a Service Fabric Cluster. The service is misbehaving in its CPU consumption and degrading performance of other services running along side it on the same VM. We have diagnostic information that is leading us down…
2
votes
1 answer

How to unit test stateless service in service fabric

I want to create an instance of class A which inherits class StatelessService in my unit test. But I can't. I've tried everything: mocking dependencies, implementing my own contexts and etc. When I try to create an instance, StatelessService throws…
2
votes
2 answers

Azure Service Fabric How to rerun RunAsync method when completed?

I have a stateless service running a background process inside RunAsync method. This background process must run forever. What it does is irrelevant, but it essentially polls a database every 60 seconds. Unlike a Worker Role or WebJob, the…
1
vote
0 answers

Service Fabric debug on Refresh application generates links to build folder Blazor

I have a Blazor webassembly asp.net core hosted app which must run on Service Fabric. I also must be able to debug it regardless of Service Fabric publish mode (e.g. 'Refresh application', 'Remove application') At the moment it does not work with…
1
vote
1 answer

ApplicationInsights end-2-end breaks on ServiceFabric ApiGateway

All, I have some problem setting up end-2-end transaction monitoring in ApplicationInsights, it seems to break the end-2-end view on my ServiceFabric ApiGateway service (.net CORE). This results in 2 traces in AppInsights instead of 1 (which I want…
1
vote
2 answers

How to use Service Fabric service with AspNet Core WebApi and Autofac and run TestServer

I can't figure out how to use an AspNet Core 3.1 Web Api with Service Fabric and Autofac, and also how to have it ready for a TestServer to run for integration/functional testing. The documentation is very incomplete. Autofac documentation shows how…
diegosasw
  • 13,734
  • 16
  • 95
  • 159
1
vote
0 answers

.Net Core Web API with ServiceFabric MinRequestBodyDataRate

So we have a .Net Core 3.1 Web Api hosted on Service Fabric. For some requests we use Http Get with a body (yes I know it's not pretty but it's not forbidden) because we want to retrieve some data and so Http Get is the verb to use accoding to REST…
S.Martignier
  • 383
  • 2
  • 4
  • 17
1
2
3
12 13