With Azure Service Fabric I can build microservice applications using stateful services. To build a microservice application, Service Fabric offers two high-level frameworks for building services: the Reliable Actors APIs and the Reliable Services APIs.
I want to use stateful reliable actors as services. Inside the actor I can keep any state. My question is, what is the maximum size of the "state data" to hold in an actor instance? Where is the state kept? In RAM? When I deactivate an actor, what happens with the states?
For example my actor represents an iot device. So the actor collects measured values in a list. What is the best choice to handle the state? How often should I flush the data to a persitent storage? How long can the service collect the data in a state until getting performance issues or other problems?