Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Mojolicious / Hypnotoad / concurrency / data scope

by Arunbear (Prior)
on Jan 06, 2018 at 18:30 UTC ( #1206828=note: print w/replies, xml ) Need Help??


in reply to Mojolicious / Hypnotoad / concurrency / data scope

Looking at the code, it seems the context is stored in a singleton object and would also persist for the life time of the worker process.

Why not rebuild/reset the context for each new request, or localize it as the example you linked to shows?

  • Comment on Re: Mojolicious / Hypnotoad / concurrency / data scope

Replies are listed 'Best First'.
Re^2: Mojolicious / Hypnotoad / concurrency / data scope
by 1nickt (Abbot) on Jan 07, 2018 at 15:42 UTC

    That's what I expect to do, but I am unclear about the scope within the Hypnotoad server, since each process serves multiple requests.


    The way forward always starts with a minimal test.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2020-09-20 07:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (120 votes). Check out past polls.

    Notices?