Asynchronous tasks in PHP

Asynchronous tasks in PHP

Why & how making asynchronous tasks in PHP
PHPTour Lyon 2014 - 24/06/2014

418997665c4a3368515ecf9c3d746b95?s=128

Olivier Dolbeau

June 24, 2014
Tweet

Transcript

  1. 2.
  2. 7.
  3. 8.
  4. 9.
  5. 10.
  6. 11.
  7. 12.

    Your visitors don’t want to wait! and if they have

    to, they don’t want to know it
  8. 13.
  9. 14.

    Your web servers want to make their job! (they don’t

    care about emails other boring tasks)
  10. 15.
  11. 18.
  12. 24.

    With the PECL extension Thanks to Pieter de Zwart See:

    pdezwart/php-amqp Use librabbitmq (alanxz/rabbitmq-c)
  13. 28.
  14. 29.
  15. 30.
  16. 31.
  17. 33.

    get > consume • consume is a blocking call •

    you don’t want blocking calls in your application ! • Use “get” method with a poll-interval
  18. 34.
  19. 35.
  20. 36.
  21. 37.
  22. 38.
  23. 39.
  24. 40.
  25. 44.
  26. 45.
  27. 46.
  28. 47.
  29. 48.
  30. 50.
  31. 51.
  32. 52.
  33. 54.
  34. 55.