Hello Joseph Yeo,
When Notification Hubs are deployed with Availability Zones (AZs), your service benefits from higher uptime and fault tolerance by spreading resources across physically separate datacenters. However, this can lead to additional infrastructure and networking charges , especially in scenarios with high volumes of push notifications.
If high availability via AZs is not a strict requirement for your workload (e.g., non-critical notifications or tolerant of minor downtime), you may consider:
- Using the Standard Tier instead of Premium, which provides reliable performance at a lower cost, and does not include zone charges by default.
- Deploying in regions where AZs are optional or not enforced, which helps minimize overhead costs.
- Ensure you provision only what’s necessary to avoid paying for unused capacity.
- Exploring alternative architectures, such as Azure Event Grid, Azure Functions, or third-party push providers, if they better align with your cost-performance needs.
For detailed pricing:
Azure Notification Hubs Pricing
APNS Token Reuse & Hub Migration Guidance:
Regarding the Apple Push Notification Service (APNS):
- Existing credentials can be reused across hubs. No reconfiguration is required on the Apple Developer portal as long as the authentication method (key or certificate) remains unchanged.
- Private key regeneration is not required if you're configuring a new hub with the same credentials.
- Ensure Firebase Cloud Messaging (FCM) settings are also correctly migrated when applicable.
Device Registration Considerations:
- When switching to a new hub, devices must re-register to start receiving notifications from it. Registrations from the old hub are not automatically transferred or valid for the new one.
- If your app uses automatic registration, a client update may be necessary to ensure the registration targets the new hub.
- For manual registration flows, you can trigger the update without requiring a full app release.
Relevant documentation:
Configure Notification Hub for PNS
Conclusion:
You’ve correctly implemented a solution where the new hub uses the same credentials, and confirmed that both hubs function concurrently. It was also appropriate to update the app to handle token regeneration, ensuring proper registration.
Please "Accept the answer" and click "Yes" . So it can be helpful for others with similar questions.