This project implements a distributed system using Java, consisting of a master node and multiple worker nodes. The system supports different messaging patterns including one-to-one, broadcasting, and round-robin messaging.
- Master Node: Sends commands to worker nodes and handles incoming responses.
- Worker Nodes: Receive commands from the master node and send responses back.
-
Clone the Repository
Clone the project repository to your local machine using:
git clone https://github.com/xangeee/Distributed-Ping-Pong-System.git
-
Running the Code
Navigate to the project directory src/
and choose the messaging pattern to execute (one-to-one, broadcasting, or round-robin messaging):
cd src/<messaging_pattern>
./run_master.sh
./run_workers.sh
The config.cfg
file contains the parameter settings.