There are services on the Internet that allow you to publish deferred posts to several social networks at once, incl. and on VKontakte. They have many users and posts that need to be posted at the same moment.
I have a PHP application that will do roughly the same thing (at least it should have time to do so many requests in one minute). If you do everything consistently, for each user, then this will be far from a minute (taking into account the pauses, so as not to exceed the query limit per second), and it means that this is not an option.
After I got the idea to find something that will mimic multithreading in php. Found, for example, the PHPThreads library, tried it with a small number of users and their groups, in which you need to post entries. It seems that despite the fact that the number of groups in which you need to post several posts varied from 1 to 3, the script always fit in 40 seconds, which is acceptable. However, what will happen next when there are more of these groups and posts? Do not increase the run time?
Tell me, with the help of what would you implement something like that? Maybe you faced such a task and you can push me to a more correct way?