I am currenlty running an on-premise 3 node cluster with service fabric.
I have a statefull service which has a .csv file containing a complex configuration for my service, and I would like to open a REST endpoint for updating this configuration dynamically.
So, in order to sync the state I could use a reliable dictionary serialize my csv configuration and save it.
What I dont know how to do is to make sure that even after a power-shortage (which is defined as a non-reliable action), the configuration will be saved (since the CSV is saved on the working directory and not in the image store).
I thought about upgrading the service on each update of the CSV, but it seems really exxcessive and will result in multiple application versions provisioned. Is there any standard way to support this?