1 Preface
A common use of proxy is as a lightweight proxy object, which allows the client to first access some cheap information or functions. When a user is willing to pay for the real and high-price membership status, the proxy opens the door to allow users to access more functions only available to paying members.
A specific design pattern is called AGENCY pattern.
2. Details
2.1 Brief Introduction
Provides a proxy for other objects to control access to this object.
2.2 proxy category
(1) remote proxy: provides a local representation of objects in different address spaces or networks.
(2) virtual proxy: creates heavy objects as needed.
(3) protection proxy: controls access to the original object based on various access permissions.
(4) smart-reference proxy: manages the memory by counting the real object references. It is also used to lock a real object so that other objects cannot be modified.
3 conclusion
The above is all content and I hope it will help you.