Saltar al contenido

Lambda filter criteria for Apache kafka ESM

0

I have a lambda with Apache kafka ESM and I will get a json data from the Kafka. I need to filter criteria for this json look like {"third-party":"yes","foo":"bar"} When the incoming json has third-party I need to ignore that record that record need not invoke lamba and when the key itself not there that record need to invoke the lambda so give the filter pattern for this scenario

preguntada hace 9 meses131 visualizaciones

1 Respuesta
0

You can achieve this with an event source mapping filter pattern that excludes records containing "third-party":"yes" and allows records where the key is absent. The filter pattern should check the value field of the Kafka message (since Lambda filtering for Kafka only supports the value key) and use a not-equals condition.

EXPERTO

respondido hace 9 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.