- RabbitMQ Essentials
- Lovisa Johansson David Dossot
- 345字
- 2021-06-11 18:49:50
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.
推薦閱讀
- GitLab Cookbook
- 小程序實戰視頻課:微信小程序開發全案精講
- 單片機C語言程序設計實訓100例:基于STC8051+Proteus仿真與實戰
- Python 3網絡爬蟲實戰
- 假如C語言是我發明的:講給孩子聽的大師編程課
- 精通Python自然語言處理
- ASP.NET程序設計教程
- Mathematica Data Analysis
- 區塊鏈技術進階與實戰(第2版)
- Hands-On Neural Network Programming with C#
- PHP與MySQL權威指南
- Visual C++程序設計全程指南
- HTML5 Canvas核心技術:圖形、動畫與游戲開發
- Raspberry Pi Robotic Projects
- Mastering React Test:Driven Development