Skip to content

Commit 0aa84e3

Browse files
author
adkm
committed
iluwatar#173 Pattern description
1 parent 767f41a commit 0aa84e3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

eip-splitter/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,22 @@ tags:
1111
---
1212

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

20+
![alt text](./etc/sequencer.gif "Splitter")
1521

1622
## Applicability
23+
Use the Splitter pattern when
1724

25+
* You need to split received data into smaller pieces to process them individually
26+
* You need to control the size of data batches you are able to process
1827

1928
## Credits
2029

30+
* [Gregor Hohpe, Bobby Woolf - Enterprise Integration Patterns](http://www.enterpriseintegrationpatterns.com/patterns/messaging/Sequencer.html)
31+
* [Apache Camel - Documentation](http://camel.apache.org/splitter.html)
32+

eip-splitter/etc/sequencer.gif

2.24 KB
Loading

0 commit comments

Comments
 (0)