Is Microsoft.ServiceFabric.Actors.Runtime.ActorService thread-safe?

291 Views Asked by At

About the Microsoft.ServiceFabric.Actors.Runtime.Actor, I know it single-threaded execution from the document "An actor is an isolated, independent unit of compute and state with single-threaded execution. ".

Is Microsoft.ServiceFabric.Actors.Runtime.ActorService thread-safe? There are few document about it. We used it in our application, It seems not thread-safe in multi-nodes and multi-instance. Does anyone know about this?

1

There are 1 best solutions below

4
On BEST ANSWER

Reliable Actors are packaged in Reliable Services (ActorService) that can be deployed in the Service Fabric infrastructure. Actor instances are activated in a named service instance.

ActorService is just a Stateful Service. Services allow concurrent access.

edit:removed wrong remark about StateManager

What issues are you seeing?