https://kafka.apache.org/quickstart
- cd /Users/esuarez/dev/kafka_2.11-2.1.0
- bin/zookeeper-server-start.sh config/zookeeper.properties
- bin/kafka-server-start.sh config/server.properties
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic
bin/kafka-topics.sh --describe --zookeeper localhost:2181 --topic
bin/kafka-topics.sh --zookeeper localhost:2181 --delete --topic
config/server.properties log.dirs=/kafka/kafka-logs-5d41b09deb9a
conf/zoo.cfg dataDir=/opt/zookeeper-3.4.13/data
bin/kafka-topics.sh --list --zookeeper localhost:2181
- cd kafka
- docker-compose up -d
- docker exec -it kafka /bin/sh
- cd /opt/kafka_2.12-2.5.0/
- bin/kafka-topics.sh --list --zookeeper zookeeper:2181
- bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic test
or
- docker exec -it kafka kafka-topics.sh --list --zookeeper zookeeper:2181
- docker exec -it kafka kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic test
- docker-compose down (Stop and remove containers, networks, images, and volumes)
docker-compose scale kafka=3
docker-compose stop
- curl -v http://localhost:8084/v1/orders | json_pp
- curl -v -d '{"customerId": 1}' -H "Content-Type: application/json" http://localhost:8084/v1/orders
- curl -v http://localhost:8085/v1/orders | json_pp
- curl -v http://localhost:8085/v1/orders/customers/1 | json_pp
- curl -v http://localhost:8085/v1/orders/validations | json_pp
- curl -v http://localhost:8085/v1/orders/validations/status | json_pp
- http://localhost:8085/v1/orders/customers/1
- http://localhost:8085/v1/orders/validations
- http://localhost:8085/v1/orders/validations/status
- http://localhost:8888/order-service/default (Config)
- http://localhost:8761/ (Discovery)
- http://localhost:9999/api/order-service/v1/orders (Micro Proxy)
- http://localhost:9999/api/v1/orders
- curl -v -d '{"customerId": -1}' -H "Content-Type: application/json" http://localhost:9999/api/v1/orders
- Create topics manually for: -orders-out -orders-out-fallback -orders-in -orders-in-fallback -orders-validation-out -orders-validation-in
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic orders-out bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic orders-in