Mรณdulo 27 ยท Design Patterns (All 23 GoF) โ Lecciรณn 12 de 23 ยท ~6 min
Proxy
A stand-in that controls access to the real object
Proxy is an object that fronts another object with the same interface, adding control: lazy loading, access checks, rate limiting, caching. A walker's photo is expensive to load โ a proxy defers loading until the first read, then delegates to the real subject.
Same interface as the real thing, but the proxy decides when and whether the real work happens.