Giter Site home page Giter Site logo

harry-potter-vertx's Introduction

Harry Potter Vert.x - Taboo Name Curse Application

Clustered Vert.x example

Wizard

Wizards who dare saying the taboo name are being tracked!

Death Eater

Consumes messages from the event bus "NAMED" address.

The Death Eater will be able to go instantly where the Wizard has said the taboo name. That's how the Cursed Taboo name works, and that's why you should say "You-Know-Who", "He-Who-Must-Not-Be-Named" or "Dark Lord" (if you are a Death Eater). You chose your side, no judgement!

The Death Eater will use the killing curse against the Wizard and come back to report. A Death Eater can't start a killing curse if it's already doing one!

Dark Lord - Monitoring

Consumes monitoring messages from the event bus "ADAVA_KEDAVRA" address and logs them. The Dark Lord wants to check that Death Eaters are working well.

Running the application in cluster mode from your IDE

  • Run Wizard main producer.Wizard
  • Run DarkLord main cosumer.DarkLord
  • Run DeathEater main consumer.DeathEater

You can run multiple DeathEaters, and you will see how using the ClusteredLock, curses don't overlap.

Running from command line

mvn clean package

java -jar target/harry-potter-vertx-1.0-SNAPSHOT-fat.jar run producer.Wizard -cluster

java -jar target/harry-potter-vertx-1.0-SNAPSHOT-fat.jar run consumer.DarkLord -cluster

java -jar target/harry-potter-vertx-1.0-SNAPSHOT-fat.jar run consumer.DeathEater -cluster

harry-potter-vertx's People

Contributors

karesti avatar

Stargazers

 avatar

Watchers

 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.