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.
Sync3k Server
sync3k-serveris a lightweight websocket gateway to kafka. The server accepts websocket path:ws://localhost:8080/kafka/:topic/:offsetNetwork binding, listening port and kafka bootstrap server can be configured through flags.
The server is intended to be used with sync3k-client.
Usage
Use
sbtto run the server.Running everything with Docker
sync3k-serverincludes Dockerfile and docker compose YAML that launcheszookeeper,kafkaandsync3k-server.To build the Docker image, first build an uber-jar with sbt assembly command:
Then build the Docker image:
Alternatively, you can pull from Docker repo:
Finally, launch everything with
docker-compose:Disclaimer: This is not an official Google product.