Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 948 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 948 Bytes

Distributed Ping-Pong System

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.

System Components

  • Master Node: Sends commands to worker nodes and handles incoming responses.
  • Worker Nodes: Receive commands from the master node and send responses back.

Setup Instructions

  1. Clone the Repository

    Clone the project repository to your local machine using:

    git clone https://github.com/xangeee/Distributed-Ping-Pong-System.git
  2. 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.