Fanout daemon. Part of the nanoservice core: https://github.com/nanoservice
924
This is part of nanoservice core.
Listens to specific topic on Bus and fans out messages to clients in round-robin fashion.
Enables canary deployment.
It uses Apache Kafka as a Bus.
# Run fanout daemon on topic `user_need` and link to one `kafka` instance
docker run -d --link kafka:kafka \
nanoservice/fanout --id service_x --topic user_need
# Run fanout daemon with `kafka` cluster
docker run -d --link kafka_1:kafka_1 --link kafka_2:kafka_2 --link kafka_3:kafka_3 \
nanoservice/fanout --id service_x --topic user_need
To run fanout cluster, just start multiple fanout instances with the same --id service_x.
Make sure that both user_need and fanout_service_x_user_need topics exist or topic auto-creation is enabled in kafka.
TODO
TODO
bin/deps to install all dependenciesbin/test to run all unit testsbin/integration to run all unit+integration testsbin/protobufs to re-generate protobufsUse normal TDD development style.
Content type
Image
Digest
sha256:fa4195296…
Size
46.9 MB
Last updated
about 11 years ago
docker pull nanoservice/fanout