Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Mojolicious: keeping track of connections with forking

by Anonymous Monk
on May 16, 2017 at 02:49 UTC ( [id://1190355]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Mojolicious: keeping track of connections with forking
in thread Mojolicious: keeping track of connections with forking

I keep track of everything in memory with memcache. Like I said, it works great with morbo. But the forking in hypnotoad breaks it.

Try https://metacpan.org/release/Mercury

Replies are listed 'Best First'.
Re^4: Mojolicious: keeping track of connections with forking
by Rodster001 (Pilgrim) on May 16, 2017 at 16:21 UTC
    Actually, after reading about this closer, it doesn't look like this is possible yet. From this page: http://search.cpan.org/~preaction/Mercury-0.012/lib/Mojolicious/Plugin/Mercury.pm
    NOTE: Since Mercury does not yet have a way for brokers to share messages, you must run Mercury as a single process. You cannot run Mercury under Hypnotoad like other Mojolicious applications, nor prefork or other multi-processing schemes. See https://github.com/preaction/Mercury/issues/35 to track the clustering feature.
    So, I guess for now the solution is to run under Morbo until this is resolved either by Mercury or Mojolicious.
Re^4: Mojolicious: keeping track of connections with forking
by Rodster001 (Pilgrim) on May 16, 2017 at 16:10 UTC
    This looks exactly like what I need. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1190355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-03-19 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found