We can configure listeners to consume specific message content by adding a custom filter. This can be done by setting a RecordFilterStrategy to the KafkaListenerContainerFactory:
We can then configure a listener to use this container factory:
https://www.baeldung.com/spring-kafka#4-adding-message-filter-for-listeners