CPA
CPA

Reputation: 3053

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 another stateful service/actor, will the state object instance be copied or just referenced? Because it is not referenced, but copied, then I have to store the state data twice. Right?

Upvotes: 0

Views: 192

Answers (1)

Vaclav Turecek
Vaclav Turecek

Reputation: 9050

Services span nodes in a cluster. Anything you send from one service to another has to be able to cross machine boundaries, so any object you send in a message must be serialized and sent over the wire.

Upvotes: 1

Related Questions