GithubHelp home page GithubHelp logo

clients-servers's Introduction

To start the Akka HTTP server with Akka Clustering

  1. run ./gradlew shadowJar to create an executable jar with dependencies
  2. Open a termainal to serve the Ui node of the cluster:
    • java -jar build/libs/clients-servers-all.jar serve -s akka-http -n ClusterMember -p 8088 -c 2551
    • Connect to the Ui by browsing to http://localhost:8088/, you should see entities appearing on node 2551
  3. Open as many more terminals as you want, increment the port for each one:
    • java -jar build/libs/clients-servers-all.jar serve -s akka-node -n ClusterMember -c 2552
    • You should see the nodes appear on the UI, and entities allocate to it, not always balanced
  4. Terminate and re-start nodes created in step 3 to see re-allocation of entities in the Akka Cluster!

Note: You'll see console errors in the UI, as cluster event's aren't handled nicely in this version, focus is on seeing entity distribution via Akka Cluster Sharding.

Roadmap:

  1. Smarter cluster seed node initialization, currently hard coded in application.conf
  2. UI improvements, suuper basic right now
  3. Handle cluster membership info nicely in UI

clients-servers's People

Contributors

mglanzer avatar

Stargazers

Pengcheng Huang 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.