You could Cache those responses so that they are faster the next time.
What is the fastest way to make HTTP requests???
I'm new to PHP, coming from JS. I would like to know what is the fastest way to make HTTP requests in PHP???
PHP is synchronous, so that would mean that it doesnt continue executing code until it gets back response when using cURL?? Am I right?? If so, how could I avoid that my website gets slow if http response takes to long?
FYI I'm planning on integrating apps like Intercom or Segment, that's why I have to make a lot of HTTP requests.
UPDATE 1
It is the opposite. I want send data to Intercom to log actions for analytics. User signed up, visited this page, that page, did that, and so on. Basically log all their actions.
To do that I have to send HTTP requests to their API. That's at least one outgoing http request for each route I have. Now, while doing that in php functions (in controller), I dont want that making those http requests affects the loading speed of my views/website. So I want to make sure it won't.
Please or to participate in this conversation.