Posts

Showing posts with the label azure-service-fabric

Accessing environment variable value from service fabric environment xml file

Accessing environment variable value from service fabric environment xml file I have a scenario where I need to read an environment variable from the machine where my Service Fabric application is deployed. More specifically in my cloud.xml (environment file) I want StorageConnectionString to use the value from one of the environment variable that is set on the machine by some other external tool. StorageConnectionString <?xml version="1.0" encoding="utf-8"?> <Application xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="fabric:/AppFabricName.ServiceFabric" xmlns="http://schemas.microsoft.com/2011/01/fabric"> <Parameters> <Parameter Name="StorageConnectionString" Value="%ENVVARIABLE%" /> </Parameters> </Application> Is the above valid ? Did not work when I tried even though running SET on cmd prompt ...

How is data in Reliable Dictionary in Azure Service Fabric persisted to disk

How is data in Reliable Dictionary in Azure Service Fabric persisted to disk How does Azure Reliable Dictionary actually handles data persistence. Is it like SQL which persists mostly all data excepts indexes(i.e. key in our case) on disk or is like hashmap which have everything in memory(i.e. both key and value) and just keeps a backup on disk Did you see this answer? stackoverflow.com/a/36752442/5946937 – LoekD Jun 29 at 8:47 1 Answer 1 The current implementation of Reliable Collections store the entire set of data in the memory, and a copy serialized in the disk. It is required to stay in memory because the data stored in the disks are serialized and a lookup on this data would take too long to deserialize to retrieve the data. From one of the Q&A...