I am new to azure service fabric and i am trying to understand how stateful services works and how state is managed.
Let's say a have stateful service with these replicas:
- one primary
- two active secondary
- one idle secondary
Stateful service has open communication endpoint which is called from number of stateless services. When primary replica changes state, changes are replicated to the two active secondary. Am i correct?
Can secondary replicas be called from one of the stateless services or only primary replicas can accept requests?
If secondary replicas can be called is there away to be notified when primary replica changes state? I tired StateManagerChanged and DictionaryChanged but are only called on the primary replica?
Also I would like ho request divided between primary replica and active secondary?All go to primary except one that are specifically marked for secondary replica ?