> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 客户端配置

> Optimize Kafka-based cloud infrastructure with AutoMQ: Enjoy cloud-native scalability, cost efficiency, and seamless Zone configuration for elevated data management.

## 设置 Zone 标识

除了通过服务端配置客户端 Zone 的识别规则[服务端配置▸](/zh/automq/eliminate-inter-zone-traffics/broker-configuration)，AutoMQ 同样支持客户端指定 Zone 信息，通过在  `client.id` 里追加  `automq_az=$zoneId`  来标识客户端所属的 Zone。 `client.id`  格式如下：

```properties theme={null}

client.id=automq_az=$zoneId&existing-client-id

```

<Tip>
  在 AWS 上建议使用 [zoneId](https://docs.aws.amazon.com/ram/latest/userguide/working-with-az-ids.html) 而不是 zoneName，zoneId 对所有账号都是一致的。
</Tip>

## Follower Fetching

Consumer 除了可以通过  `client.id`  来设置 Zone 标识以外，版本大于 2.4.0 的客户端还可以利用 [KIP-392: Allow consumers to fetch from closest replica](https://cwiki.apache.org/confluence/display/KAFKA/KIP-392%3A+Allow+consumers+to+fetch+from+closest+replica) 特性来配置消费的 Zone 亲和性。配置方式如下：

```properties theme={null}

client.rack=$zoneId

```
