Pros and cons of proxy design pattern

It may sound repetitive, but the proxy design pattern is one of the simplest and most useful patterns we can apply in the microservices architecture. As positive points, we can point out the following:

  • Practical data consumption by the application clients
  • Ease of implementation
  • Possibility of good programming techniques at proxy level, such as caching
  • Encapsulation of access to microservices
  • Control and diversion of requests

However, the proxy design pattern can lead to some problems, especially when we are not aware of good practices. The following are the problems related to the proxy design pattern:

  • Bottleneck
  • Inappropriate change of response
  • Obstruction in the identification of overload

Like all ...

Get Microservice Patterns and Best Practices 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.