Amazon SQS vs Azure Service Bus

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

Amazon SQS

2.2K
2K
+ 1
171
Azure Service Bus

268
526
+ 1
7
Add tool

Amazon SQS vs Azure Service Bus: What are the differences?

  1. Message Ordering and Delivery Guarantees:

    • Amazon SQS: Amazon SQS doesn't provide explicit guarantees for the order in which messages are received or delivered. However, messages can be sent with a sequence number to enforce ordering, but it's not inherently guaranteed.
    • Azure Service Bus: Azure Service Bus supports both FIFO (First-In-First-Out) and publish-subscribe message ordering. It ensures that messages are delivered in the same order they were sent.
  2. Message Size Limitations:

    • Amazon SQS: Amazon SQS has a maximum message size limitation of 256 KB for standard queues and 2 GB for large payload queues.
    • Azure Service Bus: Azure Service Bus has a message size limit of 256 KB for standard, partitioned, and dead-lettered queues.
  3. Integrations and Protocols Supported:

    • Amazon SQS: Amazon SQS supports HTTP/HTTPS, AWS SDKs, and RESTful APIs for integration purposes.
    • Azure Service Bus: Azure Service Bus offers support for messaging protocols like AMQP, HTTPS, and advanced integration capabilities with Azure Functions, Logic Apps, and Event Grid.
  4. Dead-Lettering and Retry Mechanisms:

    • Amazon SQS: Amazon SQS provides a dead-letter queue where messages can be automatically moved after a defined number of unsuccessful retries. It allows developers to investigate and handle problematic messages.
    • Azure Service Bus: Azure Service Bus also supports dead-lettering of messages, but it provides more advanced retry mechanisms such as exponential backoff and automatic retries with polices for message handling.
  5. Pricing and Cost Structure:

    • Amazon SQS: Amazon SQS offers a pay-as-you-go pricing model based on the number of requests and data transfer rates.
    • Azure Service Bus: Azure Service Bus follows a similar pay-as-you-go pricing model, but with additional pricing tiers based on different performance and usage needs.
  6. Supported Messaging Patterns:

    • Amazon SQS: Amazon SQS mainly supports point-to-point messaging patterns, making it suitable for decoupling components in distributed systems.
    • Azure Service Bus: Azure Service Bus supports multiple messaging patterns, including point-to-point, publish-subscribe, and request-response, providing flexibility for different messaging scenarios.

In Summary, Amazon SQS and Azure Service Bus differ in terms of message ordering guarantees, message size limitations, supported integrations, dead-lettering and retry mechanisms, pricing and cost structure, as well as supported messaging patterns. These differences make them suitable for various use cases depending on specific requirements.

Advice on Amazon SQS and Azure Service Bus
André Almeida
Technology Manager at GS1 Portugal - Codipor · | 5 upvotes · 412K 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
MITHIRIDI PRASANTH
Software Engineer at LightMetrics · | 4 upvotes · 270.8K views
Needs advice
on
Amazon MQAmazon MQ
and
Amazon SQSAmazon SQS
in

I want to schedule a message. Amazon SQS provides a delay of 15 minutes, but I want it in some hours.

Example: Let's say a Message1 is consumed by a consumer A but somehow it failed inside the consumer. I would want to put it in a queue and retry after 4hrs. Can I do this in Amazon MQ? I have seen in some Amazon MQ videos saying scheduling messages can be done. But, I'm not sure how.

See more
Replies (1)
Andres Paredes
Lead Senior Software Engineer at InTouch Technology · | 1 upvotes · 207.1K views
Recommends
on
Amazon SQSAmazon SQS

Mithiridi, I believe you are talking about two different things. 1. If you need to process messages with delays of more 15m or at specific times, it's not a good idea to use queues, independently of tool SQM, Rabbit or Amazon MQ. you should considerer another approach using a scheduled job. 2. For dead queues and policy retries RabbitMQ, for example, doesn't support your use case. https://medium.com/@kiennguyen88/rabbitmq-delay-retry-schedule-with-dead-letter-exchange-31fb25a440fc I'm not sure if that is possible SNS/SQS support, they have a maximum delay for delivery (maxDelayTarget) in seconds but it's not clear the number. You can check this out: https://docs.aws.amazon.com/sns/latest/dg/sns-message-delivery-retries.html

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Amazon SQS
Pros of Azure Service Bus
  • 62
    Easy to use, reliable
  • 40
    Low cost
  • 28
    Simple
  • 14
    Doesn't need to maintain it
  • 8
    It is Serverless
  • 4
    Has a max message size (currently 256K)
  • 3
    Triggers Lambda
  • 3
    Easy to configure with Terraform
  • 3
    Delayed delivery upto 15 mins only
  • 3
    Delayed delivery upto 12 hours
  • 1
    JMS compliant
  • 1
    Support for retry and dead letter queue
  • 1
    D
  • 4
    Easy Integration with .Net
  • 2
    Cloud Native
  • 1
    Use while high messaging need

Sign up to add or upvote prosMake informed product decisions

Cons of Amazon SQS
Cons of Azure Service Bus
  • 2
    Has a max message size (currently 256K)
  • 2
    Proprietary
  • 2
    Difficult to configure
  • 1
    Has a maximum 15 minutes of delayed messages only
  • 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

Sign up to add or upvote consMake informed product decisions

What is 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.

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.

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

What companies use Amazon SQS?
What companies use Azure Service Bus?
See which teams inside your own company are using Amazon SQS or Azure Service Bus.
Sign up for StackShare EnterpriseLearn More

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

What tools integrate with Amazon SQS?
What tools integrate with Azure Service Bus?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

GitHubPythonNode.js+47
54
72311
GitHubGitSlack+30
27
18322
GitHubDockerAmazon EC2+23
12
6566
GitHubPythonSlack+25
7
3155
What are some alternatives to Amazon SQS and Azure Service Bus?
Amazon MQ
Amazon MQ is a managed message broker service for Apache ActiveMQ that makes it easy to set up and operate message brokers in the cloud.
Kafka
Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.
Redis
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams.
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.
Amazon SNS
Amazon Simple Notification Service makes it simple and cost-effective to push to mobile devices such as iPhone, iPad, Android, Kindle Fire, and internet connected smart devices, as well as pushing to other distributed services. Besides pushing cloud notifications directly to mobile devices, SNS can also deliver notifications by SMS text message or email, to Simple Queue Service (SQS) queues, or to any HTTP endpoint.
See all alternatives