Posted On: Jul 7, 2021
AWS 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 AWS Management Console, AWS CLI, AWS SAM, or AWS SDK for Lambda, and provide details for your RabbitMQ broker. Amazon MQ as a Lambda event source is available in the following AWS Regions: Asia Pacific (Hong Kong), Asia Pacific (Mumbai), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), Canada (Central), Europe (Frankfurt), Europe (Ireland), Europe (London), Europe (Paris), Europe (Stockholm), Middle East (Bahrain), South America (São Paulo), US East (N. Virginia), US East (Ohio), US West (N. California), US West (Oregon). 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 and the AWS Compute Blog.