Kafka consumer has client.rack property to make use of the rack awareness feature and consume from the closest replica, but why producer doesnt have the rack awareness feature.
How to make sure producer connects to an leader in the same data center, or connects to closest replica.