Sam
Sam

Reputation: 432

Where should my Azure cloud service store files?

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:

  1. Is there a way to add Azure premium storage SSD disks to a cloud service or it can only be added to a Azure VM?
  2. Given my need to quickly read thousands of small binary files from a cloud service, are there any other storage mechanism I can try?

Upvotes: 2

Views: 291

Answers (2)

Guillaume LaHaye
Guillaume LaHaye

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

Aravind
Aravind

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

Related Questions