This tag is used for Azure service fabric's framework for stateful microservices. An actor in Azure service fabric is an isolated, independent unit of compute and state with single-threaded execution.
Questions tagged [stateful-actor-service]
15 questions
4
votes
2 answers
Why might my minimal StatefulActorService be throwing a COMException?
I wanted to kick the tires of a service fabric stateful actor service, so I created a suitable project in VS2015.1 and made no change to the generated code. I then ran/debugged the solution. I received the following…

el2iot2
- 6,428
- 7
- 38
- 51
3
votes
0 answers
Azure Service Fabric – Service Remoting vs HTTP vs messaging system?
Let say I’ll have millions of Actors producing data that will end up in a DB. It would be a terrible idea to let the Actors interact with the DB so I’m adding another Service B in the middle. This Service B will write to DB in batches.
What should I…

Erick B
- 478
- 5
- 11
3
votes
3 answers
Sharing EventHub between Azure Fabric reliable actors
I'm having an application where I map devices from the physical world to Reliable Actors in Azure Fabric. Each time I receive a message from a device, I want to push a message to an event hub.
What I'm doing right now is creating/using/closing the…

japf
- 6,598
- 3
- 33
- 30
2
votes
1 answer
Iterating over Service Fabric Actors throws InvalidCastException
I am using the FabricClient QueryManager to iterate over all partitions to find all actors and return a list. This works fine on my local cluster but throws InvalidCastException when running in our Azure sandbox. Specifically, "Unable to cast…

Chuck
- 55
- 5
2
votes
1 answer
How to unit-test an actor that gets a reference to another actor inside its method?
I've got an actor that looks something like this:
public class MyActor : Actor, IMyActor
{
public async Task GetCustomer()
{
var customerId = await StateManager.TryGetStateAsync(CustomerIdState);
…

moswald
- 11,491
- 7
- 52
- 78
1
vote
0 answers
Service Fabric Stateful Service Replica memory spiked without any activity
One of the replicas of the below-mentioned node started taking 82 MB and spiked up to 172 MB suddenly without any activity on the service. The dump says there are objects due to service fabric.
We are using:
Microsoft Azure Service Fabric Runtime…

NITIN tube123
- 11
- 2
1
vote
1 answer
How to monitor Service Fabric Actors
As I understand, Dynatrace does not support Service Fabric Actors.
Is there an extensibility mechanism where I could add myself? For example, can I plug myself before and after every ActorProxy call, and/or before and after every method call on an…

pisees
- 11
- 2
1
vote
2 answers
Azure Service Fabric - Clone Actors with state
Is there any way to clone an actor and its state and create the exact same actor, with the same actor Id and its corresponding state in another application in Azure Service Fabric? I've looked at the backup and restore, but it doesn't seem to do…

Steve C
- 13
- 2
1
vote
1 answer
Service Fabric Stateful Service consuming large amounts of unmanaged memory
I have a Stateful Service which consumes increasing amount of memory until the service is restarted or process is killed in which then releases the memory.
See the diagram below; it looks like the typical saw-tooth type problem of memory leaking…

John Kattenhorn
- 839
- 11
- 25
0
votes
0 answers
ServiceFabric Actor Reminder service is triggers 'ReceiveReminderAsync' muiltiple times instead of only once
Registering actor as follows:
ActorRuntime.RegisterActorAsync(
context, actorType) => new ActorService(context, actorType)).GetAwaiter().GetResult();
and by adding a breakpoint at the ReceiveReminderAsync method it's triggered…

Sawahel
- 1
0
votes
1 answer
Reliable Actors - share a collection between all instances?
Currently, I spawn a bunch of actors to do some long running task. I put these into a List, then call Task.WaitAll() to collect the results.
However, I want to collect the results as each Actor completes its task (rather than wait for every actor…

Ambrose Leung
- 3,704
- 2
- 25
- 36
0
votes
1 answer
Service Fabric Actor Timers Performance Implications
We are thinking of potentially using Service Fabric Actor Timers for a sort of TTL management service. It has the potential to have 100 hundreds of thousands of actor timers at time. We are concerned with the overhead of having this many actor…

Tony
- 1,297
- 10
- 17
0
votes
1 answer
Actors in Azure service fabric
How to use Azure service fabric Actors in a different language (python or Go) to build stateful microservices? Or are they limited to Java/C# ?

radbrawler
- 2,391
- 2
- 15
- 22
0
votes
1 answer
Service fabric actor interfaces
Is it possible to have an actor containing just properties?
I want to create an actor which will be used to just set and get the properties. For example:
I have an interface like,
public interface IData1 : IActor
{
string Classification { get;…

DevMJ
- 331
- 1
- 5
- 17
0
votes
1 answer
Reliable stateful services / actors state reference
In Azure Service Fabric I can use stateful services and actors. A state type is like a normal .net object type. So I can create multiple instances of that state.
When I am pushing an instantiated state object from one stateful service/actor to…

CPA
- 2,923
- 4
- 30
- 52