Skip to content

Instantly share code, notes, and snippets.

@dimabory
Last active January 28, 2019 13:03
Show Gist options
  • Save dimabory/fbaf1e525b8387e613073e554087f77c to your computer and use it in GitHub Desktop.
Save dimabory/fbaf1e525b8387e613073e554087f77c to your computer and use it in GitHub Desktop.
Async PHP implementtions

ReactPHP

https://reactphp.org/ https://github.com/reactphp

pros

  • production-ready
  • API

cons

  • Persistent connections (Connection: keep-alive) are c urrently not supported. As such, HTTP/1.1 response messages will automatically include a Connection: close header, irrespective of what header values are passed explicitly.
  • no http/2 support

AMP

https://github.com/amphp/amp

pros

  • coroutines
  • active development
  • libraries
  • support http/2

cons

@todo

Swoole

https://www.swoole.co.uk/ https://github.com/swoole/swoole-src

pros

  • coroutines and channels
  • active development
  • huge performance benchmarks
  • Frameworks & Components

cons

  • made in China
  • works as C extension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment