PHP Classes

RESTful API Processes

Recommend this page to a friend!

      PHP Preemptive Cache  >  PHP Preemptive Cache package blog  >  Improving Your PHP Co...  >  All threads  >  RESTful API Processes  >  (Un) Subscribe thread alerts  
Subject:RESTful API Processes
Summary:RESTful API Processes and curl
Messages:2
Author:Anthony Amolochitis
Date:2015-09-08 14:47:33
 

  1. RESTful API Processes   Reply   Report abuse  
Picture of Anthony Amolochitis Anthony Amolochitis - 2015-09-08 14:47:33
Other things that should be mentioned is external processes. Scripts that execute may depend on another external API accessed via curl. Since curl waits until a result returns, you may wait a long time. By using the cache method, you may cache a data set for a RESTful API call which is executed by a background process that, when finished, will store the data properly for your application. This can produce serious gains in performance as well since you eliminate the wait for the current script to execute.

  2. Re: RESTful API Processes   Reply   Report abuse  
Picture of Joseluis Laso Joseluis Laso - 2015-09-10 13:22:34 - In reply to message 1 from Anthony Amolochitis
Thank you so much for your comment Anthony.

You're right. In fact, in the 2nd part is mentioned external sources as a candidate to improve with this method.