0
votes

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?

1
When you down vote the question, please leave a comment. That is helping me to improve my questions. - CPA

1 Answers

1
votes

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.