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
1
vote
1 answer

How to put an item into a dynamodb table using python?

so I'm trying to place a dictionary into a dynamodb table, yet I keep getting the error: ERROR TypeError: cannot pickle '_thread.lock' object The code is below: def send_to_dynamo(): message = receive_from_queue() database =…
1
vote
1 answer

AWS SQS | Message Stuck In flight after Max Memory error in Lambda

I've a FIFO SQS queue with a lambda polling it. The lambda had this error for one of the msgs of queue: Runtime exited with error: signal: killed Runtime.ExitError I know this happened due to max memory reached. Now, any msg sent to queue after this…
Waleed Ahmad
  • 446
  • 3
  • 15
1
vote
0 answers

SQS get number of messages sent to a dead letter queue within a given period

I have a dead-letter queue which receives messages as a result of a failed processing attempt from Lambda function. In this case, the NumberOfMessagesSent metric for the dead-letter queue is not available. Therefore I found a way to derive this…
user1718159
  • 561
  • 1
  • 6
  • 12
1
vote
0 answers

Receive specific message from AWS SQS queue

I have a scenario where I am sending a message to a request queue which in turns calls a lambda. That lambda performs some operation and write the data to a response queue(AWS SQS). How do I retrieve the specific message from my response queue for…
1
vote
1 answer

AWS CDK - get existing SQS eventSource

AWS CDK provides a function to add new SQS trigger (aka eventSource) to a lambda, addEventSource. But is there a way to get a hand on the existing eventSources that a Lambda might already have, in order to update or disable/enable them for…
tomtom
  • 23
  • 4
1
vote
2 answers

Could not write JSON: Java 8 date/time type `java.time.LocalDate`

I am using Spring Boot 2.7.4 and com.fasterxml.jackson.module jackson-module-kotlin I'm facing the following error when trying to send an Object through…
1
vote
1 answer

AWS SQS Selective Polling Pattern

I have a system where I publish updates to a shared topic meant for specific consumers. I noticed messages getting stuck in the queue due to a lack of selective listening in SQS consumers, so messages are being hijacked. Example: Given:…
Loc12342
  • 23
  • 1
  • 4
1
vote
1 answer

NodeJS sqs-consumer keeps executing function

I an using the npm package: sqs-consumer to poll for messages in a queue. Whenever a new message comes in I want it to create a subfolder in an S3 bucket. The issue that I am having is that even after the message is received and then deleted from…
1
vote
1 answer

Connect Celery to AWS SQS

I have a problem connecting Celery to AWS SQS service. My arhitecture looks like this: First service is API that uses celery.send_task() methods, then I have 2 SQS queues, and after that I have two celery workers, and each worker(separate…
mehekek
  • 113
  • 9
1
vote
1 answer

Apply AWS Lambda Event configuration in Serverless to specific Lambda version?

I would like to give myself the ability to rollback the Lambda that my SQS events trigger if I ship bad code. To do this, I would like my SQS event configuration in serverless.yml to apply to a specific lambda version rather than the default…
1
vote
0 answers

TraceId using SNS and SQS

Good evening! I receive an SNS inside an SQS Listner, and then I publish another SNS. Inside the SNS that I receive has a TraceId, how can I propagate this trace Id in the SNS that I send? I thought about using spring-cloud-starter-sleuth, but I…
1
vote
1 answer

When to use one queue vs multiple?

Say I want to send emails to users. When users sign up for an account they get an email. When they complete an order they get an email. When they receive a message they get an email. My hunch is that a event Fanout is a good approach to use here.…
1
vote
1 answer

What do I need to allow for my Security group to receive inbound traffic from SQS in lambda?

After reading AWS Documentation I read that AWS Lambda can send traffic outside the network via a NAT gateway; which I have. However, I have an SQS that has messages my lambda is ingesting based on events. I also have a Lambda inside a VPC with a…
1
vote
1 answer

Spring SQS Message Handler - add custom message attributes to existing message before sending it to Dead-Letter-Queue

Currently, the messages on source queue are sent to dead-letter-queue on every exception. My goal is to add custom attributes to the failed message so that engineers have more information about failure when they monitor the dead-letter-queue. When I…
1
vote
1 answer

How to secure Front-End message pushing into AWS SQS

An ajax call can be made to push message to SQS from front end browser facing app directly without any interaction of server based backend. example using below API…
engg
  • 25
  • 8
1 2 3
99
100