What is the expected output from the Logger component?

Refer to the exhibit.

The Batch Job processes, filters and aggregates records,.

What is the expected output from the Logger component?
A . [10. 20, 30. 40, 50, 60]
B . [10. 20] [30, 40] [50, 60]
C . [20, 40, 60]
D . [20. 40] [60]

Answer: D

Explanation:

* Batch scope has filter criteria which says paylod mod 2 = 0 whch means only 2, 4 and 6 will be in batch scope.

* So payload for each of these will be incremented by 10.

* Aggregator has batch size defined as 2. So it will process in batch of two records.

* Hence option 3 is correct answer.

[20,40]

[60]

Behavior with aggregator configured with fixed size

In this scenario, the batch step sends the processed records to an aggregator, which starts processing the records and buffering them until the configured aggregator’s size is reached. After that, the aggregator sends the aggregated records to the stepping queue.

The batch job builds record blocks of the configured block size and sends them to their corresponding batch step for processing. Each batch step receives one or more record blocks and starts processing them in parallel. After the batch step processes a record, the batch step sends the record to the aggregator for further processing. The aggregator continues processing records until the number of

aggregated records reaches the configured aggregator’s size. https://docs.mulesoft.com/mule-runtime/4.3/batch-processing-concept

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments