I am working on php script that may involve a long running task. The process goes like this, a user (in my case case using an iOS application) submits data to my web service. Part of the process requires my php script to contact a third party to verfity some of the submitted data. The client (on the iPad) has no need to wait for the response from the third party.
Pseudocode:
Pull values from _POST[]
some simple validation
if _POST[] values are good
return success to client
further process submitted data with thrd party
update database
else
return error code and message
How would it be possible to return a simple JSON object from my server only to act as receipt, and have my php script further process the submitted data. The third party I am using has been known to be slow to respond (makes several hops, and has been known to take several minutes for a response).