> 23 mar 2014 kl. 03:48 skrev Soumya Simanta <[email protected]>:
> 
> 
> I'm crosspointing it here to get wider coverage. 
> 
> http://stackoverflow.com/questions/22569664/correct-way-to-model-a-subscriber-as-an-akka-actor
> 
> I'm planning to reengineer an existing system to use Akka, Play and 
> Websockets.
> 
> My current system is based on Jetty and Websockets.
> 
> I've a fast stream of messages that are published into a Redis channel. In my 
> web app layer I subscribe to these messages using a Jedis subscriber and then 
> push those messages to a Websocket which are then displayed on a browser.
> 
> I want to make the shift two two primary reason - a) better and simpler fault 
> tolerance due to use of Actors b) the ability to connect to multiple streams 
> using different actors
> 
> In my current design I've a supervisor that creates a new child actor for 
> every new channel. The child actor then subscribes to a Redis channel. My 
> question what's the best way to push the messages (received from the Redis 
> channel) to a Play Websocket ?
> 
You will find description and code for how to do that in the Reactive Maps 
Typesafe Activator tutorial: 
https://typesafe.com/activator/template/reactive-maps

Cheers,
Patrik
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: 
> >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to