CD Practical Project - P2P Drive-Through | UA 2018/2019
This project is a product of the first practical assignement of one of our classes: Distributed Computing and the main idea behind it is to implement a drive-through restaurant using a peer-to-peer distributed system architecture.
This restaurant simulation is composed by five different entities:
This entities are organized in a token-ring.
The kitchen is composed by 3 equipments:
Each action takes a random time to be completed. This random time follows a gaussian distribution with an average time of 2 seconds and a standar deviation of 0.5 seconds. One client request is composed by at least one item (hamburger, drink or package of fries), but can be one possible combination of items with a maximum of 5 items. This request is generated randomly.
Open two terminals:
simulation:
$ python simulation.py
client:
$ python client.py
We created a run script in bash that executes 20 clients, so that is another way to execute and test the program:
$ ./run.sh
Keep your fork sync with the upstream
$ git remote add upstream git@github.com:mariolpantunes/load-balancer.git
$ git fetch upstream
$ git checkout master
$ git merge upstream/master
This project is licensed under the MIT License - see the LICENSE file for details