When people talk about scaling a PHP application, the discussion usually moves quickly toward infrastructure.
Redis.
Queues.
More servers.
Read replicas.
Containers.
Load balancers.
But infrastructure is only one part of the story.
A codebase that is difficult to reason about at small scale usually becomes more expensive to operate at large scale.
That is why I think scalability starts with coding principles long before it becomes an infrastructure problem.









