aws-lambda-sqs | Sample AWS Lambda with SQS using Spring Cloud Function | AWS library

 by   mengjiann Java Version: Current License: No License

kandi X-RAY | aws-lambda-sqs Summary

kandi X-RAY | aws-lambda-sqs Summary

aws-lambda-sqs is a Java library typically used in Cloud, AWS, Spring Boot, DynamoDB applications. aws-lambda-sqs has no bugs, it has no vulnerabilities, it has build file available and it has low support. You can download it from GitHub.

Sample AWS Lambda with SQS using Spring Cloud Function
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              aws-lambda-sqs has a low active ecosystem.
              It has 13 star(s) with 10 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 1 have been closed. On average issues are closed in 12 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of aws-lambda-sqs is current.

            kandi-Quality Quality

              aws-lambda-sqs has no bugs reported.

            kandi-Security Security

              aws-lambda-sqs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              aws-lambda-sqs does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              aws-lambda-sqs releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed aws-lambda-sqs and discovered the below as its top functions. This is intended to give you an instant insight into aws-lambda-sqs implemented functionality, and help decide if they suit your requirements.
            • This method deletes all SQS queue messages
            • Delete messages by queueUrl
            • Gets a list of messages from SQS
            • Launches the application
            • The default client
            • The Amazon SQS client
            Get all kandi verified functions for this library.

            aws-lambda-sqs Key Features

            No Key Features are available at this moment for aws-lambda-sqs.

            aws-lambda-sqs Examples and Code Snippets

            No Code Snippets are available at this moment for aws-lambda-sqs.

            Community Discussions

            Trending Discussions on aws-lambda-sqs

            QUESTION

            AWS Fifo Halts on Lambda Throttle
            Asked 2021-Jan-13 at 23:47

            We use a Fifo Queue configured with a Lambda Function as a processor. We use MessageGoupId and BatchSize to optimistically remove redundant messages. To rate limit processing we use reserved concurrency. Our function timeout has to be high. The queue maximum receives is set to ten.

            Observed

            When there are a lot of messages in the queue, the Lambda function scales up. Once it scales enough to throttle, the queue processing comes to a complete hold and no further messages are processed until some minutes have passed.

            I’m assuming this is because of throttling, because halting always coincides with throttling and when increasing the reserved concurrency, it takes much longer for the processing to come to a halt.

            I’m assuming the time until the queue starts up again has to do with the lambda retry limit, the function timeout and the queue visibility timeout. But since I don’t know exactly what happens this is a guess.

            Issue

            There are no errors logged and ultimately all messages are processed, but since processing is time and throughput sensitive, it is not acceptable to have the queue halt for many minutes.

            Questions

            What is happening and how can we solve this? If more information is needed I’d be very happy to debug further.

            Edit: Found this: To allow your function time to process each batch of records, set the source queue's visibility timeout to at least 6 times the timeout that you configure on your function. The extra time allows for Lambda to retry if your function execution is throttled while your function is processing a previous batch. and we are certainly in violation, but I'm not sure how / if this explains the observed behaviour.

            ...

            ANSWER

            Answered 2021-Jan-13 at 23:47
            How to Reproduce

            At the end of this answer there is a complete, minimal example that is written to easily reproduce the issue.

            To deploy, create all files and fill in your aws profile and desired region into all sh files.

            Then run

            . deploy-stack.sh

            to create the cloudformation stack that contains all necessary resources.

            Then open the AWS web interface (SQS) and run

            . generate-messages.sh

            to generate messages on the queue.

            One can then see that about half of the messages are processed before the function throttles and the queue comes to a complete halt.

            To remove the cloudformation stack after all debugging has been completed run remove-stack.sh

            Solution

            AWS documentation contains a note saying

            To allow your function time to process each batch of records, set the source queue's visibility timeout to at least 6 times the timeout that you configure on your function. The extra time allows for Lambda to retry if your function execution is throttled while your function is processing a previous batch.

            Changing the timeout on the lambda function from 600 to 100 and redeploying the stack allows all messages to process correctly even though the lambda function throttles.

            I can not explain why this behaviour is observed and would greatly appreciate feedback on that. However the above does solve the issue described.

            Files

            stack.yaml

            Source https://stackoverflow.com/questions/65693903

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install aws-lambda-sqs

            You can download it from GitHub.
            You can use aws-lambda-sqs like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the aws-lambda-sqs component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/mengjiann/aws-lambda-sqs.git

          • CLI

            gh repo clone mengjiann/aws-lambda-sqs

          • sshUrl

            git@github.com:mengjiann/aws-lambda-sqs.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular AWS Libraries

            localstack

            by localstack

            og-aws

            by open-guides

            aws-cli

            by aws

            awesome-aws

            by donnemartin

            amplify-js

            by aws-amplify

            Try Top Libraries by mengjiann

            spring-boot-tdd

            by mengjiannJava

            aws-lambda-s3

            by mengjiannJava

            ssm-parameters-getter-lambda

            by mengjiannJavaScript

            pywakealexa

            by mengjiannPython

            spring-boot-querydsl

            by mengjiannShell