- Kafka single node
- MongoDB
- Go >= 1.16
Create .env
file with following variables
MONGO_URI=mongodb://localhost:27017/
DBNAME=test_sync
KAFKA_URLS=localhost:9092
KAFKA_TOPIC=test_sync
WORKER_GROUP=with_buffer
MAX_WORKERS=5
BUFFER_LENGTH=2
- Feed Kafka with data using
feed
- Update WORKER_GROUP for running each tests:
serial
- Run without concurrentsingle_pipeline
- One goroutine per stagepipelines
- Multiple Goroutine per stagewith_buffer
- Multiple Goroutine per stage, with buffered channels