There is a file that runs every N minutes. When this file is launched, something like this happens there:
- Displays a list of groups from MySQL.
- Starts updating information about groups by making a request to the VK API.
- Receives the necessary information and writes them to MySQL.
If done consistently, it turns out a critical timeout. It is important that 100 groups run for no more than 1 minute. If you do this task not sequentially but in parallel, in theory it will take approximately 10 seconds or even less. The question will already be in the capacity of the server, but this is not a problem.
You can of course create dozens of files and put them in the CROWN task. But it seems to me that there is a much more elegant solution and in the end, in the end, the right one.