Thanks Heiko.
The asynchronous handling of morbo is all I need at this point.

cheers,
Lachlan

> On 10 May 2016, at 6:25 PM, Heiko Jansen <[email protected]> wrote:
> 
> Am Montag, 9. Mai 2016 04:58:21 UTC+2 schrieb Lachlan Deck:
>  
> If I do need multi-threaded support in future, where would I look?
> 
> Be aware that there´s usually no "multi-threading" in the context of 
> Mojolicious, but asynchronous processing in multiple processes.
> The solution given should work with, e.g., Morbo, where a single process 
> handles all connections. 
> IMHO, it won´t work in a production environment with Hypnotoad, because there 
> you have a bunch of server processes and there´s no guarantee that the POST 
> request will be handled by the same server process which controls the open 
> websocket connection.
> From the incoming POST request you could transfer some data to an external 
> service and in every server process you could start a loop looking for new 
> data there for those websocket connections managed by the respective 
> hypnotoad process (maybe use https://metacpan.org/pod/Mojo::Redis2#Pub-sub 
> here).
> 
> - heiko
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/mojolicious 
> <https://groups.google.com/group/mojolicious>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" 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 https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to