QuestionQ57

VerifiedDesigning integration solutions with Anypoint Platform

A marketing organization is developing a Mule application to handle campaign data. The Mule application will periodically look for a file at an SFTP location and process the file’s records. File sizes can range from 10 MB to 5 GB. Because vCore availability is limited, the Mule application is deployed on a single CloudHub worker/replica with a vCore size of 2.0.

The application must transform the file into different formats and send them to three separate downstream SFTP locations.

What is the most direct way to configure the SFTP operations or event sources to process the large files while supporting these deployment requirements?

Explanation

A file-stored repeatable stream supports multiple reads of the source content, allowing separate transformations and writes for the three downstream destinations. It also avoids retaining a multi-gigabyte file entirely in worker memory by buffering a limited portion in memory and storing larger stream content on disk. MuleSoft documents file-stored repeatable streaming as the default Mule 4 strategy for large streams and notes that it creates a temporary disk file when content exceeds the in-memory buffer.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!