J
J
jekahm2016-10-25 18:53:36
PHP
jekahm, 2016-10-25 18:53:36

Cron or Message broker (Message queue)?

Good day!
I am developing a script that, using a third-party API, pulls information about football matches.
Data is pulled for each match separately (by match id). There is also a limit on the use of the API method (1000 requests per hour). That is, based on the fact that there are a little more than 14 thousand matches, the data will be pulled out for more than 14 hours.
In this case, what is better to use to run this process in the background: Regular Cron or Message Broker , passing, for example, a serialized string with the method name + parameters (match id) as a message?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question