playframework / play-scala-chatroom-example

Play chatroom with Scala API
https://developer.lightbend.com/start/?group=play
Creative Commons Zero v1.0 Universal
44 stars 22 forks source link

Use publish/subscribe across multiple Play instances #25

Open wsargent opened 7 years ago

wsargent commented 7 years ago

There's an example of a chat client using cluster pubsub here

https://github.com/typesafehub/activator-akka-clustering/blob/master/src/main/scala/chat/ChatClient.scala

We should leverage the example, converting streams into actors using

http://doc.akka.io/docs/akka/2.5.2/scala/stream/stream-integrations.html

to demo chat existing across multiple machines.

wsargent commented 6 years ago

Should reference https://github.com/playframework/play-socket.io/tree/master/samples/scala/clustered-chat