jeudi 14 novembre 2019

Should microserivce has operations that only forward operation to another microservice?

Say if we have two microservice info-manage and file-service, if our user want to upload a file about userInfo to database. Should the request be routed by gateway directly to file-service or info-manage? From cohesion perspective, all other info was handled by info-manage service, its makes more sense that info-manage handles the uploading request and simply forward the request to file-service. From performance perspective, thats was totally waste of bandwidth and cpu.

Aucun commentaire:

Enregistrer un commentaire