# ClientMessagingOptions.ClientSenderBuckets

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.clientmessagingoptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.clientmessagingoptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/ClientMessagingOptions.cs)

```csharp
public int ClientSenderBuckets
```

Gets or sets the total number of grain buckets used by the client in client-to-gateway communication protocol. In this protocol, grains are mapped to buckets and buckets are mapped to gateway connections, in order to enable stickiness of grain to gateway (messages to the same grain go to the same gateway, while evenly spreading grains across gateways). This number should be about 10 to 100 times larger than the expected number of gateway connections. If this attribute is not specified, then Math.Pow(2, 13) is used.
