I'm using Microsoft.WindowsAzure.Storage.Table
and couldn't figure out what's the difference between async methods and regular methods, for example CloudTable.Execute
and CloudTable.ExecuteAsync
. When and why should I use each of them? Is this even related to storage design and the module I'm using or am I misunderstanding the concept of async methods (I'm new to c# and Azure)?
Edit: If I should always use async methods, why are regular methods implemented, available, and moreover used in most Azure table storage guides?
Thanks in advance!
Basically when using the CloudTable.ExecuteAsync the compiler generates a state machine in the background, so you can avoid performance bottlenecks and enhance the overall responsiveness of your application.