Command Type
Command Type ID: 1201Parameters
Usage Examples
Basic Kafka Publish
Publish Only the Data Segment
Publish with Headers and Key
Related Commands
- RabbitMQ Sink - Publish to RabbitMQ
- S3 Sink - Upload to S3
- MongoDB Sink - Write to MongoDB
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Publish job results to a Kafka topic via the sink service
| Parameter | Type | Description | Required |
|---|---|---|---|
| topic | string | The Kafka topic name to publish to | Yes |
| dataSegmentToSend | string | Which part of the data to send. Possible values: "fullData", "data". Defaults to "fullData" | No |
| headers | object | Optional Kafka message headers (values must be strings) | No |
| key | string | The message key | No |
{
"command": "kafka-sink",
"params": {
"topic": "sports-events"
}
}
{
"command": "kafka-sink",
"params": {
"topic": "live-odds",
"dataSegmentToSend": "data"
}
}
{
"command": "kafka-sink",
"params": {
"topic": "events",
"key": "event-123",
"headers": {
"source": "scraper",
"version": "2"
}
}
}