Bufferize operations with EIP

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (5)

View Page History
h2. Overall solution

In this case, let us call call a simple operation, "AddIntegers" on a service "MathOperations". This operation takes <integer1> and <integer2> parameters, both with an integer value,&nbsp; and returns the sum of the two integers.
We want to call the operation "AddIntegers" on a service "MathOperations", using a buffer. This operation needs two integer parameters, <integer1> and <integer2>, and&nbsp; returns their sum.

We will first use the EIP pattern "Aggregator", chained with the EIP "Splitter". Aggregator bufferize messages, until receiving a trigger message. Then he sends one single message aggregating all bufferized messages, to the next service. Then we will split back all messages, to be readable by "AddIntegers" operation, using the EIP pattern Splitter.
We will send messages to an EIP pattern "Aggregator". It will bufferize all messages, until he gets a trigger message. Then it sends the whole buffer, aggregated in one single message, to the next service, EIP Splitter. It will split back the aggregated message into several messages, and send them to the next step, "AddIntegers" operation, to process all messages.



h2. Petals Settings and Messages Flows