lundi 18 mai 2020

Is the facade design pattern only concerned with classes/modules or actual API calls too?

I think I understand the purpose of the facade design pattern- to provide an interface to a client that simplifies and abstracts a complex system allowing them to more easily perform a specific task.

but the first thing I think of is a microservices style system that has many apis with each having a specific purpose and functionality.

If I create another API (microservice) that makes calls on behalf of the client to a couple of the other APIs and abstracts the multiple APIs calls to just one call, simplifying the APIs' specific usage away to make it easier for the client to do something, is that a facade too?

Or maybe a facade would not make APIs call but import the modules used by the other APIs to get their functionality?

I want to know if "facade" is the correct pattern here or if there is a more specific pattern for abstracting multiple REST API calls in a complex system.

Aucun commentaire:

Enregistrer un commentaire