Connecting to your Kafka topic
To connect your Kafka topic, you need to supply:- The kafka cluster hostname and port (e.g., localhost:9092)
- The topic name (e.g., audit-log-events)
- The number of Convoy agent replicas consuming the topic — the number of partitions for the topic should match how you scale agents for that source.
- The consumer group id —it is recommended that you set one— which by default this is set to an empty string.
- Supply authentication configured on the cluster
Authentication
- Auth types: PLAIN and SCRAM
- Hash types: SHA512 and SHA256
- TLS: Enabled and Disabled
Ingestion Options
There are two ways to ingest events into Convoy from your Kafka topic:-
Format the payload using the structure below as a guide and write it to your topic.
reference payload
If
For a full list of reference payloads, see our guide on ingesting eventsx-convoy-message-typeset to broadcast, the event will be sent to all endpoints in the project, ignoring both theendpoint_idandowner_idvalues. -
Send your arbitrarily formatted event payloads to your topic and use Convoy’s transform functions to mutate them at the point of ingestion.
transform function
Things to note
- Messages are read off the topic one-by-one by each agent consumer reading a partition.
- Acknowledgements are done per message.
- Ingestion is subject to the instance ingest rate (
CONVOY_INSTANCE_INGEST_RATE/instance_ingest_rate, default 1000/s in code). See Rate limits.