symfony-messenger | Bridge to use Symfony Messenger on AWS Lambda with Bref | AWS library

 by   brefphp PHP Version: 0.4.2 License: MIT

kandi X-RAY | symfony-messenger Summary

kandi X-RAY | symfony-messenger Summary

symfony-messenger is a PHP library typically used in Cloud, AWS applications. symfony-messenger has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Bridge to use Symfony Messenger on AWS Lambda with Bref. This bridge allows messages to be dispatched to SQS, SNS or EventBridge, while workers handle those messages on AWS Lambda.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              symfony-messenger has a low active ecosystem.
              It has 43 star(s) with 14 fork(s). There are 6 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 11 have been closed. On average issues are closed in 68 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of symfony-messenger is 0.4.2

            kandi-Quality Quality

              symfony-messenger has 0 bugs and 8 code smells.

            kandi-Security Security

              symfony-messenger has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              symfony-messenger code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              symfony-messenger is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              symfony-messenger releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              symfony-messenger saves you 167 person hours of effort in developing the same functionality from scratch.
              It has 341 lines of code, 26 functions and 11 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed symfony-messenger and discovered the below as its top functions. This is intended to give you an instant insight into symfony-messenger implemented functionality, and help decide if they suit your requirements.
            • Send an envelope .
            • Handle the SQS event .
            • Creates an instance of the given DSN .
            • Puts an envelope on a bus .
            • Handle SNS event .
            • Load services .
            • Handle an event bridge bridge .
            • Reject an envelope
            • Returns true if the given DSN is supported .
            Get all kandi verified functions for this library.

            symfony-messenger Key Features

            No Key Features are available at this moment for symfony-messenger.

            symfony-messenger Examples and Code Snippets

            Usage,SQS
            PHPdot img1Lines of Code : 97dot img1License : Permissive (MIT)
            copy iconCopy
            MESSENGER_TRANSPORT_DSN=https://sqs.us-east-1.amazonaws.com/123456789/my-queue
            
            # serverless.yml
            
            service: my-app
            provider:
                name: aws
                environment:
                    ...
                    MESSENGER_TRANSPORT_DSN: ${construct:jobs.queueUrl}
            
            constructs:
                jobs:
              
            Usage,EventBridge
            PHPdot img2Lines of Code : 39dot img2License : Permissive (MIT)
            copy iconCopy
            # "myapp" is the EventBridge "source", i.e. a namespace for your application's messages
            # This source name will be reused in `serverless.yml` later.
            MESSENGER_TRANSPORT_DSN=eventbridge://myapp
            
            MESSENGER_TRANSPORT_DSN=eventbridge://myapp?event_bus_na  
            Usage,SNS
            PHPdot img3Lines of Code : 31dot img3License : Permissive (MIT)
            copy iconCopy
            MESSENGER_TRANSPORT_DSN=sns://arn:aws:sns:us-east-1:1234567890:foobar
            
            functions:
                worker:
                    handler: bin/consumer.php
                    timeout: 20 # in seconds
                    reservedConcurrency: 5 # max. 5 messages processed in parallel
                    layers:
                

            Community Discussions

            QUESTION

            Symfony Messenger not shutting down gracefully when using APP_ENV=prod
            Asked 2022-Apr-04 at 07:26

            We are using Symfony Messenger in combination with supervisor running in a Docker container on AWS ECS. We noticed the worker is not shut down gracefully. After debugging it appears it does work as expected when using APP_ENV=dev, but not when APP_ENV=prod.

            I made a simple sleepMessage, which sleeps for 1 second and then prints a message for 60 seconds. This is when running with APP_ENV=dev

            As you can see it's clearly waiting for the program to stop running. Now with APP_ENV=prod:

            It stops immediately without waiting.

            In the Dockerfile we have configured the following to start supervisor. It's based on php:8.1-apache, so that's why STOPSIGNAL has been configured

            ...

            ANSWER

            Answered 2022-Apr-04 at 07:26

            Turns out it was related to the wait_time option related to SQS transports. It probably caused a request that was started just before the container exited and was sent back when the container did not exist anymore. So, wait_time to 0 fixed that problem.

            Then there was this which could lead to the same issue

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install symfony-messenger

            This guide assumes that:.
            Symfony is installed
            Symfony Messenger is installed
            Bref is installed and configured to deploy Symfony

            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/brefphp/symfony-messenger.git

          • CLI

            gh repo clone brefphp/symfony-messenger

          • sshUrl

            git@github.com:brefphp/symfony-messenger.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 brefphp

            bref

            by brefphpPHP

            laravel-bridge

            by brefphpPHP

            examples

            by brefphpPHP

            logger

            by brefphpPHP

            dev-server

            by brefphpPHP