Two phase commit and Three phase commit demo implemented by http server
- You need two tools, Python and Django; the detailed installation
- when you have installed the necessay tools, you could execute the order "py manage.py runserver" with the condition that your directory must in the file with document manage.py
- Now you could open your browser and input the website: http://localhost:8000/two-phase/ or http://localhost:8000/three-phase/
- According to the two- phase protocol, you could excute the next steps in the first web address:
- According to the three- phase protocol, you could excute the next steps in the second web address:
- The most significant step is to change the name of the participants and keys in two-phase
- The most significant step is to change the name of the participants and keys in three-phase