Atomic operations in azure table storage

前端 未结 4 707
天命终不由人
天命终不由人 2020-12-17 14:57

I am looking to implement a page view counter in azure table storage. If say two users visit the page at the same time, and the current value on PageViews = 100, is it guara

4条回答
  •  醉酒成梦
    2020-12-17 14:58

    If using Azure Websites, then Azure Queues and WebJobs is another option. In one scenario of mine though I am actually going to take the sharding approach and have WebJobs update the aggregates periodically. An Azure Table Storage Table of UserPageViews with PartitionKey = User and RowKey = Page . Two simultaneous users with the same user id will not be allowed.

提交回复
热议问题