My recommendation: Use Normal Batch Processing in Mule 4 with customize block size, with single Batch scope Batch has a lot capability starting from serialization to streaming , I am assuming you have huge reco
From the Mule palette, search for and insert a “Batch Job” action after the Set Variable step we just configured. It should look something like the batch job image above. In the configuration pane for this step, set the “Batch Block Size” to 500. There should already be a “Batch_...
at com.mulesoft.mule.runtime.module.batch.internal.engine.DefaultBatchJobInstanceStore.store(DefaultBatchJobInstanceStore.java:101) at com.mulesoft.mule.runtime.module.batch.internal.engine.DefaultBatchEngine.createNewJobInstance(DefaultBatchEngine....