问题
reading the pricing details
http://azure.microsoft.com/en-us/pricing/details/notification-hubs/
there seems to be a limit of number of tags used in a push.
Broadcast (tag size) Limited to 10K Limited to 10K Unlimited
# of tags (broadcast groups) Limited to 3K Limited to 3K 3 Unlimited
Q1. so does that mean max tags per push is 10K? assuming that there is only 1 tag per device.
Q2. is the number of tags stored unlimited?
essential i need to map a tag to device id. And then send a bunch of tags in a send. sounds straight forward, but i cant determine of there is a limit.
any help appreciated.
thanks
-lp
回答1:
Broadcast (tag size) - Limited to 10K means that number of devices with same tag is limited by 10K. Example:
- You have application which sends advertising according food preferences,
- At some point you decide to send a message to all pizza-lovers and you are going to use tag 'pizza' to do it,
- If your hub has more than 10K registrations with tag 'pizza', then send call will be failed by the Notification Hub
number of tags (broadcast groups) Limited to 3K means that you could not have more than 3K different foods for the example above ('pizza', 'pasta', 'sushi'...)
!!!Important notice!!! Tags with five or fewer devices do not accrue to the tag limit. It means that you potentially can build an application where each device has unique tag (user id or email or something similar) and that tag may be used to send a message to particular device. It is what is sometimes called 'Inbox scenario'. And Notification Hub is not going to enforce 3K limit for that case.
Update: Notification Hub is not going to enforce any limitations described above. Official documentation was updated as well. So as of now only restriction is 60 tags per single registration/installation.
However, number of devices registered should not exceed 500 for Free tier namespace, 200K for Basic, and 10M for Standard. Contact customer support to accommodate more than 10M devices.
回答2:
An update here that we have eliminated the tag limits. Please see https://azure.microsoft.com/en-us/pricing/details/notification-hubs/ for updated information.
回答3:
A fresh answer for Q1, which I got after sending an email to Azure's PM for Notification Hubs:
Tag expressions can contain all Boolean operators, such as AND (&&), OR (||), and NOT (!). They can also contain parentheses. Tag expressions are limited to 20 tags if they contain only ORs; otherwise they are limited to 6 tags.
See "Tag Expressions" on this page.
Since I was asking about sending an array of tags, the Azure agent added:
When you feed us an array, we pretty much just go and build an expression with your tags using ORs, aka you will be able to put 20 tags in that array at maximum.
回答4:
In the Free and Basic tier, you can't broadcast to more than 10k devices. From the pricing page (http://azure.microsoft.com/en-us/pricing/details/notification-hubs/):
Broadcast refers to the number of devices that you can send a Push Notification to with a given notification request. Tags are keywords that devices are subscribed to. A Broadcast Push Notification can be sent to all devices that are subscribed to a particular tag.
Notification Hubs in Free and Basic tier, when broadcasting to an audience, will push to at most 10,000 devices. If more devices are present in the targeted audience, 10,000 devices will be chosen at random and the remaining ones will not receive any notification.
The 3k tag limit means that you can create up to 3k unique tags that are used to send notifications. Each device can register for multiple tags (e.g., categories of breaking news would each be a tag).
回答5:
An update here that we have eliminated the tag limits. Please see https://azure.microsoft.com/en-us/pricing/details/notification-hubs/ for updated information.
This still isn't clear in the pricing, on the Azure pricing 'calculator' it states: "First 10 million pushes are included with unlimited active devices and 10K broadcast (tag size) for Basic tier"
For the basic tier it still seems there is tag limits, but not for the Standard tier which states: "First 10 million pushes are included with unlimited active devices and unlimited broadcast (tag size)". Broadcast and tag limit information isn't shown on the general pricing info here: https://azure.microsoft.com/en-us/pricing/details/notification-hubs/
来源:https://stackoverflow.com/questions/27098667/azure-notification-hub-tag-limits