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 reply to Re: Advice: Async Options for fire-and-forget subroutine
by salva
in thread Advice: Async Options for fire-and-forget subroutine
by mwb613
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |