-
Run rabbitmq server using Docker
-
Run mongodb using docker.
docker pull mongodb/mongodb-community-server:latest
docker run --name mongodb -p 27017:27017 -d mongodb/mongodb-community-server:latest
node server.js
# run the server (publisher code is present here)
node server.js
# run the imageUploadWorkers (consumer code is present here)
node workers/imageUploadWorkers.js
- We wil use artillery to perform load testing.
- All the performance metrics are maintained and can be visualised in Artillery cloud.
Run load testing
- Create artillery-test.yaml in your project root folder.
- Run the following command -
artillery run artillery-test.yaml --record --key <ENTER_API_KEY>
- Bunny CDN integration to server images efficiently.
- Benchmark the 2 approaches - async vs sync.