I'm trying to implement a Push Notification system in PHP which needs to send massive notifications with the shortest delay possible, as described here:
The drawback I see in this architecture is how to auto scale the Notification Workers. As far as I know, there is no way to count the pending tasks in a pull queue, nor to count the active workers. How would you do it?