Questions tagged [amazon-sqs]

Amazon Simple Queue Service (Amazon SQS) offers a reliable, highly scalable, hosted queue for storing messages as they travel between computers.

Resources

Tutorial

4134 questions
46
votes
3 answers

Access denied to SQS via AWS SDK

I'm currently working on a website developed with Symfony2 and I need to send messages in an Amazon SQS. In order to do that I added to my composer.json: "aws/aws-sdk-php": "2.4.*" Then when I try to create a queue or list queues I've got a 403…
SupaCoco
  • 1,615
  • 2
  • 16
  • 23
45
votes
2 answers

Purpose of Amazon SQS message's body as against message's attributes

What is the purpose of using message body in SQS while you're already able to add message attributes? Let's take an example, we want to push a message to new-user queue when a new user registered, I imagine the message will have an attribute userId,…
Thịnh Phạm
  • 2,528
  • 5
  • 26
  • 39
45
votes
7 answers

Spring Cloud - SQS - The specified queue does not exist for this wsdl version

I am attempting to get spring cloud to work with messaging using auto configure. My properties file contains: cloud.aws.credentials.accessKey=xxxxxxxxxx cloud.aws.credentials.secretKey=xxxxxxxxxx cloud.aws.region.static=us-west-2 My Configuration…
43
votes
2 answers

AWS SQS trigger Step Functions

Quick question: Is it possible to trigger the execution of a Step Function after an SQS message was sent?, if so, how would you specify it into the cloudformation yaml file? Thanks in advance.
40
votes
1 answer

Is SQS short polling ever preferable to long polling?

Amazon SQS supports two modes of polling for available messages: short polling and long polling. With long polling, the consumer specifies a timeout of 1-20 seconds to wait for available messages. According to the documentation: By default, Amazon…
augurar
  • 12,081
  • 6
  • 50
  • 65
39
votes
11 answers

Spring Cloud AWS SQS fails to connect to service endpoint locally

I'm trying to use Spring Cloud's AWS SQS in a project I'm working on. At this time, I'm only running the application locally on my dev machine. Thus, what I want is to connect to the SQS on AWS without having to deploy my app to an EC2…
Carven
  • 14,988
  • 29
  • 118
  • 161
39
votes
4 answers

Lambda service throws error execution role does not have permissions to call receiveMessage on SQS

I have a SQS queue and I want to trigger a lambda function when a message arrives in the queue. I have written the lambda function and that works successfully when I click the "Test" button. When I go to SQS and try to configure it as a lambda…
user3165854
  • 1,505
  • 8
  • 48
  • 100
37
votes
5 answers

Are SQS and Kafka same?

Are Kafka and SQS same? I see that both are messaging queue systems and are event-based. Do they serve the same purpose, If not how are they different?
user8961277
  • 581
  • 1
  • 5
  • 6
36
votes
11 answers

Finding certain messages in SQS

I know SQS ain't built for that, but I'm curious is it possible to find messages in a queue that meet some criteria? I can pull messages in a loop, search the message bodies for some pattern (without even deserializing them), and filter the messages…
iLemming
  • 34,477
  • 60
  • 195
  • 309
35
votes
2 answers

Amazon SQS Java SDK - cannot receive message attributes

After posting a message with an attribute to SQS with the following code before sending it (and checking in SQS console to see if everything is posted correctly)... messageRequest.addMessageAttributesEntry( "attributeTest", new…
John Simoes
  • 601
  • 1
  • 7
  • 18
34
votes
8 answers

Retrieve multiple messages from SQS

I have multiple messages in SQS. The following code always returns only one, even if there are dozens visible (not in flight). setMaxNumberOfMessages I thought would allow multiple to be consumed at once .. have i misunderstood this? …
sdolgy
  • 6,963
  • 3
  • 41
  • 61
33
votes
2 answers

How does AWS FIFO SQS deduplication ID work?

I'm trying to use the AWS SQS FIFO service together with an Elastic Beanstalk worker environment. Let's say I send a message with MessageDeduplicationId test, if I continue sending this exact message in the next 5 minutes, the message will be…
tehmaestro
  • 1,010
  • 2
  • 11
  • 21
32
votes
5 answers

Deleting message from SQS FIFO queue: The receipt handle has expired

I switched to a FIFO queue and I got this error message when I tried to delete a message from the queue Value {VALUE} for parameter ReceiptHandle is invalid. Reason: The receipt handle has expired. It appears that the error happens because I tried…
doej
  • 449
  • 1
  • 5
  • 5
31
votes
6 answers

How do I fail a specific SQS message in a batch from a Lambda?

I have a Lambda with an SQS trigger. When it gets hit, a batch of records from SQS comes in (usually about 10 at a time, I think). If I return a failed status code from the handler, all 10 messages will be retried. If I return a success code,…
user2719094
  • 1,611
  • 5
  • 26
  • 36
30
votes
1 answer

Why doesn't CeleryCAM work with Amazon SQS?

I'm using Celery 2.4.6 and django-celery 2.4.2. When I configure Celery to use Amazon SQS per the resolution on this question: Celery with Amazon SQS I don't see anything in the celerycam table in the Django admin. If I switch back to RabbitMQ, the…
tobias.mcnulty
  • 1,621
  • 14
  • 15