I am an experienced Windows C # developer, but new to the Azure world and therefore try to find “best practice” when I implement one or more Azure Cloud services.
I have several (external and external elements) that can save files to a folder (or perhaps a set of folders). In the current state of my Windows system, I have a FileSystemWatcher configured to monitor a folder and create an event when a file appears there.
In the Azure world, what is the equivalent way to do this? Or is there?
I know that I can create a timer (or sleep) to take some time (say, 30 seconds) and poll the folder, but I'm just not sure if this is the “best” way in the cloud.
It is important to note that I do not control the input data - in other words, files are saved by an external device that I do not control; therefore, I can’t, for example, push a message into the queue while saving the file and reply to this message ...
Although, in the end, this goal ... Therefore, I intend to have the "Observer" service, which (through events or polls) detects the presence of one or more files and clicks on the appropriate queue for the next step in my workflow to respond.
It should be noted that I use VS2015 and the latest Azure SDK materials, so I am not limited to any legacy.
What I still basically do is (a snippet of a larger code base):
storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString"));
Thanks in advance.
source share