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 appendingautomq_az=$zoneId
to client.id
, indicating the zone to which the client belongs. The client.id
format is as follows:
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 viaclient.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: