{
  "repo": "tikv/migration",
  "binary": "kafka-consumer",
  "binary_path": "cdc/cmd/kafka-consumer/main.go",
  "dependencies": {
    "Runtime KafkaConsumer.main": {
      "infrastructure": {
        "kafka": {
          "conditions": [
            "Always after upstream-uri parsing succeeds"
          ],
          "operations": [
            {
              "operation": "CONSUME CDC EVENTS",
              "trigger": "Join the configured Kafka consumer group and process changefeed events",
              "conditions": [
                "The topic exists and consumer configuration is valid"
              ],
              "implementation": "Sarama setup and consumer loop in cdc/cmd/kafka-consumer/main.go"
            }
          ]
        }
      },
      "services": [
        {
          "name": "downstream-sink",
          "protocol": "sink-specific",
          "target_interface": "configured downstream-uri",
          "purpose": "Apply consumed CDC events into the configured downstream sink"
        }
      ]
    }
  }
}
