- Queuing Service (manage connections of consumer and producers, manage data queue)
- Producer (Produce data which will store inside Queuing Service)
- Consumer (Listen/Consume data from Queuing Service)
- clone the repository
git clone https://github.com/tyagip966/messageQueue.git
Below are the instructions to run this
1. cd queuingService/
2. go run server.go
Open another terminal for Consumer (you'll run multiple consumers in multiple terminal windows)
1. cd consumer
2. go run consumer.go
Now you'll get your output in the terminal screen whenever producer will produce some data
Open another terminal For Producer (you'll run multiple producers in multiple terminal windows)
1. cd producer
2. go run main.go
Now you'll put your input json inputs in the terminal screen and on consumers screen you'll get the expected output.
- Server (queuingService) (upper left)
- Producer (upper right)
- Consumer 1 (bottom left)
- Consumer 2 (bottom right)