There is a subtle difference. The process mailbox is external, so it is more fault tolerant and more analysable.
I don’t know if there is an algorithm, but have a look at Horizon package that Laravel provides for its queue system. It has some kind of configuration that may help you or give you ideas.


















