Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Azure Service Bus

280
533
+ 1
7
MSMQ

33
118
+ 1
3
Add tool

Azure Service Bus vs MSMQ: What are the differences?

Introduction

This Markdown code provides a comparison between Azure Service Bus and MSMQ, highlighting the key differences between the two messaging services.

  1. Scalability: Azure Service Bus is a cloud-based messaging service that offers higher scalability compared to MSMQ, which is limited to the capabilities and resources of a single machine. With Azure Service Bus, users can handle large numbers of messages and scale their applications as needed.

  2. Message Size: Azure Service Bus allows larger message sizes compared to MSMQ. While MSMQ has a limit of 4 MB per message, Azure Service Bus supports message sizes of up to 1 MB for the Standard tier and 100 MB for the Premium tier.

  3. Protocol Support: Azure Service Bus supports multiple protocols such as AMQP, MQTT, and HTTPS, providing flexibility in communication options. On the other hand, MSMQ primarily uses the TCP/IP protocol for communication, limiting the protocol options available.

  4. Cross-Platform Compatibility: Azure Service Bus is designed to work seamlessly with various platforms and programming languages, including .NET, Java, Node.js, and more. MSMQ, on the other hand, is primarily tailored for Windows-based systems and may not have the same level of compatibility with other platforms.

  5. Message Persistence: In Azure Service Bus, messages are persisted by default, ensuring reliable delivery even if the receiver is not immediately available. MSMQ, by default, only offers in-memory message delivery, which means that messages may be lost if the receiver is not active or the machine is restarted.

  6. Azure Integration: Azure Service Bus is tightly integrated with other Azure services, providing easy integration and seamless communication between different components of cloud-based applications. MSMQ, being a Windows-based messaging service, does not have the same level of integration capabilities with Azure services.

In summary, Azure Service Bus offers greater scalability, supports larger message sizes, provides more protocol options, offers better cross-platform compatibility, ensures message persistence by default, and seamlessly integrates with other Azure services compared to MSMQ.

Advice on Azure Service Bus and MSMQ
André Almeida
Technology Manager at GS1 Portugal - Codipor · | 5 upvotes · 450.3K views
Needs advice
on
Azure Service BusAzure Service Bus
and
RabbitMQRabbitMQ

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 :)

See more
Replies (2)

A Pro of Azure Service Bus is reliability and persistence: you can send message when receiver is offline; receiver can read it when it back online. A Cons is costs and message size. You can consider also SignalR

See more
Recommends

There are many different messaging frameworks available for IPC use. It's not really a question of how "new" the technology is, but what you need it to do. Azure Service Bus can be a great service to use, but it can also take a lot of effort to administrate and maintain that can make it costly to use unless you need the more advanced features it offers for routing, sequencing, delivery, etc. I would recommend checking out this link to get a basic idea of different messaging architectures. These only cover Azure services, but there are many other solutions that use similar architectural models.

https://docs.microsoft.com/en-us/azure/event-grid/compare-messaging-services

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Azure Service Bus
Pros of MSMQ
  • 4
    Easy Integration with .Net
  • 2
    Cloud Native
  • 1
    Use while high messaging need
  • 2
    Easy to learn
  • 1
    Cloud not needed

Sign up to add or upvote prosMake informed product decisions

Cons of Azure Service Bus
Cons of MSMQ
  • 1
    Limited features in Basic tier
  • 1
    Skills can only be used in Azure - vendor lock-in
  • 1
    Lacking in JMS support
  • 1
    Observability of messages in the queue is lacking
  • 1
    Windows dependency

Sign up to add or upvote consMake informed product decisions

115
29
2
2K

What is Azure Service Bus?

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.

What is MSMQ?

This technology enables applications running at different times to communicate across heterogeneous networks and systems that may be temporarily offline. Applications send messages to queues and read messages from queues.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Azure Service Bus?
What companies use MSMQ?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Azure Service Bus?
What tools integrate with MSMQ?
What are some alternatives to Azure Service Bus and MSMQ?
NServiceBus
Performance, scalability, pub/sub, reliable integration, workflow orchestration, and everything else you could possibly want in a service bus.
RabbitMQ
RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.
Kafka
Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.
IBM MQ
It is a messaging middleware that simplifies and accelerates the integration of diverse applications and business data across multiple platforms. It offers proven, enterprise-grade messaging capabilities that skillfully and safely move information.
MySQL
The MySQL software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. MySQL Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software.
See all alternatives