{
  "repo": "pingcap/ticdc",
  "binary": "kafka-consumer",
  "binary_path": "cmd/kafka-consumer/main.go",
  "dependencies": {
    "Runtime KafkaConsumer.runKafkaConsumer": {
      "infrastructure": {
        "kafka": {
          "conditions": [
            "Always after flag parsing succeeds"
          ],
          "operations": [
            {
              "operation": "CONSUME CHANGE EVENTS",
              "trigger": "Consume TiCDC events from the configured Kafka upstream",
              "conditions": [
                "A valid Kafka upstream URI is provided"
              ],
              "implementation": "newConsumer(ctx, consumerOption) and cons.Run(ctx)"
            }
          ]
        },
        "http": {
          "conditions": [
            "Only when --enable-profiling is true"
          ],
          "operations": [
            {
              "operation": "SERVE PPROF",
              "trigger": "Expose local pprof on :6060",
              "conditions": [
                "Profiling is explicitly enabled"
              ],
              "implementation": "http.ListenAndServe(\":6060\", nil) in cmd/kafka-consumer/main.go"
            }
          ]
        }
      },
      "services": [
        {
          "name": "downstream-sink",
          "protocol": "sink-specific",
          "target_interface": "configured downstream URI",
          "purpose": "Write consumed Kafka events into the configured downstream sink"
        }
      ]
    }
  }
}
