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

Exploring the benefits of message queuing

Communication between various applications plays an important role in distributed systems. There are many examples of when a message queue can be used, so let's highlight some features and benefits of message queuing in microservice architectures:

  • Development and maintenance made easier: Dividing an application across multiple services allows separate responsibilities and gives developers the freedom to write code for a specific service in any chosen language. It will be easier to maintain written code and make changes to the system; when updating a single authentication scheme, only the authentication module must have code added for testing, without it disrupting any other functions.
  • Fault isolation: A fault can be isolated to a single module and will thereby not affect other services. For example, an application with a reporting service temporarily out of function will not affect the authenticate or payment services. As another example, making changes to the reporting service still allows customers to perform essential transactions, even when they aren't able to view reports.
  • Enhanced levels of speed and productivity: Different developers are able to work on different modules at the same time. In addition to speeding up the development cycle, the testing phase is also impacted by the use of microservices and message queues. This is because each service can be tested on its own to determine the readiness of the overall system.
  • Improved scalability: Microservices also allow for effortless scale-out at will. It's possible to add more consumers if the message queue is growing. Adding new components to just one service is easy to do without changing any other service.
  • Easy to understand: Since each module in a microservice architecture represents a single functionality, getting to know the relevant details for a task is easy. For example, hiring a consultant for a single service does not require them to understand the entire system.

Now that is enough knowledge to be dangerous, so it is a good time to dive into the RabbitMQ scenario company that sets the scene for the rest of this book.

主站蜘蛛池模板: 泊头市| 从化市| 广德县| 商水县| 武夷山市| 房产| 昌乐县| 松江区| 淅川县| 彭水| 佛山市| 盈江县| 泉州市| 四川省| 沙河市| 建德市| 庆云县| 灵山县| 尼木县| 济阳县| 宁国市| 永吉县| 沁阳市| 新丰县| 灌南县| 尼玛县| 璧山县| 治多县| 泾川县| 天柱县| 五华县| 东平县| 和林格尔县| 原阳县| 芮城县| 区。| 延安市| 新津县| 海门市| 阿图什市| 即墨市|