kafka-proxy

command module
v0.0.0-...-f5b4409 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

README

kafka-proxy

Very simplistic HTTP proxy to forward data into kafka queues

Starting proxy

One topic:

./run.sh --sinks my_topic=k001.cluster.com:9092,k002.cluster.com:9092

Multiple topics over multiple brokers/kafka-clusters:

./run.sh --sinks my_topic=k001.cluster.com:9092,k002.cluster.com:9092\;another_topic=kafka1.another-cluster.com:9092,kafka2.another-cluster.com:9092

Options

The following options are available to start the proxy:

  -hostname="": Hostname override (default: automatic detection)
  -p=9001: HTTP port
  -sinks="": Configure sinks (mytopic=broker:port,broker:port;anothert_topic=broker:port)
  -token="": Authentication token

Forward data

curl -XPOST --data "payload here" http://localhost:9001/enqueue?topic=my_topic

Example Use Cases

  • Forward data to a Kafka queue from a stateless programming language like PHP: this will increase throughput
  • Centralize configuration and authentication

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL