简体   繁体   中英

What is the name of this 'intermediary' pattern?

I've got an intermediary java web service application application (built using Spark Java - but that is incidental) that takes an http parameter - from it generates a URL - calls the URL and then returns the result to the original caller.

Original Client -> My Application -> Http Web Service Producer

This is kind of a MicroServices pattern - but I'm looking for a more specific term. I think it is a 'pipeline', 'solicitor' or a 'mediator'.

My question is: What is the name of this 'intermediary' pattern?

It is a API Gateway Pattern, which is commonly used when working with microservices architecture. This pattern hides all services from client allowing client to connect with a API Service. This API Service handle all request while do another stuffs like organize all requisition, for example.

The way this pattern handle requests is a example of Facade Pattern.

I recommend you to read links below to understand how this pattern works properly: http://microservices.io/patterns/apigateway.html

https://www.nginx.com/blog/building-microservices-using-an-api-gateway/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM