Skip to main content

Set Zone Identifier

In addition to configuring client Zone identification rules on the server-side (Server-side Configuration▸), AutoMQ also supports clients specifying Zone information. This is done by appending automq_az=$zoneId to the client.id to identify the client’s Zone. The client.id format is as follows:
client.id=automq_az=$zoneId&existing-client-id
On AWS, it is recommended to use the zoneId instead of the zoneName, as the zoneId is consistent across all accounts.

Follower Fetching

Besides setting the Zone identifier via client.id, clients with a version greater than 2.4.0 can also use the KIP-392: Allow consumers to fetch from closest replica feature to configure consumption Zone affinity. The configuration is as follows:
client.rack=$zoneId