Reputation: 432
I have a Azure cloud service which needs to access (read) thousands of small binary files and perform some computations with those. The key requirement here is speed - it needs to be as fast as possible. I tried using Azure blob storage for keeping these file but access was too slow, so currently I am keeping these files in the Azure cloud service local storage itself. This is not ideal as we are not supposed to store state in the VM -- persistence is not guaranteed and it is not shareable across VM instances.
I read about Azure premium storage (SSD drives which can be attached to VMs). This looked ideal in theory but I cannot see a way to add this to a cloud service.
So, my questions are:
Upvotes: 2
Views: 291
Reputation: 338
Depending on your requirements, you could use Redis: https://azure.microsoft.com/en-us/services/cache/
It's very fast, and data stored on a Redis server can be shared across multiple VM instances.
Redis is a key-value pair store so you could use your files' "paths" as the keys and their contents as the values.
To minimize costs, make sure to locate your Redis server in the same region / resource group as your service.
Upvotes: 0
Reputation: 4163
adding disks can be done to azure computer VMs and not cloud services. In this case you can use Azure file storage service which offers storage similar to network share. https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-files/
Upvotes: 1