Answered Azure Storage retry using storage libary

  • Saturday, December 11, 2010 5:41 AM
     
     

    Can someone point me to an example that uses the storage api to upload and download blobs with a retry schedule.  I found some stuff on the azurescope site that was not very helpful.  Specifically, I'm looking to be able to customize my own retry schedule.  Also, any suggestions on actually how to fail a network to test the retry logic? (besides pulling the plug on the ethernet which will cause all kinds of other issues I don't want to deal with).

    Thanks


    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider

All Replies

  • Saturday, December 11, 2010 6:34 AM
    Answerer
     
     Answered

    When I played around with retry operations I lowered the operation timeout using BlobRequestOptions.Timeout to some low level. It isn't a particularly pretty workaround but it did work for blobs.

  • Saturday, December 11, 2010 6:39 AM
     
     
    I was really looking for something more customizable.  I did find the .Timeout option but the doc's on it are very thin.  azurescope has a much more complicated scenario, but I had trouble following it and it does not seem to apply to the storageclient api.
    Peter Kellner http://peterkellner.net Microsoft MVP • ASPInsider
  • Saturday, December 11, 2010 7:34 AM
     
     Answered
    I think what Neil meant is that lowering the timeout value is a decent way to trigger the retry logic (by forcing a timeout).