A distributed system with service discovery and load balancer
These are the directions to setup the whole system on a single machine locally.
- Install node js in the system: https://nodejs.org/en/download/
- Download nginx and unzip in C: drive. http://nginx.org/en/download.html
- copy 'nginx.conf' file from 'distributed-system' to C:\nginx\conf\
- Go to the 'distributed-system' directory
- run 'npm install'
- Open terminal and run 'setup.bat' file
- Run 'start nginx' in terminal
- run 'node clients\flood_add.js' or 'node clients\flood_mul.js' in terminal to send multiple requests to web services.
- You can also use web browser to call any service:
- localhost/arith/add?x=5&y=7
- localhost/arith/multiply?x=5&y=7
- localhost/arith/subtract?x=5&y=7