Giter Site home page Giter Site logo

http-to-kafka's Introduction

HTTP-TO-KAFKA

This server places a HTTP server in front of Kafka to allow the client to quickly post via a RESTful interface.

Status

Build Status Coverage Status

Prerequisites

  • BOOST 1.55+

  • CLang 3.4+

Compilation

mkdir build

cd build

cmake ..

make all

Usage

./http-to-kafka {config file}

Configuration

The configuration is stored in the config.json file and looks like:

{
  "address": "0.0.0.0",
  "port": "8084",
  "kafka-brokers": "localhost:9092",
  "topics": ["topic1", "topic2"]
}

Where address is the server address, port is the server port, kafka-brokers are the Kafka brokers that this service connects to and topics are the permitted topics that this service may publish to. Once configured and running you can simply post to the server topics like:

POST http://0.0.0.0:8084/topic1

POST http://0.0.0.0:8084/topic2

Expected message format

The REST interface expects a POST request. The body will be the body of your Kafka message.

License

MIT

Docker

https://registry.hub.docker.com/u/bowlofstew/http-to-kafka

Authors(s)

Stewart Henderson<[email protected]>

http-to-kafka's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.