Posted On: Apr 27, 2022
Amazon Lambda now supports Amazon MQ for RabbitMQ as an event source, allowing customers to quickly and easily build applications that are triggered from messages in their RabbitMQ queue. Amazon MQ is a managed message broker service for Apache ActiveMQ and RabbitMQ that makes it easy to set up and operate message brokers in the cloud. Customers can build applications quickly and easily with Lambda functions that are invoked based on messages posted to Amazon MQ message brokers without needing to worry about provisioning or managing servers.
Customers can read from Amazon MQ for RabbitMQ brokers without needing to create and manage a consumer application that monitors Amazon MQ queues for updates. The Lambda function is invoked when the number of messages reaches the specified batch size, or the payload exceeds 6MB. Lambda manages connectivity with the Amazon MQ message broker on the customer's behalf, including managing authentication, authorization, scaling, monitoring, and failure handling.
To get started, select your Amazon MQ message broker as the event source for your Lambda function through the Amazon Web Services Management Console, Amazon CLI, Amazon SAM, or Amazon SDK for Lambda, and provide details for your RabbitMQ broker. Amazon MQ as a Lambda event source is available in Amazon Web Services China (Beijing) Region, operated by Sinnet, and Amazon Web Services China (Ningxia) Region, operated by NWCD. This feature incurs no additional charge. You pay for the Lambda invocations triggered by an Amazon MQ queue. To learn more about building an Amazon MQ for RabbitMQ consumer application with Lambda, read the Lambda Developer Guide.