Pubsub over a db like Pg or Redis might be useful if you are using one of
those. Otherwise the Mercury websocket broker can also act as a pubsub
daemon.

-Dan

On Thu, May 9, 2019 at 4:17 PM Luc Larochelle <[email protected]> wrote:

> Hi,
>
> I've researched this subject and read a lot, but can't come to a
> conclusion. I need help to get things straight ...
>
> In my web app, I simply manage elements in a DB with API endpoints. So
> far, this is awesome. My setup is Mojolicious + AngularJS + Bootstrap.
>
> The way I see this, my question has 2 approaches :
>
> 1) When I add a new element in the table, I'd like to deploy a job, where
> a backend scripts connects to the element and reports a status to the web
> app.
>
> 2) Some daemon is periodically watching an "inventory" API endpoint and
> when a new element is detected, the backend script connects to the element
> and reports a status to the web app.
>
>
> For instance, it could set a status light for connectivity and
> authentication success on each line of my table.
>
>
> In any ways, I thought websockets + minions would be my friends, but the
> more I read about it, the more I get confused. Are Minions suited for this
> task ?
>
> How should I achieve this ?
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mojolicious/ccfe44d6-38b8-405d-92f6-189f4c377b3a%40googlegroups.com
> <https://groups.google.com/d/msgid/mojolicious/ccfe44d6-38b8-405d-92f6-189f4c377b3a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mojolicious/CABMkAVXFoB%3DTwONPC1F%2BJaf-fnuanYkc9YB%3DCS0Suw8xgOSSug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to