[ ENTRY 0x02 · FRONTEND ]
Every production system has a dirty secret. It lies still for months — until traffic doubles, or a junior developer drops the wrong index.
Why Does Architecture Matter?
A small application does not need architecture. A large one cannot live without it. The problem is that nobody knows exactly where that line is until it was crossed long ago.
namespace App\Services; class UserService { public function findActive(): Collection { return $this->repo->activeUsers(limit: 100); } }
Dependency Inversion in Practice
The rule: high-level modules do not depend on low-level modules. Both depend on abstractions.
“The best code is the code that's easy to delete.” — Production lessons, chapter 9.
Cache as a Boundary
Cache is not an optimization. Cache is an architectural decision. Every cache key in Redis is a promise you just signed with future-you.
When to Stop
Every architecture has a cost. Architecture serves people — not the other way round.
“You do not need a perfect system. You need one that can be wrong and fixed fast.”