Azure / azure-storage-cpp

Microsoft Azure Storage Client Library for C++
http://azure.github.io/azure-storage-cpp
Apache License 2.0
132 stars 148 forks source link

Feature Request: Pub/Sub on bucket and/or blob attributes changes? #336

Open yxiang92128 opened 4 years ago

yxiang92128 commented 4 years ago

Hello,

I am wondering if a pub/sub API could be implemented in the SDK for a particular or a commonly known subset of blob/bucket attribute changes such as last modified, size, and new blob inserted. Basically a callback would be invoked once a notification is configured and triggered due to an attribute change.

Thanks,

Yang

Jinming-Hu commented 4 years ago

@yxiang92128 Azure Storage REST API doesn't provide such functionality, so this C++ SDK cannot do anything other than polling on each blob. When you get millions of blobs in a storage account, this method gets very inefficient and unusable. You may want to take a look at https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview.

Jinming-Hu commented 4 years ago

@yxiang92128 Maybe this new feature will help in your scenario?