Skip to content

Application Kafka topics with KNative Trigger filtering configuration and example #2262

@tarunrathor-pro

Description

@tarunrathor-pro

Describe the change you'd like to see
A example where Kafka is the default channel and Trigger with filters based on event fields.
Additionally the real source of events is application kafka topics ( not the kafka channel topics).

What would the complete setup be in this case. Does it still need the KafkaSource to read from application level kafka topics to publish to brokers (with kafka backed channels)

Any guidance on how the schema for the application level Kafka topic should be to support Trigger filters
Options:

  1. CloudEvent specification for Kafka with binary content mode with avro serialisation
    https://github.com/cloudevents/spec/blob/master/kafka-protocol-binding.md#32-binary-content-mode
  2. CloudEvent specification for Kafka with structure mode with avro serialization.
    https://github.com/cloudevents/spec/blob/master/kafka-protocol-binding.md#33-structured-content-mode

Additional context
https://github.com/knative/docs/tree/master/docs/eventing/samples/kafka
contains example for

  1. 'kafka source' -> 'service'
  2. 'broker' -> 'trigger' -> 'service'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions