Tests various MOM(s) with Server Sent Events (SSE) and Command Query
gradle clean shadowJar
docker pull redis
docker run -it -p 6379:6379 redis
docker pull apachepulsar/pulsar
docker run -it -p 6650:6650 -p 8080:8080 -v ~/data:/pulsar/data apachepulsar/pulsar bin/pulsar standalone
https://docs.confluent.io/current/installation/docker/docs/quickstart.html
git clone https://github.com/confluentinc/cp-docker-images
cd examples/kafka-single-node/
docker-compose up
in a separate terminal create the topic:
cd examples/kafka-single-node/
export KAFKA_TOPIC_NAME=test
docker-compose exec kafka kafka-topics --create --topic $KAFKA_TOPIC_NAME --partitions 1 --replication-factor 1 --if-not-exists --zookeeper localhost:32181
http://localhost:8000/poll?topic=test
http://localhost:8000/sub?topic=test
http://localhost:8000/post?topic=test
export SOURCE=pulsar
java -jar build/libs/sse-0.1-all.jar --bootstrap=$SOURCE://localhost
java -cp build/libs/sse-0.1-all.jar io.streamz.sse.producer.Main -m 'testing' -c 10
java -cp build/libs/sse-0.1-all.jar io.streamz.sse.consumer.Main
java -cp build/libs/sse-0.1-all.jar io.streamz.sse.consumer.Main -f messageId