如何避免在层A/层B需要相同功能时创建重复的微服务?

huangapple go评论57阅读模式
英文:

how to avoid creating the duplicate microservice when there is an need of same functionality in layer A/ layer B

问题

I have single microservice, which is deployed in layer A, we copied the code and deployed it in Layer B to utilize the same, how I can achieve this with a single microservice without duplicating, what type of pattern I have to use?

英文:

i have single microservice , which is deployed in layer A , we copied the code and deployed it in Layer B to utilize the same, how i can achieve this with single microservice without duplicating, what type of pattern i have to use?

答案1

得分: 1

If I get what you really want, you probably looking for some kind of load balancing.
For this you may want to check this
Enjoy!

英文:

If I get what you really want, you probably looking for some kind of load balancing.
For this you may want to check this
Enjoy!

huangapple
  • 本文由 发表于 2020年7月28日 16:47:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/63130302.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定