Amazon S3 vs Amazon SQS vs Kue

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

Amazon S3

53.2K
39.8K
+ 1
2K
Amazon SQS

2.2K
2K
+ 1
171
Kue

46
88
+ 1
2

Amazon S3 vs Amazon SQS vs Kue: What are the differences?

Introduction In this article, we will explore and compare the key differences between Amazon S3, Amazon SQS, and Kue. These are three popular services offered by Amazon Web Services (AWS) with different use cases and functionalities.

  1. Response Storage: Amazon S3 is designed to store and retrieve large amounts of data as objects, providing scalable and durable storage infrastructure. On the other hand, Amazon SQS and Kue are messaging services that focus on the reliable and scalable delivery of data between distributed systems. While Amazon S3 can store and retrieve data, Amazon SQS and Kue allow for the efficient and reliable exchange of messages.

  2. Message Queuing: Amazon SQS and Kue both offer message queuing capabilities, serving as intermediary systems responsible for the reliable and asynchronous transfer of messages between different components of a distributed system. Amazon SQS follows a standard message queue model, where messages are sent and received by applications, and it also supports both standard and FIFO (First-In-First-Out) queues. Kue, on the other hand, is specifically designed to be used with Node.js and focuses on processing jobs instead of general-purpose messaging.

  3. Data Consistency and Availability: Amazon S3 provides strong data consistency, ensuring that once an object is stored, it can be immediately retrieved without conflicts or inconsistencies. It also offers high durability and availability, making it suitable for applications where data integrity and accessibility are key. In contrast, Amazon SQS and Kue focus on eventual consistency and availability, allowing for distributed systems to reliably exchange messages over time without ensuring immediate consistency.

  4. Storage vs Processing: While Amazon S3 primarily focuses on storing and retrieving data, Amazon SQS and Kue focus more on message exchange and processing. With Amazon SQS, applications can decouple senders and receivers, enabling more scalable and fault-tolerant architectures. Kue, on the other hand, provides a powerful job processing system for Node.js applications, allowing for efficient scheduling, parallel processing, and task management.

  5. Message Retention and Dead-Letter Queues: Amazon SQS provides configurable message retention, allowing developers to set a time duration during which messages are retained in the queue. Additionally, it supports dead-letter queues, which are used to capture messages that cannot be processed successfully after a certain number of retries. Kue, on the other hand, does not inherently provide these features and might require custom implementations to achieve similar functionalities.

  6. Pricing Model: When it comes to pricing, Amazon S3 follows a model based on the amount of storage used and data transfer rates. It also offers different storage classes with varying costs to optimize for different access patterns. Amazon SQS and Kue, on the other hand, have separate pricing models based on the number of requests and message delivery attempts, making them more suitable for applications dealing with message exchange and processing.

In summary, Amazon S3 is a scalable storage service, while Amazon SQS and Kue are messaging services with queuing capabilities. Amazon S3 focuses on storing and retrieving data, while Amazon SQS and Kue prioritize reliable message exchange and processing. The key differences lie in their core functionalities, data consistency and availability, storage vs processing capabilities, message retention and dead-letter queues, and the pricing models they follow.

Advice on Amazon S3, Amazon SQS, and Kue
Meili Triantafyllidi
Software engineer at Digital Science · | 6 upvotes · 476.3K views
Needs advice
on
Amazon SQSAmazon SQSRabbitMQRabbitMQ
and
ZeroMQZeroMQ

Hi, we are in a ZMQ set up in a push/pull pattern, and we currently start to have more traffic and cases that the service is unavailable or stuck. We want to: * Not loose messages in services outages * Safely restart service without losing messages (ZeroMQ seems to need to close the socket in the receiver before restart manually)

Do you have experience with this setup with ZeroMQ? Would you suggest RabbitMQ or Amazon SQS (we are in AWS setup) instead? Something else?

Thank you for your time

See more
Replies (2)
Shishir Pandey
Recommends
on
RabbitMQRabbitMQ

ZeroMQ is fast but you need to build build reliability yourself. There are a number of patterns described in the zeromq guide. I have used RabbitMQ before which gives lot of functionality out of the box, you can probably use the worker queues example from the tutorial, it can also persists messages in the queue.

I haven't used Amazon SQS before. Another tool you could use is Kafka.

See more
Kevin Deyne
Principal Software Engineer at Accurate Background · | 5 upvotes · 216.4K views
Recommends
on
RabbitMQRabbitMQ

Both would do the trick, but there are some nuances. We work with both.

From the sound of it, your main focus is "not losing messages". In that case, I would go with RabbitMQ with a high availability policy (ha-mode=all) and a main/retry/error queue pattern.

Push messages to an exchange, which sends them to the main queue. If an error occurs, push the errored out message to the retry exchange, which forwards it to the retry queue. Give the retry queue a x-message-ttl and set the main exchange as a dead-letter-exchange. If your message has been retried several times, push it to the error exchange, where the message can remain until someone has time to look at it.

This is a very useful and resilient pattern that allows you to never lose messages. With the high availability policy, you make sure that if one of your rabbitmq nodes dies, another can take over and messages are already mirrored to it.

This is not really possible with SQS, because SQS is a lot more focused on throughput and scaling. Combined with SNS it can do interesting things like deduplication of messages and such. That said, one thing core to its design is that messages have a maximum retention time. The idea is that a message that has stayed in an SQS queue for a while serves no more purpose after a while, so it gets removed - so as to not block up any listener resources for a long time. You can also set up a DLQ here, but these similarly do not hold onto messages forever. Since you seem to depend on messages surviving at all cost, I would suggest that the scaling/throughput benefit of SQS does not outweigh the difference in approach to messages there.

