1 Star 0 Fork 0

wangkun1992/java-design-patterns

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
layouttitlefolderpermalinkcategoriestags
patternEIP Splittereip-splitter/patterns/eip-splitter/Integration
Enterprise Integration Pattern

Intent

It is very common in integration systems that incoming messages consists of many items bundled together. For example an invoice document contains multiple invoice lines describing transaction (quantity, name of provided service/sold goods, price etc.). Such bundled messages may not be accepted by other systems. This is where splitter pattern comes in handy. It will take the whole document, split it based on given criteria and send individual items to the endpoint.

Diagram

alt text

Applicability

Use the Splitter pattern when

  • You need to split received data into smaller pieces to process them individually
  • You need to control the size of data batches you are able to process

Credits

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangkun1992/java-design-patterns.git
git@gitee.com:wangkun1992/java-design-patterns.git
wangkun1992
java-design-patterns
java-design-patterns
master

搜索帮助