mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 20:59:07 +00:00
4108f86177
* Changed database implementation. Removed static objects. * Fix Logs * Fix 40 errors from checkstyle plugin run. 139 left)) * Fix CacheStore errors from checkstyle plugin 107 left * Fix last errors in checkstyle. * Fix sonar issues * Fix issues in VALIDATE phase * Fix Bug with mongo connection. Used "Try with resources" * Add test * Added docker-compose for mongo db. MongoDb db work fixed. * Provided missing tests * Comments to start Application with mongo. * Fix some broken links * Remove extra space * Update filename * Fix some links in localization folders * Fix link * Update frontmatters * Work on patterns index page * Work on index page * Fixes according PR comments. Mainly Readme edits. * fix frontmatter * add missing png * Update pattern index.md * Add index.md for Chinese translation * update image paths * update circuit breaker image paths * Update image paths for localizations * add generated puml * Add missing image * Update img file extensions * Update the rest of the EN and ZH patterns to conform with the new website Co-authored-by: Victor Zalevskii <zvictormail@gmail.com>
30 lines
1.3 KiB
Markdown
30 lines
1.3 KiB
Markdown
---
|
|
title: EIP Splitter
|
|
category: Integration
|
|
language: en
|
|
tags:
|
|
- 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
|
|

|
|
|
|
## 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
|
|
|
|
* [Gregor Hohpe, Bobby Woolf - Enterprise Integration Patterns](http://www.enterpriseintegrationpatterns.com/patterns/messaging/Sequencer.html)
|
|
* [Apache Camel - Documentation](http://camel.apache.org/splitter.html)
|
|
* [Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions](https://www.amazon.com/gp/product/0321200683/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0321200683&linkCode=as2&tag=javadesignpat-20&linkId=122e0cff74eedd004cc81a3ecfa623cf)
|