~/talk

Doing asynchronous programming in PHP?

TalkinFrenchat SymfonyLive Paris 2014 · 2014-04-07..04-08· [php]
links:none on file
slides:none on file

Shows how to run PHP workers with RabbitMQ (AMQP) using the PECL amqp extension rather than a PHP-only library, and argues that publishing with non-blocking get plus a 200ms sleep loop outperforms consume callbacks. Covers practical fixes: intercept signals with pcntl so workers finish current jobs, use dead-letter queues with TTL retries for transient API failures, clear the Doctrine EntityManager to prevent memory leaks, tune Monolog bufferSize, and compares memory usage (Symfony full-stack workers ~50–60MB vs micro workers ~3–4MB) while using supervisor/upstart for monitoring.

AI-written summary · about

  1. 0:00Async PHP intro
  2. 3:20Async programming benefits
  3. 5:07AMQP and RabbitMQ basics
  4. 10:07PHP to RabbitMQ
  5. 13:17Publish and consume messages
  6. 15:00Broker problems
  7. 17:45Graceful worker shutdown
  8. 20:12Memory leaks in consumers
  9. 22:17Retrying failed messages
  10. 24:44Doctrine memory management
  11. 27:11Monitoring workers
  12. 28:54Supervisor setup
  13. 30:17Slim vs full stack
  14. 32:09Tips and demos
  15. 33:53Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.