Not strictly coldbox related, but I would like to ask which method is better if I’m planning to make multiple http requests.
I should make an http request, parse the response html, if I found something insert in the database, else I go on make other http request.
What I should do?
the problem will be the timeout. The maximum request I would do is 30.
My script should start with a scheduled task everyday, make the first http request: if found something stops, else go on.
I should use cfthread, to create a queue of thread? Create a loop of 30 thread to make sure I will found what I’m looking for?
I was thinking also to event gateway, to create an asynchronous http request.
Could someone give me opinion?