before the project encountered a problem, we need to send text messages in batches, so we have to query the database according to certain conditions, and then get the mobile phone number to send the message.
uses a loop to query the data when it is done, and as a result, the whole project is stuck. Then due to the configuration of the server can not use the redies queue to achieve this function, and then came up with a way is to store the condition, put it in a file, and then use the scheduled task to execute the condition every 10s. In fact, I have a question here, what is the difference between doing so and putting it directly into the redis queue to execute. I hope to give an easy-to-understand explanation.