
Proxy : Design Patterns in TypeScript
Design Patterns In TypeScript (book)
https://www.amazon.com/dp/B0948BCH24 : ASIN B0948BCH24
https://www.amazon.com/dp/B094716FD6 : ASIN B094716FD6
Documentation : https://sbcode.net/typescript/proxy/
The Proxy design pattern is a class functioning as an interface to another class or object.
A Proxy could be for anything, such as a network connection, an object in memory, a file, or anything else you need to provide an abstraction between.
This concept example will simulate a virtual proxy. The real subject will be called via the proxy. The first time the request is made, the proxy will retrieve the data from the real subject. The second time it is called, it will return the data from the proxies own cache which it created from the first request.
#proxyPattern
#typescriptProxy
#proxyPatternTypescript