Posted On: Nov 5, 2020
AWS Lambda now supports HAQM MQ for Apache ActiveMQ as an event source to give customers more choices for messaging services to use with their serverless application. HAQM MQ is a managed message broker service for Apache ActiveMQ 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 HAQM MQ message brokers without needing to worry about provisioning or managing servers.
Lambda supports messaging event sources such as HAQM Simple Queue Service (SQS) and HAQM Simple Notification Service (SNS). Now, it is also easy to read from HAQM MQ message brokers and process messages without needing to create and manage a consumer application that monitors HAQM MQ queues for updates. The Lambda function is invoked when the messages exceed the batch size or the payload exceeds 6MB. Lambda manages connectivity with the HAQM MQ message broker on the customer's behalf, including managing authentication, authorization, scaling, monitoring, and failure handling.
To get started, select your HAQM MQ for ActiveMQ message broker as the event source for your Lambda function through the AWS Management Console, AWS CLI, AWS SAM, or AWS SDK for Lambda. HAQM MQ as a Lambda event source is available in all AWS Regions where both AWS Lambda and HAQM MQ are available. This feature incurs no additional charge. You pay for the Lambda invocations triggered by an HAQM MQ queue. To learn more about building an HAQM MQ consumer application with Lambda, read the Lambda Developer Guide and the AWS Compute Blog.