I have implemented a Laravel 5.0 Queue (with a DB driver) in order to speed up the redirection speed on my website.
I wanted to speed up a process that takes about 400 ms.
I'm redirecting the user and want to use Queues to wipe out that 400ms waiting time.
However after implementing this Queue, it's still taking like 350-400ms to process the script and redirect the user.
Queue::push(function($job) use ($data)
{
TestQueue::myFunc($data);
$job->delete();
});
Am I doing anything wrong? Please let me know what else to provide in order for you to help me.