What are the potential downsides of using the Proxy pattern?

The Proxy pattern's main downsides are the extra layer of indirection it introduces, which can add complexity and performance overhead, and the risk of misuse when it's applied in situations that don't actually need access control or lazy behavior.

Key Points

Example

Wrapping every simple data class in a proxy "just in case" adds indirection with no real benefit, whereas the overhead is justified for something like a remote proxy that genuinely needs to manage network calls.

public class ProxyDownsides {

    interface Greeter { String greet(String name); }

    static class SimpleGreeter implements Greeter {
        public String greet(String name) { return "Hello " + name; }
    }

    // Extra layer that adds nothing but indirection
    static class GreeterProxy implements Greeter {
        private final Greeter target = new SimpleGreeter();
        public String greet(String name) { return target.greet(name); }
    }

    public static void main(String[] args) {
        Greeter direct = new SimpleGreeter();
        Greeter proxied = new GreeterProxy();
        System.out.println(direct.greet("Asha"));
        System.out.println(proxied.greet("Asha"));

        // Another real pitfall: in Spring, a method calling another @Transactional
        // method on "this" bypasses the proxy, so the annotation is silently ignored.
        System.out.println("Same result, one more class to read and debug: "
                + direct.greet("x").equals(proxied.greet("x")));
    }
}

Output

Hello Asha

Hello Asha

Same result, one more class to read and debug: true

Interview Tip

A concise interview answer is

The main downsides of Proxy are the added indirection and potential performance overhead from routing every call through an extra layer, plus the risk of over-applying it to simple cases that don't actually need lazy loading, access control, or remote communication.

Last updated: 1 November 2026

Previous question: When would you use the Proxy pattern in real-world applications?

Next question: What is the Chain of Responsibility pattern and how does it work?

More Java Design Patterns interview questions

All Java Design Patterns questions