@blueprod/pubsub-test
v0.1.0
Published
pubsub test
Downloads
4
Readme
PubSub Test
The purpose of this module is to test various PubSub implementation under redis, nats, kafka,...
Configuration
To change the target implementation (i.e. redis/nats/kafka/...) please update file:
How To Execute Tests
- Change module name to the module your want in /config/host-config.js Ex: const currentModule = moduleConst.NATS; /* .REDIS .KAFKA */
- docker-compose up -> run all redis/nats/kafka server docker-compose -f docker-compose-redis.yml up -> run redis server docker-compose -f docker-compose-nats.yml up -> run nats server docker-compose -f docker-compose-kafka.yml up -> run kafka server
- npm test
To see all current topic of kafka on docker by command line:
- docker ps
- docker exec -it bash
- cd bin
- ./zkCli.sh
- ls /brokers/topics