umefarooq's avatar

which queue driver is faster database or redis.

which queue driver is faster database or redis, if any body has some benchmarks please provide, i have used database queue driver it took 1 hour to complete 2815 jobs. sending push notifications for ios and android devices.

0 likes
3 replies
shadywallas's avatar

this question is a little missy it should be parted down to 3 parts :

Which is faster Mysql or Redis ?

can you compare mysql with redies ?

who is responsible for the speed of the job itself?

Do my application really need to know the difference when my application have not to many jobs ?

So first

Redis is slower than mysql if you are using the client php api

Redis is faster if you are using C-extiontion (https://pecl.php.net/package/redis)

when you scale up and you have too much writes to your queue Redis rock because all it is about is handling read and write within a cluster.

the job it self depends on you code and your server , the queue is all about providing an infrastructure for reading and writing to queues .

the time needed for the job depends on your side .

Final thought for bigger apps , use predis c extension , for smaller app , just go with my sql .

13 likes
jekinney's avatar

@shadywallas that's about a good of an answer I've seen for this question.

Kinda weird in the aspect queued tasks are generally slow hence why they are queued. I get the question, but yet like stated it's a lot more complex then which is faster.

Please or to participate in this conversation.