StackShareStackShare
Follow on
StackShare

Discover and share technology stacks from companies around the world.

Follow on

© 2025 StackShare. All rights reserved.

Product

  • Stacks
  • Tools
  • Feed

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  1. Stackups
  2. Utilities
  3. Notifications
  4. Web Push Notifications
  5. Azure Notification Hubs vs Azure Service Bus

Azure Notification Hubs vs Azure Service Bus

OverviewDecisionsComparisonAlternatives

Overview

Azure Notification Hubs
Azure Notification Hubs
Stacks21
Followers156
Votes0
Azure Service Bus
Azure Service Bus
Stacks553
Followers536
Votes7

Azure Notification Hubs vs Azure Service Bus: What are the differences?

Introduction

Azure Notification Hubs and Azure Service Bus are both messaging services provided by Microsoft Azure. While they share some similarities, there are key differences between them that make them suitable for different use cases.

1. Scalability and Pub/Sub Model: Azure Notification Hubs is designed for high-scale push notifications and supports a publish-subscribe (pub/sub) model. It allows sending push notifications to multiple platforms (such as iOS, Android, Windows) simultaneously. In contrast, Azure Service Bus is a general-purpose messaging system that supports both pub/sub and point-to-point messaging patterns. It is highly scalable and can handle large volumes of messages efficiently.

2. Protocol Support and Message Delivery: Azure Notification Hubs primarily supports push notifications over commonly used protocols like Firebase Cloud Messaging (FCM), Apple Push Notification Service (APNS), and Google Cloud Messaging (GCM). On the other hand, Azure Service Bus provides support for various protocols like AMQP, WebSocket, and HTTP, offering more flexibility in message delivery.

3. Message Ordering and Replay: Azure Service Bus supports message ordering, ensuring that messages are processed sequentially within a specific session. This can be useful in scenarios that require strict ordering of messages. However, Azure Notification Hubs does not provide built-in support for message ordering. Additionally, Azure Service Bus also offers a replay feature, allowing messages to be resent and processed again if needed.

4. Message Length and Size Limitations: Azure Notification Hubs imposes restrictions on the payload size of push notifications. For example, FCM imposes a maximum limit of 4KB for the notification payload. On the other hand, Azure Service Bus has a maximum message size limit of 256KB, allowing for larger payloads to be transported.

5. Message Reliability and Retry Policies: Azure Service Bus ensures message reliability through features like duplicate detection, transactional support, and dead-letter queues. It also provides a rich set of retry policies to handle transient failures during message delivery. In comparison, Azure Notification Hubs does not offer the same level of message reliability and retry policies.

6. Target Audience and Use Cases: Azure Notification Hubs is primarily intended for mobile applications and scenarios that require sending push notifications to a large number of devices across multiple platforms. It is commonly used in mobile marketing campaigns, news updates, and real-time alerts. On the other hand, Azure Service Bus is suitable for a wide range of enterprise messaging scenarios, including inter-application communication, event-driven architectures, and high-throughput messaging systems.

In summary, Azure Notification Hubs are optimized for high-scale push notifications across multiple platforms, while Azure Service Bus provides a general-purpose messaging system with support for various protocols and features like message ordering and replay.

Share your Stack

Help developers discover the tools you use. Get visibility for your team's tech choices and contribute to the community's knowledge.

View Docs
CLI (Node.js)
or
Manual

Advice on Azure Notification Hubs, Azure Service Bus

André
André

Technology Manager at GS1 Portugal - Codipor

Jul 30, 2020

Needs adviceon.NET Core.NET Core

Hello dear developers, our company is starting a new project for a new Web App, and we are currently designing the Architecture (we will be using .NET Core). We want to embark on something new, so we are thinking about migrating from a monolithic perspective to a microservices perspective. We wish to containerize those microservices and make them independent from each other. Is it the best way for microservices to communicate with each other via ESB, or is there a new way of doing this? Maybe complementing with an API Gateway? Can you recommend something else different than the two tools I provided?

We want something good for Cost/Benefit; performance should be high too (but not the primary constraint).

Thank you very much in advance :)

461k views461k
Comments

Detailed Comparison

Azure Notification Hubs
Azure Notification Hubs
Azure Service Bus
Azure Service Bus

Tutorials, API references, and other documentation show you how to set up and send push notifications from any backend to any mobile device

It is a cloud messaging system for connecting apps and devices across public and private clouds. You can depend on it when you need highly-reliable cloud messaging service between applications and services, even when one or more is offline.

Reach all major platforms—iOS, Android, Windows, Kindle, Baidu; Use any back end, in the cloud or on-premises; Fast broadcast push to millions of mobile devices with single API call; Tailor push notifications by customer, language, and location; Dynamically define and notify customer segments; Scale instantly to millions of mobile devices; Get started
-
Statistics
Stacks
21
Stacks
553
Followers
156
Followers
536
Votes
0
Votes
7
Pros & Cons
No community feedback yet
Pros
  • 4
    Easy Integration with .Net
  • 2
    Cloud Native
  • 1
    Use while high messaging need
Cons
  • 1
    Skills can only be used in Azure - vendor lock-in
  • 1
    Observability of messages in the queue is lacking
  • 1
    Limited features in Basic tier
  • 1
    Lacking in JMS support
Integrations
.NET
.NET
PHP
PHP
Windows
Windows
Node.js
Node.js
Java
Java
iOS
iOS
Android OS
Android OS
No integrations available

What are some alternatives to Azure Notification Hubs, Azure Service Bus?

Kafka

Kafka

Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.

RabbitMQ

RabbitMQ

RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.

Celery

Celery

Celery is an asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well.

Amazon SQS

Amazon SQS

Transmit any volume of data, at any level of throughput, without losing messages or requiring other services to be always available. With SQS, you can offload the administrative burden of operating and scaling a highly available messaging cluster, while paying a low price for only what you use.

NSQ

NSQ

NSQ is a realtime distributed messaging platform designed to operate at scale, handling billions of messages per day. It promotes distributed and decentralized topologies without single points of failure, enabling fault tolerance and high availability coupled with a reliable message delivery guarantee. See features & guarantees.

OneSignal

OneSignal

OneSignal is a high volume push notification service for websites and mobile applications. OneSignal supports all major native and mobile platforms by providing dedicated SDKs for each platform, a RESTful server API, and a dashboard.

ActiveMQ

ActiveMQ

Apache ActiveMQ is fast, supports many Cross Language Clients and Protocols, comes with easy to use Enterprise Integration Patterns and many advanced features while fully supporting JMS 1.1 and J2EE 1.4. Apache ActiveMQ is released under the Apache 2.0 License.

ZeroMQ

ZeroMQ

The 0MQ lightweight messaging kernel is a library which extends the standard socket interfaces with features traditionally provided by specialised messaging middleware products. 0MQ sockets provide an abstraction of asynchronous message queues, multiple messaging patterns, message filtering (subscriptions), seamless access to multiple transport protocols and more.

Apache NiFi

Apache NiFi

An easy to use, powerful, and reliable system to process and distribute data. It supports powerful and scalable directed graphs of data routing, transformation, and system mediation logic.

Gearman

Gearman

Gearman allows you to do work in parallel, to load balance processing, and to call functions between languages. It can be used in a variety of applications, from high-availability web sites to the transport of database replication events.

Related Comparisons

Bootstrap
Materialize

Bootstrap vs Materialize

Laravel
Django

Django vs Laravel vs Node.js

Bootstrap
Foundation

Bootstrap vs Foundation vs Material UI

Node.js
Spring Boot

Node.js vs Spring-Boot

Liquibase
Flyway

Flyway vs Liquibase