Skip to content

Yurii-Buhryn/play-akka-cluster-websocket-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play-akka-cluster-websocket-chat

Multiroom scalable chat based on Play Framework 2 (Java) and Akka cluster

This this sample of integration a play framework 2 app (java) with akka cluster. It's provide a possibility to add new play node for scale system. when a new node added all nodes in the cluster share chat messages, no matter which node receives the message.

run first node:

activator -Dnode.id=1 -Dhttp.port=9000 -Dakka.remote.netty.tcp.port=2551 -Dakka.cluster.seed-nodes.0="akka.tcp://application@127.0.0.1:2551" run

run second node:

activator -Dnode.id=2 -Dhttp.port=9001 -Dakka.remote.netty.tcp.port=2552 -Dakka.cluster.seed-nodes.0="akka.tcp://application@127.0.0.1:2551" -Dakka.cluster.seed-nodes.1="akka.tcp://application@127.0.0.1:2552" run

run third node:

activator -Dnode.id=3 -Dhttp.port=9002 -Dakka.remote.netty.tcp.port=2553 -Dakka.cluster.seed-nodes.0="akka.tcp://application@127.0.0.1:2551" -Dakka.cluster.seed-nodes.1="akka.tcp://application@127.0.0.1:2552" -Dakka.cluster.seed-nodes.2="akka.tcp://application@127.0.0.1:2553" run

About

Multiroom scalable chat based on Play Framework 2 (Java) and Akka cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published