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

Message brokers

A message broker is an architectural pattern for enabling application integrations via a message-driven paradigm. You can, for example, make a Python application and integrate it with another that is written in C (or Java). Integrations are vital to an enterprise where different applications are made to cooperate with each other.

Concurrent processing is obviously implied here. As the producers and consumers are completely decoupled (they don't even know if the others exist), the producer and consumer applications could even run on different machines, thereby overlapping the processing and increasing the overall throughput: 

Decoupling is really a central concept when you start thinking about concurrent systems. Designing systems consisting of loosely coupled component systems gives us many benefits. For example, we could reuse the components, which allows us to cut down on development and maintenance costs. It also paves the way for enabling greater concurrency. 

What happens when a consumer produces messages too fast? The messages will be buffered in the broker. This essentially means there is an inherent flow control mechanism at work here. A slow consumer can consume at its own pace. Likewise, the producer can produce messages at its own (faster) pace. As both are oblivious of each other, the overall system works smoothly.

主站蜘蛛池模板: 仁怀市| 克山县| 高青县| 伊宁县| 斗六市| 玉树县| 井研县| 荥阳市| 泰宁县| 舟曲县| 内乡县| 孙吴县| 米林县| 武川县| 吴堡县| 泰宁县| 墨江| 张家界市| 碌曲县| 贵溪市| 开远市| 南昌市| 陕西省| 花垣县| 灵石县| 曲水县| 梁山县| 七台河市| 佳木斯市| 卢龙县| 云和县| 浦城县| 上栗县| 稻城县| 营山县| 习水县| 长沙县| 宝丰县| 莆田市| 繁昌县| 汾西县|