I want to make a microservice project including some microservices like : page , order , products and etc I have two questions about that :
1 . I want to know if it is a good idea to reuse the same microservice in different projects and store multiple websites data in one microservie and retrive corresponding data by the project token ?
For example we have website A and website B and share their data in the same microservice database and products microservice holds website A and website B products.
2 . If reusing microservice is a good idea the problem may occur is maybe there is some slight changes in website A and website B products. Should I rewrite another microservice for website B or write product microservice generic so it can handle diffrent types of products
dimanche 27 novembre 2016
Share microservices between diffrent projects
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire