just use [hack](https://hhvm.com/).
hack has language-level support for async tasks[^1]. and is 99% compatible with PHP.
On the other hand, I would love to see PHP8 bring language-level support for async tasks.
hack has language-level support for async tasks[^1]. and is 99% compatible with PHP.
On the other hand, I would love to see PHP8 bring language-level support for async tasks.
If you have only 1 external system that both indexes the data and stores it, this won't help you that much.
But if you have an indexing system and another, with many read slaves, that stores the data, then async will help you.
You will do 1 external io request to retrieve a list of ids/identifiers then as many replicas paralel requests to retrieve and format the data.