4 ms·
just use [hack](https://hhvm.com/ https://hhvm.com/). hack has language-level support for async tasks[^1]. and is 99% compatible with PHP. On the other hand,
by nkcmr 9y ago
just use [hack](https://hhvm.com/ 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.
[^1]: https://docs.hhvm.com/hack/async/introduction https://docs.hhvm.com/hack/async/introduction
- pbalau 9y agoI think you are missunderstanding this a bit, hack has async io. 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.