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

Channel types

Before starting with their implementation, let's first look at the following types of channels:

  • Point-to-point channel: A one-to-one relationship is maintained between producer and consumer. These channels deliver message to one and only one recipient. Even if more than one recipient is registered, messages will only be delivered to one of them. This channel type can be used in a parallel processing scenario, allowing multiple consumers to listen to the availability of messages in parallel, but the delivery of messages will be done to a single consumer only!
  • Publish-subscribe channel: These channels deliver messages to all of the subscribers who have registered on the channel, thus implementing a one-to-many relationship between producer and consumer. An analogy can be drawn as each subscriber has its own private channel, on which a copy of the message is delivered. As soon as it's consumed, it is discarded.

Let's get out of idioms and have a sneak peek at how Spring Integration provides support for all of these components—after all, this is a book on Spring Integration, isn't it!

主站蜘蛛池模板: 宣汉县| 乐至县| 东至县| 登封市| 新田县| 沂南县| 衡水市| 安多县| 许昌县| 天津市| 达州市| 博爱县| 隆林| 安乡县| 额敏县| 巴彦淖尔市| 板桥市| 古交市| 宜阳县| 德江县| 白水县| 图木舒克市| 睢宁县| 伊川县| 固原市| 芷江| 大名县| 南皮县| 景泰县| 安福县| 通山县| 麻城市| 乌兰县| 盖州市| 山丹县| 雅安市| 利津县| 临沭县| 临江市| 临湘市| 南皮县|