Conditionally pushing event listeners to queue
Mohammed Said, Laravel employee #1 and diver, explains how you can avoid pushing unnecessary jobs to a queue.
How many customers will reach the 10K purchase milestone? does it make sense to push a Job to queue for every single purchase while there's a huge chance that this job will just do nothing at all? IMHO this is a waste of resources, you might end up filling your queue with thousands of unnecessary jobs.It might be a good thing if we can check for that condition before queueing the listener.
http://themsaid.com/conditionally-queue-listeners-laravel-20170505/
What are your thoughts on "Conditionally pushing event listeners to queue"?