Amazon Lambda integration with Amazon MSK
The Lambda integration connects your Amazon MSK cluster to the selected Lambda function, using an Event Source Mapping (ESM) which constantly polls for messages in your topic using a resource called Event Poller. The ESM evaluates the message backlog – using the OffsetLag metric
For more information, see Using Lambda with Amazon MSK in the Amazon Lambda Developer Guide.