Is Azure CloudTable thread-safe?

南笙酒味 提交于 2019-12-03 01:23:33

CloudStorageAccount

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

CloudTableClient

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

  1. Unfortunately, they are not thread safe
  2. Fortunately, it doesn't matter at all: The communication is based on HTTP, which means no connection is reused and everytime the app just creates a new HTTP connection. So just recreate everything per thread. And I have tested even in one thread, recreating everything for each query just costs nothing more.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!