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

# 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.11/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.11/streaming-about)
