October 2017
Intermediate to advanced
210 pages
5h 32m
English
The proxy pattern can be used to solve numerous problems, but I find that I mainly use this pattern to solve one of two problems.
The first problem that I use the proxy pattern for is when I want to create a layer of abstraction between a single API and my code. The API could be a local or remote API, but I usually use this pattern to put an abstraction layer between my code and a remote service. This will allow changes to the remote API without the need to refactor large portions of the code base.
The second problem that I use the proxy pattern to solve is when I need to make changes to an API, but I do not have the code or there is already a dependency on the current API elsewhere in the application.
Read now
Unlock full access