Giter Club home page Giter Club logo

send2kafka's Introduction

send2kafka

Status: WIP

Configuration

General

Config could be provided in two ways:

  • Environment variables e.g. SEND2KAFKA__HTTP__HOST=localhost
  • YAML file, see the example in the next section
    • By default: a config.yaml file in current working directory
    • Could be overridden using SEND2KAFKA__CONFIG environment variable

NB: for Kafka attributes you need to use single _ instead of .: SEND2KAFKA__KAFKA__BOOTSTRAP_SERVERS=localhost:1234. Single underscores will be replaced with dots automatically. The configuration library uses dots as separators which conflicts with Kafka property format. In addition, environment variable names are not supposed to have dots.

Parameters

There are default values provided in the snippet below:

http:
  host: 0.0.0.0
  port: 8080
  # num_workers: 0  # Optional. If not specified, it will be calculated automatically: https://actix.rs/docs/server/#multi-threading
kafka:
  bootstrap_servers: localhost:9092
  # Here you can provide additional Kafka parameters, for example:
  # sasl_mechanism: SCRAM-SHA-256
  # security_protocol: SASL_PLAINTEXT
  # sasl_username: me
  # sasl_password: mypassword

API

POST /topics/<topic_name>

Sends a message to Kafka topic. Message payload should be provided as a message body. The message key could be specified using the optional X-Key HTTP header

send2kafka's People

Contributors

ignytis avatar

Watchers

 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.