Clients send api (php) some data. It is necessary that the api is immediately returned and that data is taken and after answering the beginning of their treatment, to prevent the client from waiting for processing. How to do it?
Classic method: data immediately after the adoption of written in raw form somewhere, for example in a special table view "date"+"user"+"serialized data". And then, every N minutes, cron runs this tablu, takes records and processes them.