Channels
All AsyncAPI specs MUST include definitions for the channels (Kafka topics) including:
Description of the topic
Servers in which the topic is available
This is a reference to one of the server identifiers included in the servers section
publish/subscribe operations
Operation ID
Summary or short description for the operation
Description for the operation
Security schemes
Tags
External Docs
Message details
In addition to those supported fields, it MAY be possible to use extension attributes (using the x- prefix) to specify specific configuration parameters and metadata. In so, the recommended attributes to use are :
x-metadata
To include additional configuration specific to your team or project
x-configurations
To include Kafka configuration parameters and producers/consumers
As the parameters can be different per environment, it is very convenient to add an additional level for the environment
As part of the publish/subscribe operations, the spec SHOULD specify the different Kafka clients currently consuming from the different topics for each cluster/environment. For this, the extended attributes x-producers and x-consumers will be used.
Last updated