[eluser]Unknown[/eluser]
I've looked around a little for multithreading, and even found a couple examples ... but I'm a little unsure about to apply them to my need.
I'm building an application (my first time using CI) which works with some of our product data. At one point in the work flow, we need to hit a specific web service API to get some pretty intensive market condition data.
That API cards through a
truck load of disparate data, and returns an XML up to four or five hundred kb. It is pretty darn slow ... some responses deem to take as long as 10-20 seconds.
Naturally, that bottleneck is a major concern when I have a SEVERAL dozen request to make at a time.
The author of the API invited me to hammer away at it like crazy with multiple simultaneous requests. (He kinda wants to find it's threshold for pain. I'll then throttle down to just below that point.)
I'd
like to stay out of JS for this, and to do it
in my controllers.
Now, when I get the XML results back, I have no need for sending them to a view.
All I need is to parse them and save some info to the DB.
Anyone have any good suggestions?
Something I'm missing in the CI manual?
Links to tutorials or some (well documented) examples?
Other??
Any and every suggestion will be well appreciated
Thanks-a-bunch,
~ Mo