Thanks for your insights Dan! 
I appreciate your time!

On Wednesday, February 11, 2015 at 11:08:13 PM UTC-5, Dan Book wrote:
>
> - References to the app from the controller will only be available when 
> the controller is instantiated by the app, i.e. to run an action.
> - The IOLoop setup should be done in the app's startup routine. The 
> collectData stuff should also probably be done in the app module. You can 
> add methods to your app class for accessing subscribers etc, since from the 
> controller action you can always call it from $self->app, there's no reason 
> to store it globally in the controller.
> - Mojo::IOLoop is a singleton so you'll always be referring to the same 
> one. If you mean running more than one timer, that is perfectly fine.
> Also keep in mind if you use a prefork or hypnotoad daemon then your 
> controllers will be split across workers, but in this case each worker's 
> app can get the data from the DB and handle its own active connections.
>
>
>

-- 
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 http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to