How to execute efficient communication for multiple (micro)services?

对着背影说爱祢 提交于 2019-12-08 04:02:13

问题


Case: Software build with many microservices and internal services.

The doubt is how to manage performance issues (network latency, size of resource) getting multiple resources from many microservices at once.

I Just can not imagine making 20 HTTP requests to access all necessary resources.


回答1:


In order to reduce the number of requests made you might create a facade that encapsulates incoming API calls. This enables you to get rid of expensive network roundtrips.

Netflix blogged about a very similar challenge

http://techblog.netflix.com/2013/01/optimizing-netflix-api.html

http://techblog.netflix.com/2012/07/embracing-differences-inside-netflix.html



来源:https://stackoverflow.com/questions/35286730/how-to-execute-efficient-communication-for-multiple-microservices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!