How can I fetch data from 2 web services simultaneously ?

Hi

I have 3 web services that are providing me data for my hotel booking engine. It taking too long if i run them sequentially. Therefore I wanted to run them using threads. But not sure if php threading will support this and if its safe (since all 3 processes that will handle the web service will read and write into shared tables )

Can Anyone advise me on how i should proceed ??

Would you just want to check the response times on one service before starting the next?
Doesn’t seem like you would want to get 2 responses at the same time.

My opinion I would search for Database Optimization on the Internet and go to MySQL portion of forum(s) (I’m assuming the databases are MySQL?) to ask that particular question.

Sponsor our Newsletter | Privacy Policy | Terms of Service