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

Advantages of microservices

Now let's try to quickly understand where microservices takes a leap ahead of the SOA and monolithic architectures:

  • Cost effective to scale: You don't need to invest a lot to make the entire application scalable. In terms of a shopping cart, we could simply load balance the product search module and the order-processing module while leaving out less frequently used operation services, such as inventory management, order cancellation, and delivery confirmation.
  • Clear code boundaries: This action should match an organization's departmental hierarchies. With different departments sponsoring product development in large enterprises, this can be a huge advantage.
  • Easier code changes: The code is done in a way that it is not dependent on the code of other modules and is only achieving isolated functionality. If it were done right, then the chances of a change in a microservice affecting another microservice are very minimal.
  • Easy deployment: Since the entire application is more like a group of ecosystems that are isolated from each other, deployment could be done one microservice at a time, if required. Failure in any one of these would not bring the entire system down.
  • Technology adaptation: You could port a single microservice or a whole bunch of them overnight to a different technology without your users even knowing about it. And yes, hopefully, you don't expect us to tell you that you need to maintain those service contracts, though.
  • Distributed system: This comes as implied, but a word of caution is necessary here. Make sure that your asynchronous calls are used well and synchronous ones are not really blocking the whole flow of information. Use data partitioning well. We will come to this a little later, so don't worry for now.
  • Quick market response: The world being competitive is a definite advantage; as otherwise, users tend to quickly lose interest if you are slow to respond to new feature requests or adoption of a new technology within your system.
主站蜘蛛池模板: 宜宾县| 南澳县| 民勤县| 石狮市| 大宁县| 大英县| 皮山县| 汉阴县| 和静县| 青龙| 建湖县| 南安市| 丰原市| 宜宾市| 金华市| 镶黄旗| 南郑县| 文昌市| 双峰县| 卓资县| 平舆县| 高陵县| 崇州市| 和林格尔县| 台北市| 太仆寺旗| 绵阳市| 霸州市| 阿拉善左旗| 揭东县| 鱼台县| 尤溪县| 伊春市| 木兰县| 鄂托克旗| 图木舒克市| 余庆县| 石林| 鲁甸县| 高州市| 阿瓦提县|