English 中文(简体)
Proxy
  • 时间:2024-11-05

Microservices Design Patterns - Proxy


Previous Page Next Page  

Problem Statement

Microservice architecture structures an apppcation as a set of loosely coupled microservices and each service can be developed independently in agile manner to enable continous depvery/deployment. When a large, complex apppcation is to be built using microservice architecture, we often need to prepare a unified interface which can do the common work pke authentication and authorization before each service call.

Solution

Proxy microservice pattern is a variation of the aggregator model. In this model we will use proxy module instead of the aggregation module. Proxy service may call different services inspanidually.

Proxy Pattern

In Proxy pattern, we can build one level of extra security by providing a dump proxy layer. This layer acts similar to the interface.

Advantages

    Proxy pattern provides a uniform interface instead of different interface per microservice.

    Proxy pattern allows to apply uniform concerns pke logging, security etc at one place.

Advertisements