amazon-sqs

SQS triggers Lambda with multiple records/messages?

限于喜欢 提交于 2019-12-06 04:13:26
问题 I've observed an abnormal (well, in my POV) feature, where when I setup SQS to trigger a Lambda, when new messages arrive, lambdas get triggered with more than 1 record/message inside its event body. Full setup is S3 (PutObjectEvent) -> SNS topic -> SQS -> Lambda. The abnormal behaviour is that for example, let's say I put 15 objects inside S3, which then forwards an event to SNS per each object, which then I can observe, SQS gets populated with 15 messages. However, when Lambdas start

Have a PHP script run forever, access a queue

落爺英雄遲暮 提交于 2019-12-06 04:02:51
问题 See also Having a PHP script loop forever doing computing jobs from a queue system, but that doesn't answer all my questions. If I want to run a PHP script forever, accessing a queue and doing jobs: What is the potential for memory problems? How to avoid them? (any flush functions or something I should use?) What if the script dies for some reason? What would be a good method to automatically start it up again? What would be the best basic approach to start the script. Since it runs forever,

How to subscribe an SNS topic of one account by SQS of another account using boto3?

﹥>﹥吖頭↗ 提交于 2019-12-06 03:19:27
问题 I'm trying to create an SNS topic in one account and attach it to Config Rules. I have 3 such accounts and want to create SNS topic in each of the account. Now i want to subscribe all of the 3 topics of 3 different accounts by SQS of the fourth account. I'm able to do it manually. Can somebody please tell me how it can be done via boto3. Thanks in Advance. 回答1: In order to subscribe a SNS topic present in Account A by an SQS present in Account B using boto3, following is the procedure. In

Consumer Poll Rate with Akka, SQS, and Camel

浪尽此生 提交于 2019-12-06 01:48:36
问题 A project I'm working on requires the reading of messages from SQS, and I decided to use Akka to distribute the processing of these messages. Since SQS is support by Camel, and there is functionality built in for use in Akka in the Consumer class, I imagined it would be best to implement the endpoint and read messages this way, though I had not seen many examples of people doing so. My problem is that I cannot poll my queue quickly enough to keep my queue empty, or near empty. What I

Is it possible for S3 notifications to SQS to fail?

南笙酒味 提交于 2019-12-06 01:38:14
I have setup an S3 bucket to publish messages for each PUT and POST actions. Files get uploaded to that bucket using CLI. It does work fine but out of 4 files pushed sequentially, only one triggers a message. I am not sure that this has always happened but it is happening consistently now. Note that it does not happen when I upload file manually (i.e. I always get a message per file). I have made sure that there is no downstream system processing the messages (as a confirmation, I still see the original message triggered after the first file). Is there any reason to believe that this AWS

Valid Architecture for a Message Queue & Worker System in PHP?

限于喜欢 提交于 2019-12-05 16:55:37
问题 I'm trying to wrap my head around the message queue model and jobs that I want to implement in a PHP app: My goal is to offload messages / data that needs to be sent to multiple third party APIs, so accessing them doesnt slow down the client. So sending the data to a message queue is ideal. I considered using just Gearman to hold the MQ/Jobs, but I wanted to use a Cloud Queue service like SQS or Rackspace Cloud Queues so i wouldnt have to manage the messages. Here's a diagram of what I think

Amazon SQS Tagging

白昼怎懂夜的黑 提交于 2019-12-05 13:17:16
We are trying to setup Amazon SQS between two AWS applications. Management wants to track cost associated with all Amazon resources. Is it possible to tag Amazon Simple Queue Service resources? This feature is now supported on SQS: https://aws.amazon.com/blogs/aws/introducing-cost-allocation-tags-for-amazon-sqs/ Tagging for SQS is not yet supported. Perhaps you may manually calculate using the standard formula with few assumption of number of requests made like number of SQS Request etc. In my opinion you can enable cost tagging for the AWS Resources which are support and for the remaining you

SpringBoot @SqsListener - not working - with Exception - TaskRejectedException

可紊 提交于 2019-12-05 05:47:16
I have a AWS SQS with 5000 messages already on the Queue (Sample Message looks like this 'Hello @ 1') I created a SpringBoot Application and inside one of the Component Classes create a method to read messages from the SQS. package com.example.aws.sqs.service; import org.springframework.cloud.aws.messaging.listener.SqsMessageDeletionPolicy; import org.springframework.cloud.aws.messaging.listener.annotation.SqsListener; import org.springframework.stereotype.Component; import lombok.extern.slf4j.Slf4j; @Component @Slf4j public class MessageReceiverService { @SqsListener(value = { "${cloud.aws

Do Delay Queue messages count as “In Flight” in SQS?

风格不统一 提交于 2019-12-05 04:36:11
I'm working on a project in which I intend to use an Amazon SQS Delay Queue . I'm having a bit of trouble understanding exactly what is meant by "inflight" messages. There is a note in the documentation that says: Note There is a 120,000 limit for the number of inflight messages per queue. Messages are inflight after they have been received by the queue, but have not yet been deleted from the queue. If you reach the 120,000 limit, you will receive an OverLimit error message from Amazon SQS. To help avoid reaching the limit, you should delete the messages from the queue after they have been

Possible to send request directly to Amazon SQS from http (javascript client)?

女生的网名这么多〃 提交于 2019-12-05 03:50:32
Is it possible to send a messaging request to Amazon's SQS directly from javascript? I'm trying to create a logging system and would love to bypass sending the request to a middleman server. Also, does anybody know of any alternatives to this solution that I may leverage? randomuser SQS(and as a matter of fact all aws services) expose REST based apis. You can directly make a http request to the SQS REST api through javascript code. The api documentation id given here . Unless you load your Javascript from the same SQS domain as you're trying to send to then no, due the clients/Javascript Same