Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.2 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.2 KB

play-akka-cluster-pub-sub

In this sample i integrate a play framework app (java) with akka cluster so that you can easily add new play node to scale your system. when a new node added all node in the cluster log hello message, no matter which node receives the message.

run node1:

activator -Dnode.id=1 -Dhttp.port=9000 -Dakka.remote.netty.tcp.port=2551 -Dakka.cluster.seed-nodes.0="akka.tcp://[email protected]:2551" -Dakka.cluster.seed-nodes.1="akka.tcp://[email protected]:2552" run

run node2:

activator -Dnode.id=2 -Dhttp.port=9001 -Dakka.remote.netty.tcp.port=2552 -Dakka.cluster.seed-nodes.0="akka.tcp://[email protected]:2551" -Dakka.cluster.seed-nodes.1="akka.tcp://[email protected]:2552" run

run node3:

activator -Dnode.id=3 -Dhttp.port=9002 -Dakka.remote.netty.tcp.port=2553 -Dakka.cluster.seed-nodes.0="akka.tcp://[email protected]:2551" -Dakka.cluster.seed-nodes.1="akka.tcp://[email protected]:2552" run

For SSL support and configuration in akka please find a valid solution on http://stackoverflow.com/questions/31052582/how-to-configure-akkacluster-using-ssl-support/31163827#31163827 Make sure your play application your are accessing is via HTTPS only.