Posted On: Nov 22, 2021

AWS Lambda has launched a new metric, OffsetLag, to monitor the performance of Amazon MSK and Self-managed Kafka. Up until now, Lambda users did not have visibility into how polling runs and had to increasingly rely on the Lambda support team to resolve delays in processing, leading to inefficiencies in data streaming. The OffsetLag metric is a measure of the total number of messages waiting in the message queue to be sent to the target Lambda function. This metric will provide transparency into the amount of data congestion in a message queue. Thus, developers can monitor the performance of events, set alarms and thresholds to check for undesirable congestion and quickly diagnose and solve inefficiencies in their data stream.

To learn more about OffsetLag and how it is calculated check the Lambda Developer Guide.  There is no additional cost for using this feature beyond the standard price for AWS Lambda.