GithubHelp home page GithubHelp logo

rishabkatta / centralized-publisher-subscriber-system Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 582 KB

a centralized pub/sub system implementation in java using remote procedure call protocol.

Java 100.00%

centralized-publisher-subscriber-system's Introduction

Architecture and Interaction Diagrams

  • The Architecture Diagram gives you an overview at a High level on what's going on in the project.
  • The Interaction diagram gives you a little deeper insight into how each publisher, Subscriber, and Event Manager handles each operation.

DOCKER COMPOSE EXECUTION

  • cd into downloaded repository.

  • run "docker-compose -f docker-compose-project2.yml up --build -d"

  • exec into each docker container in a seperate terminal

    "docker exec -it eventmanager bash"
    "docker exec -it publisher1 bash"

  • cd project2/

  • run "java -cp target/project2-1.0.jar edu.rit.cs.EventManager" in eventmanager container

  • run "java -cp target/project2-1.0.jar edu.rit.cs.PublisherAgent < eventmanagerIP > 9091" in publisher containers

  • run "java -cp target/project2-1.0.jar edu.rit.cs.SubscriberAgent < eventmanagerIP > 9091"

  • Then try and play with the pub-sub system by giving appropriate answers to the CLI questions.

eventmanagerIP is displayed after you run "java -cp target/project2-1.0.jar edu.rit.cs.EventManager" in eventmanager container

DOCKER EXECUTION

  • cd into downloaded repository.
  • run "docker build -t project2:rishabkatta -f Dockerfile-project2 ."
  • run "docker run --hostname eventmanager -it project2:rishabkatta /bin/bash"
  • run "docker run --hostname publisher1 -it project2:rishabkatta /bin/bash" in another terminal.
  • run "docker run --hostname subscriber1 -it project2:rishabkatta /bin/bash" in another.
  • In eventmanager container, run "java -cp target/project2-1.0.jar edu.rit.cs.EventManager"
  • In publisher container run "java -cp target/project2-1.0.jar edu.rit.cs.PublisherAgent < eventmanagerIP > 9091"
  • In subscriber container run "java -cp target/project2-1.0.jar edu.rit.cs.SubscriberAgent < eventmanagerIP > 9091"

centralized-publisher-subscriber-system's People

Contributors

rishabkatta avatar

Stargazers

Rebecca Dsouza avatar Harikrishna Reddy avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.