# DurableMessagingOptions.MaxCapacity

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.configuration.durablemessagingoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.configuration.durablemessagingoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Messaging/Configuration/DurableMessagingOptions.cs)

```csharp
public int MaxCapacity
```

Gets or sets the maximum number of pending inbox messages. When this limit is reached, new deliveries return [Backpressured](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.deliveryresult.backpressured/).

### Value

The maximum inbox capacity. Must be greater than zero. Defaults to 1000.
