akka / alpakka-samples

Example projects building Reactive Integrations using Alpakka
https://akka.io/alpakka-samples/
68 stars 37 forks source link

New example: publish events from some queue to connected websocket clients #53

Open jrudolph opened 4 years ago

jrudolph commented 4 years ago

Something of that kind seems to come up quite often. One of the questions here is whether you would create a consumer for the queue (e.g. kafka, or some pubsub) per client or if you would try to cache the consumer in the server and put it behind a BroadcastHub so you can more efficiently handle multiple WS clients.