This project is a simple implementation of a distributed queue system in Java. It demonstrates the basic concepts of message brokering, producing, and consuming messages using custom classes.
- Main.java: Entry point of the application.
- model/Message.java: Defines the message structure.
- Service/Broker.java: Handles message brokering between producers and consumers.
- Service/Producer.java: Produces messages and sends them to the broker.
- Service/Consumer.java: Consumes messages from the broker.
- Java 8 or higher
- Maven (for building the project)
-
Clone the repository:
git clone https://github.com/kd123/DistributedQueue.git cd DistributedQueue -
Build the project using Maven:
mvn clean install
-
Run the application:
mvn exec:java -Dexec.mainClass="com.que.Main"
- The application demonstrates how producers can send messages to a broker, and consumers can receive messages from the broker.
- You can extend the functionality by adding more producers, consumers, or enhancing the broker logic.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.