Is the configuration of kafka set on the code client or on the Kafka side?

RT.
now some kafka clients, whether java, python or go, provide the configuration of setting kafka at the client side and code level. However, kafka has its own configuration files. I would like to ask which one will prevail, and if there is a conflict between the two configurations, which one will prevail?

for example, if a configuration item in producer is an acks, client, it is set in the code first, and then this setting is included when sending request. If acks is configured with another option in the producer.proporties file on the kafka side, which option will prevail at this time?

Thank you

Mar.24,2021

is not the same thing. The producer.properties configuration file on the kafka server is not directly used by the kafka service, but by other tools (there are other tools in the bin directory). These tools are essentially a client, so there is no conflict between the two sides

.
Menu