Menu

slimfony: a small PHP 8.4 core for FrankenPHP worker mode, with its benchmarks and its limits
📰

slimfony: a small PHP 8.4 core for FrankenPHP worker mode, with its benchmarks and its limits

DEV Community: php·Szj·12 days ago
#N8QzYjY5
#devto#dev#request#requests#core
Long article (2380 words) — no AI summary yet.
Reading 0:00
15s threshold

State that outlives the request

PHP's classic model hides a whole class of bugs: every request starts from nothing, and everything it built is thrown away at the end. A worker-mode server such as FrankenPHP keeps the application booted and hands it one request after another. That removes the boot from every request, and the safety net with it.

A value cached in a static property, a logger context that still carries the previous request's id, a transaction a failed request left open: in a long-running worker all of these survive into the next request. A test that sends one request does not see them. Real traffic does, which is why these bugs tend to be found in production.

slimfony/core is our attempt to make that failure mode boring. Version 1.0.0 was released on 2026-11-18. Here is what it is, the decisions behind it, what we measured and on what, what did not work out, and where its limits are.

What slimfony is

slimfony/core is a small, strict core for PHP 8.4+ microservices on FrankenPHP worker mode.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.