I have an api end point which receives some parameters and process them returns a csv file. But the processing time may take more than 15 seconds. My server has build in timeout and some client systems may have also timeout set.
How can I overcome this timeout issue with out changing any system settings?
I have gone through some articles, which says make a api call for registering the job, send back 202 response from server with a
retry_after header, then process the data. Client resend api request after specified time, if process not complete repeat the cycle till process finish.
I don't know how to implement this in php. Any help will be appreciated...