Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 549 Bytes

File metadata and controls

7 lines (4 loc) · 549 Bytes

Proxy is a structural design pattern that provides an object that acts as a substitute for a real service object used by a client. A proxy receives client requests, does some work (access control, caching, etc.) and then passes the request to a service object.

The proxy object has the same interface as a service, which makes it interchangeable with a real object when passed to a client.

Further Reading

https://refactoring.guru/design-patterns/proxy/typescript/example