---
schema_version: "1"
id: 2a33b758aa6a243cf09abac94f3ad342265989c44d7bb0129272aef94e590dab
title: Streaming Strategy Reference
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-runtime/4.6/streaming-strategies-reference.md
canonical_url: https://docs.mulesoft.com/mule-runtime/4.6/streaming-strategies-reference
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 5f76a78e8059d880f07cab34375f6939895b110de8114695d821d96efc457238
description: MuleSoft Documentation Site
release: "4.6"
latest: false
---
---
product: Mule Runtime
version: 4.6
---

# Streaming Strategy Reference

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

You can use the default streaming strategy settings or configure them for your needs. See
[Streaming in Mule Apps](https://docs.mulesoft.com/mule-runtime/4.6/streaming-about) for more details on these strategies.

## Repeatable In-Memory Stream Reference

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Parameter Name</th><th>Is required?</th><th>Expressions</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><p><code>initialBufferSize</code></p></td><td><p>No</p></td><td><p>No</p></td><td><p>512</p></td><td><p>Amount of memory allocated to consume the stream and provide random access to it. If the stream contains more data than fits into this buffer, the memory expands according to the <code>bufferSizeIncrement</code> attribute, with an upper limit of <code>maxInMemorySize</code>.</p></td></tr><tr><td><p><code>bufferSizeIncrement</code></p></td><td><p>No</p></td><td><p>No</p></td><td><p>512</p></td><td><p>Amount to expand the buffer size if the size of the stream exceeds the initial buffer size. Setting a value of zero or lower indicates that the buffer does not expand and that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer is full.</p></td></tr><tr><td><p><code>maxInMemorySize</code></p></td><td><p>No</p></td><td><p>No</p></td><td><p>1024</p></td><td><p>Maximum amount of memory to use. If the size of the stream exceeds the maximum, a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised. A value lower or equal to zero means no limit. Defaults to 1024</p></td></tr><tr><td><p><code>bufferUnit</code></p></td><td><p>No</p></td><td><p>No</p></td><td><p>KB</p></td><td><p>The unit in which all these attributes are expressed. Possible values: BYTE, KB, MB, GB.</p></td></tr></tbody></table>

### File-Stored Input Stream

File storage is only available in Mule Enterprise Edition (Mule EE).

<table><colgroup><col> <col> <col> <col> <col></colgroup><thead><tr><th>Parameter Name</th><th>Is required?</th><th>Expressions</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><p><code>inMemorySize</code></p></td><td><p>No</p></td><td><p>No</p></td><td><p>512</p></td><td><p>Defines the maximum memory size for the stream to keep data in memory. If more than the configured amount is consumed, the strategy starts to buffer the content on disk.</p></td></tr><tr><td><p><code>bufferUnit</code></p></td><td><p>No</p></td><td><p>No</p></td><td><p>KB</p></td><td><p>The unit in which all these attributes are expressed. Possible values: BYTE, KB, MB, GB.</p></td></tr></tbody></table>

## See Also

- [Streaming in Mule Apps](https://docs.mulesoft.com/mule-runtime/4.6/streaming-about)
