Wednesday, 4 November 2026

Concurrency and Long-Running Workers in PHP: Managing State Safely

Concurrency and Long-Running Workers in PHP: Managing State Safely

A bug that appears only after an application has been running for several hours can be surprisingly difficult to track down.

A request works perfectly, then another request behaves strangely. Memory usage keeps increasing. A background job uses data it should never have seen. Restarting the worker fixes the problem, but only temporarily.

Tuesday, 3 November 2026

Using Queues to Handle Heavy Work in PHP Applications

Using Queues to Handle Heavy Work in PHP Applications

Imagine someone placing an order on your website. The application saves the order, sends a confirmation email, generates an invoice, updates an external system, and perhaps prepares a report before showing the customer a success message.

It works, but the customer has to wait for everything to finish.