Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Advice: Async Options for fire-and-forget subroutine

by salva (Canon)
on Oct 22, 2017 at 06:55 UTC ( [id://1201826]=note: print w/replies, xml ) Need Help??


in reply to Advice: Async Options for fire-and-forget subroutine

AnyEvent and similar event-based programing modules would not solve your problem unless you rewrite your full application on top of them.

Using a thread for handling the Redis communication is probably the more efficient approach. In your case I would try with some module implementing a queue like Thread::Queue.

Another alternative would be to fork a slave process to work as a local buffer for the communication with Redis.

  • Comment on Re: Advice: Async Options for fire-and-forget subroutine

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found