Skip to content

Blog

CQRS everywhere? No, only where it's useful

In many PHP projects, CQRS is applied systematically. Every operation goes through a Command or Query Bus, with handlers, middleware, and event dispatching. For a homepage that displays three statistics, that is pointless boilerplate.

CQRS is not the problem. Its systematic application is.

Have you ever read your framework's code?

Not the documentation. The code. The one that actually runs in your project.

If you use a "classic" framework, that code is hidden somewhere in vendor/. Abstract, distant, untouchable. When a new version ships with a breaking change, you deal with it. When a behavior does not suit you, you work around it. When you want to understand what is really going on, good luck.