P is for Practical | |
PerlMonks |
Re: Advice: Async Options for fire-and-forget subroutineby salva (Canon) |
on Oct 22, 2017 at 06:55 UTC ( [id://1201826]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|