Skip to Main Content

Client Configuration

Setting Zone Identification

In addition to identifying client zones through server-side configuration rules Broker Configuration▸, AutoMQ also supports clients specifying zone information. This can be achieved by appending automq_az=$zoneId to client.id, indicating the zone to which the client belongs. The client.id format is as follows:


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

On AWS, it is recommended to use zoneId instead of zoneName, as zoneId is consistent across all accounts.

Follower Fetching

Consumers can set zone identification via client.id. Additionally, for clients with versions greater than 2.4.0, the KIP-329 fetch from closest replicas feature can be utilized to configure zone affinity for consumption. The configuration method is as follows:


client.rack=$zoneId