What it is not so good for

The proxy design pattern is pretty simple and really, there are no drawbacks that could be mentioned. As with every other design pattern, they should be used carefully and only when actually needed.

Get Scala Design Patterns - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.