I have to connect api that states:
Our system sends events to your application, it does
so in a manner that it expects an immediate reply but does not wait
for all processing to take place. When an event is received, an
immediate reply is made back to our system to say the message was
received. The acknowledge event call follows to state that the event
has been processed by the third party. Our system has to
process millions of events daily and awaiting for the third party to
finish processing an event while distributing events would cause
unnecessary delay.
Now i am in a problem because i dont understand how can i immediately respond to their server that i have get their data if i used the return keyword in 1st line then it will not execute the code after it and in other cases they have to wait for my process to finish.
I have tried with echo 1. but it does not work.
Note: for successfull response i have to send 1 as integer to let them know that i have get their data
1 Answer