See more

Hello! I have a mobile app with nearly 100k MAU, and I want to add a cloud file storage service to my app.

My app will allow users to store their image, video, and audio files and retrieve them to their device when necessary.

I have already decided to use PHP & Laravel as my backend, and I use Contabo VPS. Now, I need an object storage service for my app, and my options are:

  • Amazon S3 : It sounds to me like the best option but the most expensive. Closest to my users (MENA Region) for other services, I will have to go to Europe. Not sure how important this is?

  • DigitalOcean Spaces : Seems like my best option for price/service, but I am still not sure

  • Wasabi: the best price (6 USD/MONTH/TB) and free bandwidth, but I am not sure if it fits my needs as I want to allow my users to preview audio and video files. They don't recommend their service for streaming videos.

  • Backblaze B2 Cloud Storage: Good price but not sure about them.

  • There is also the self-hosted s3 compatible option, but I am not sure about that.

Any thoughts will be helpful. Also, if you think I should post in a different sub, please tell me.

See more
Replies (2)
Michira Griffins
Software Developer at Codeshares Ltd · | 1 upvotes · 121.7K views

If pricing is the issue i'd suggest you use digital ocean, but if its not use amazon was digital oceans API is s3 compatible

See more
Recommends
on
Cloudways Cloudways

Hello Mohammad, I am using : Cloudways >> AWS >> Bahrain for last 2 years. This is best I consider out of my 10 year research on Laravel hosting.

See more
MITHIRIDI PRASANTH
Software Engineer at LightMetrics · | 4 upvotes · 287.3K 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 · 219.3K 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
Decisions about Amazon S3, Amazon SQS, and Kue
Gabriel Pa

We offer our customer HIPAA compliant storage. After analyzing the market, we decided to go with Google Storage. The Nodejs API is ok, still not ES6 and can be very confusing to use. For each new customer, we created a different bucket so they can have individual data and not have to worry about data loss. After 1000+ customers we started seeing many problems with the creation of new buckets, with saving or retrieving a new file. Many false positive: the Promise returned ok, but in reality, it failed.

That's why we switched to S3 that just works.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Amazon S3
Pros of Amazon SQS
Pros of Kue
  • 590
    Reliable
  • 492
    Scalable
  • 456
    Cheap
  • 329
    Simple & easy
  • 83
    Many sdks
  • 30
    Logical
  • 13
    Easy Setup
  • 11
    REST API
  • 11
    1000+ POPs
  • 6
    Secure
  • 4
    Easy
  • 4
    Plug and play
  • 3
    Web UI for uploading files
  • 2
    Faster on response
  • 2
    Flexible
  • 2
    GDPR ready
  • 1
    Easy to use
  • 1
    Plug-gable
  • 1
    Easy integration with CloudFront
  • 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
  • 2
    Simple

Sign up to add or upvote prosMake informed product decisions

Cons of Amazon S3
Cons of Amazon SQS
Cons of Kue
  • 7
    Permissions take some time to get right
  • 6
    Requires a credit card
  • 6
    Takes time/work to organize buckets & folders properly
  • 3
    Complex to set up
  • 2
    Has a max message size (currently 256K)
  • 2
    Proprietary
  • 2
    Difficult to configure
  • 1
    Has a maximum 15 minutes of delayed messages only
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    - No public GitHub repository available -
    - No public GitHub repository available -

    What is Amazon S3?

    Amazon Simple Storage Service provides a fully redundant data storage infrastructure for storing and retrieving any amount of data, at any time, from anywhere on the web

    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 Kue?

    Kue is a feature rich priority job queue for node.js backed by redis. A key feature of Kue is its clean user-interface for viewing and managing queued, active, failed, and completed jobs.

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

    What companies use Amazon S3?
    What companies use Amazon SQS?
    What companies use Kue?

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

    What tools integrate with Amazon S3?
    What tools integrate with Amazon SQS?
    What tools integrate with Kue?
      No integrations found

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

      What are some alternatives to Amazon S3, Amazon SQS, and Kue?
      Amazon Glacier
      In order to keep costs low, Amazon Glacier is optimized for data that is infrequently accessed and for which retrieval times of several hours are suitable. With Amazon Glacier, customers can reliably store large or small amounts of data for as little as $0.01 per gigabyte per month, a significant savings compared to on-premises solutions.
      Amazon EBS
      Amazon EBS volumes are network-attached, and persist independently from the life of an instance. Amazon EBS provides highly available, highly reliable, predictable storage volumes that can be attached to a running Amazon EC2 instance and exposed as a device within the instance. Amazon EBS is particularly suited for applications that require a database, file system, or access to raw block level storage.
      Amazon EC2
      It is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers.
      Google Drive
      Keep photos, stories, designs, drawings, recordings, videos, and more. Your first 15 GB of storage are free with a Google Account. Your files in Drive can be reached from any smartphone, tablet, or computer.
      Microsoft Azure
      Azure is an open and flexible cloud platform that enables you to quickly build, deploy and manage applications across a global network of Microsoft-managed datacenters. You can build applications using any language, tool or framework. And you can integrate your public cloud applications with your existing IT environment.
      See all alternatives