mardi 8 juin 2021

Is it a good idea to have wrapper/facade library for each microservice

Lets assume that I have A-Z microservices. Some of them are gRPC some are REST. Some of them need to get some data form the other synchronously.

It is a good idea to create class library for each microservice as a facade, and use them always for connection? If 5 microservices have to connect to A microservice, and A microservice changes I will need to update A contract in one place instead of 5.

What do you think about it?

(All microservices are in .NET, but I don't think it matters)

Aucun commentaire:

Enregistrer un commentaire