# Stream Avro File Reader

The **Stream Avro File Reader** connector allows you to read Avro files triggering subpipelines to process each message individually. The connector should be used for large files.

Avro is a popular data serialization framework utilized within the Hadoop Big Data ecosystem, known for its schema evolution support and compactness. For more information, [see the official website](https://avro.apache.org/).

## **Parameters**

Take a look at the configuration parameters of the connector. Parameters supported by [Double Braces expressions](https://docs.digibee.com/documentation/connectors-and-triggers/double-braces/overview) are marked with `(DB)`.

### **General Tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>File Name</strong> <code>(DB)</code></td><td>The file name of the Avro file to be read.</td><td>{{ message.fileName }}</td><td>String</td></tr><tr><td><strong>Parallel Execution</strong></td><td>Occurs in parallel with loop execution.</td><td>false</td><td>Boolean</td></tr><tr><td><strong>Fail On Error</strong></td><td>If the option is active, the execution of the pipeline with an error will be interrupted. Otherwise, the pipeline execution proceeds, but the result will show a false value for the <code>"success"</code> property.</td><td>false</td><td>Boolean</td></tr></tbody></table>

### **Documentation Tab**

<table data-full-width="true"><thead><tr><th>Parameter</th><th>Description</th><th>Default value</th><th>Data type</th></tr></thead><tbody><tr><td><strong>Documentation</strong></td><td>Section for documenting any necessary information about the connector configuration and business rules.</td><td>N/A</td><td>String</td></tr></tbody></table>

{% hint style="info" %}
A compressed Avro file generates JSON content larger than the file itself when read. You must check if the pipeline has enough memory to handle the data, since it will be stored in the pipeline's memory.
{% endhint %}

## **Usage examples**

### **Reading Avro file**

* **File Name:** file.avro
* **Parallel:** deactivated

**Output:**

```
{
	"total": 1000,
	"success": 1000,
	"failed": 0
}

```

If the lines have been processed correctly, their respective subpipelines return { `"success": true }` for each individual line.
