Tell me in general how it should look at the output:
There is a certain website which displays banner ads with a frequency of hits up to 200pcs per minute.
Each banner display generates ajax request to the server to save statistics, and returns the id of the saved display to the browser.
The response time from the server should not exceed 1 second.
At the same time, in parallel with saving the statistics on the server, the request should go to the back-up system, the answer to which takes 10-15 seconds.
It is necessary to implement a mechanism for creating a queue and sending requests to the back-up system with saving the result of the mandrel in the statistics table on the server.
The delay between displaying a banner and storing information on the backing system should not exceed 5 minutes.
Stack: php7 + mysql + js.
Where to begin ?