Stream data to a Kafka Queue from a Postgres database which contains over 10M rows.
mvn clean package
java -jar -Dspring.profiles.active=prod target/datastreamer-0.0.3.jar
docker build . -t datastreamer
docker run --net="host" datastreamer:latest
You can find the documentation and instructions to Run Kafka at https://docs.confluent.io/current/tutorials/build-your-own-demos.html
docker-compose -f ./db/docker-compose.yml -f ./kafka/docker-compose.yml -f ./prometheus/docker-compose.yml -f ./grafana/docker-compose.yml config > docker-compose.stack.yml
docker-compose -f docker-compose.stack.yml up -d
kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic order-stats
kafka-topics --list --zookeeper localhost:2181
kafka-console-consumer --bootstrap-server localhost:9092 --topic order-stats --from-beginning