5 Reasons why you should be using the Microsoft Azure Storage emulator
The Microsoft Azure Storage emulator is a local tool that you install on your devops machine to simulate SMTP, FTP, and Table storage. This is extremely useful for testing serialization, especially with data that's larger than the free quota of 20MB per table or 100MB Azure drive.
It also provides some other features besides just allowing large scale testing against Azure storage queues, Azure blobs, Azure tables. There are quite a few reasons why I use it constantly in my day-to-day work.
Let me go over 5 of them here:1) DIRECT CONNECTIONS TO AZURE STORAGE - Test ToolsThis is probably one of the main reasons I'm using the Azure storage emulator so much lately. The other one would be for allowing large scale testing against Azure storage queues, Azure blobs, Azure tables.
Using the emulator you can connect to Azure storage by using your Azure account's access key and secret key (stored in a file). This is really useful for unit tests where you need to test code that uses Azure storage and you want an easy way to provide mock data while still allowing the code to run off-line.
2. LOCAL STORAGEThe emulator also simulates an actual Azure drive even running on your dev box. So instead of having 20mb of files in your Azure drop directory structure it allows you to have 512mb worth of files locally so when testing larger applications this is a nice way to increase the size of your Azure drive without having to worry about hitting Azure's quota.
3. IMPROVE PERFORMANCE OF YOUR SERIALIZATION LAYER - Large Scale TestingIf you're using Azure blob storage for anything larger than 20mb, chances are that the out-of-the-box serialization layer isn't going to cut it for you. This is mostly because it looks at all of the data in its raw form and blows up the object graph into multiple blocks of bytes before storing them on Azure. This can cause quite a bit of pain over time simply because over time as your application grows these serialized objects blow up exponentially until your azure storage azure storage quota has been reached.
Azure storage Elumentor allows you to change the serialization layer at run-time by passing it a byte array of any size up to 512mb. This is extremely helpful when thinking about the Azure blob service because using that model, all serialized objects are stored in chunks of bytes on Azure which can get quite cumbersome if left unchecked over time.
4. SIMULATE DIFFERENT STORAGE CONFIGURATIONS WITHOUT BUILDING THEM IN MICROSOFT VISUAL STUDIO - Debugging ToolsThe Azure emulator provides some different options for you to tweak when simulating your Azure storage/blob scenarios locally or during debugging. You can pass your blob or Azure storage emulator a byte array that is larger than the default 20mb. This allows you to change your Azure storage quota at run-time which can be extremely helpful for debugging situations where you're running out of Azure site storage.
#cloudcomputing