Skip to content

v3_EN_Kafka

winlin edited this page Oct 23, 2015 · 18 revisions

Kafka

SRS support to write events to Kafka cluster, from which Spark can consume data.

Config

The config for SRS to support Kafka:

# Apache Kafka is a high-throughput distributed messaging system.
# SRS is a Kafka producer to send message to kafka.
# @see https://kafka.apache.org/documentation.html#introduction
kafka {
    # whether enabled kafka.
    # default: off
    enabled         off;
    # the broker list, broker is <ip:port>
    # and use space to specify multple brokers.
    # for example, 127.0.0.1:9092 127.0.0.1:9093
    brokers         127.0.0.1:9092;
    # the kafka topic to use.
    # default: srs
    topic           srs;
}

SRS will fetch metadata from Kafka when startup.

Events

SRS will write following events to Kafka:

  1. accept: When got a fresh client.
  2. close: When close a client.

Winlin 2015.9.22

Welcome to SRS wiki!

SRS 5.0 wiki

Please select your language:

SRS 4.0 wiki

Please select your language:

SRS 3.0 wiki

Please select your language:

SRS 2.0 wiki

Please select your language:

SRS 1.0 wiki

Please select your language:

Clone this wiki locally