---
title: "Data subscriptions: Configuration"
description: "Configure data subscription behavior on a RavenDB server: the default processing of archived documents and the maximum number of concurrent subscription connections per database."
url: "https://docs.ravendb.net/7.2/data-subscriptions/configuration"
version: "7.2"
---

# Data subscriptions: Configuration

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

## Data subscriptions: Configuration

> **Note**
>
> Use the configuration keys listed below to set data subscription options.  
> Learn how to apply these keys in the [Configuration Overview](https://docs.ravendb.net/7.2/server/configuration/configuration-options.md) article.
>
> - On this page:
>   - [Configuration keys](#configuration-keys)
>     - [Subscriptions.ArchivedDataProcessingBehavior](#subscriptionsarchiveddataprocessingbehavior)
>     - [Subscriptions.MaxNumberOfConcurrentConnections](#subscriptionsmaxnumberofconcurrentconnections)

## Configuration keys {#configuration-keys}

The following keys control data subscription behavior. Each can be set server-wide or per database.

### Subscriptions.ArchivedDataProcessingBehavior

The default processing behavior of data subscriptions for archived documents.  
A subscription applies this behavior **in addition** to the subscription's query, so the query cannot select documents that the behavior excludes.  
e.g., if a subscription's processing behavior is `ExcludeArchived` and the subscription's query selects only archived documents,
the subscription sends no documents to the worker.

- **Type**: `enum ArchivedDataProcessingBehavior`:
  - `ExcludeArchived`: the subscription selects only non-archived documents.
  - `IncludeArchived`: the subscription selects both archived and non-archived documents.
  - `ArchivedOnly`: the subscription selects only archived documents.
- **Default**: `ExcludeArchived`
- **Scope**: Server-wide or per database

> **Note**
>
> - A subscription takes this key's value when the subscription is created, unless you set the subscription's own handling of archived documents (see [Client API](https://docs.ravendb.net/7.2/data-subscriptions/creating-subscription/creating-subscription_api.md#archived-documents) or [Studio](https://docs.ravendb.net/7.2/data-subscriptions/creating-subscription/creating-subscription_studio.md#defining-the-subscription-task)).  
>   A later change to the key does not affect existing subscriptions.
> - A subscription to [document revisions](https://docs.ravendb.net/7.2/data-subscriptions/revisions-support.md) **ignores** this key and sends the revisions of archived and non-archived documents alike.
> - On a [sharded database](https://docs.ravendb.net/7.2/sharding/subscriptions.md#unsupported-features), all subscriptions use this behavior, and a subscription's own setting has no effect.  
>   Unlike on a non-sharded database, a later change to the key **does** affect existing subscriptions.

### Subscriptions.MaxNumberOfConcurrentConnections

The maximum number of concurrent subscription connections allowed per database.

- **Type**: `int`
- **Default**: `1000`
- **Scope**: Server-wide or per database
