Git Product home page Git Product logo

sync3k-server's Introduction

Sync3k Server

sync3k-server is a lightweight websocket gateway to kafka. The server accepts websocket path:

ws://localhost:8080/kafka/:topic/:offset

Network binding, listening port and kafka bootstrap server can be configured through flags.

  -b, --bind <value>       interface to bind to. Defaults to 0.0.0.0
  -p, --port <value>       port number to listen to. Defaults to 8080
  -k, --kafkaServer <value>
                           Kafka bootstrap server. Defaults to localhost:9092

The server is intended to be used with sync3k-client.

Usage

Use sbt to run the server.

sbt "run --port 8080 --kafkaServer kafkaserver:9092"

Running everything with Docker

sync3k-server includes Dockerfile and docker compose YAML that launches zookeeper, kafka and sync3k-server.

To build the Docker image, first build an uber-jar with sbt assembly command:

sbt assembly

Then build the Docker image:

docker build . -t sync3k/sync3k-server .

Alternatively, you can pull from Docker repo:

docker pull sync3k/sync3k-server

Finally, launch everything with docker-compose:

docker-compose up -d

Disclaimer: This is not an official Google product.

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.