官术网_书友最值得收藏!

Challenges of implementing microservices

The challenges that encompass implementing microservice architecture can be summarized in one phrase: distributed system.

Is the functionality that you will implement will use a bunch of services throughout a network. You will have to deal with network delays and failures. What if the response is not immediate? Is the target service down or busy? How should we find out, and what we should do about it?

Should the data belong to one microservice? Easier said than done. We can make the database underlying the service consistent, but how do we propagate this information to other services that rely on this data?

Also, it is nice that each team can work independently, but what if we really need to implement cross-service functionality? That can become a pain: a cross-team endeavor that may introduce large architectural changes and substantially impact the whole architecture.

Let's assume that we managed to deal with the preceding problems and have a running system. What happens when an error occurs? We will have to analyze logs scattered around a number of services, also tracing network interactions between all of them.

So, how should you decide whether the microservice architecture is suitable for your application?

主站蜘蛛池模板: 德安县| 益阳市| 舒城县| 荣成市| 来凤县| 无极县| 西宁市| 鸡西市| 张北县| 城市| 乌拉特中旗| 平顺县| 海宁市| 绥滨县| 无棣县| 阿拉善左旗| 潼南县| 方城县| 高平市| 万年县| 从江县| 南郑县| 侯马市| 铁岭市| 海城市| 波密县| 游戏| 黄陵县| 黔江区| 咸丰县| 芮城县| 镇巴县| 西充县| 新津县| 靖安县| 日照市| 濮阳县| 琼海市| 丰宁| 石嘴山市| 庆元县|