Proxy Design Pattern

Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=YD38-BFvBIg



Duration: 4:25
1,725 views
18


Proxy Design Pattern Article : https://medium.com/@sean_bradley/proxy-design-pattern-84fcfd82c4be

Sometimes you just want to switch off your computer and read from a book. So, all GoF patterns are discussed in my Design Patterns In Python book
https://www.amazon.com/dp/B08XLJ8Z2J : ASIN B08XLJ8Z2J

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.

It is a wrapper called by a client to access the real underlying object.

Additional functionality can be provided at in the proxy abstraction if required. eg, caching, authorization, validation, lazy initialization, logging.

The proxy should implement the subject interface as much as practicable so that the proxy and subject appear identical to the client.

The Proxy Pattern may occasionally also be referred to as Monkey Patching or Object Augmentation

#python
#pythonDesignPatterns







Tags:
python
design patterns
proxy design pattern
B08XLJ8Z2J