1

I want to use AWS lambda to consumer kafka messages, but the events I received don't contain kafka headers, that are very critical. Is there a way to get messages with headers info?

2
  • Is that headers available in messages in kafka? or no headers in kafka also? Commented May 26, 2021 at 15:49
  • Is this solved? I see same behavior. The headers are there in kafka. Other consumers are able to receive headers Commented Jun 26, 2021 at 4:54

1 Answer 1

1

The Lambda Kafka integration did not support headers before, but they have (very recently, in the last few days) silently added support for headers. You can see this in the latest event example in the docs (or try it yourself): https://docs.aws.amazon.com/lambda/latest/dg/with-msk.html

Sign up to request clarification or add additional context in comments.

1 Comment

but it came in encoded form: "headerKey": [1,2,3,4..]. It is a list of integers, corresponding to each character an integer number. It is not clear how to compare lists, how to trigger lambda only on specific list taking into account the order of elements.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.