Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

configConsumer behaviorAdminClient behaviorDescription

client.dns.lookup, 

bootstrap.servers

use ClientUtils.parseAndValidateAddresses to get InetSocketAddress of broker,

and to sendMedatataRequest to the broker.

use ClientUtils.parseAndValidateAddresses to get InetSocketAddress of broker,

and to send MedatataRequest to the broker.


Both clients will take the same action
default.api.timeout.msThe consumer will retry until the timeout is reached

The AdminClient will retry until the timeout is reached

or the number of retries exceeds the limit

AdminClient does the same with Consumer since the default of `retries` is In Integer.MaxValue

and have the same default timeout value  

request.timeout.ms

Used by NetworkClient for individual rpcs to await

acknowledgment from servers


Used by KafkaAdminClient to decide whether each Call  is timeout,

and the timeout for NetworkClient is 3600000

There is a small difference wheras the result are the same.

connections.max.idle.ms,

reconnect.backoff.ms,

reconnect.backoff.max.ms,

send.buffer.bytes,

receive.buffer.bytes,

socket.connection.setup.timeout.ms,

socket.connection.setup.timeout.max.ms

Used to construct NetworkClientUsed to construct NetworkClientBoth clients will take the same action

retry.backoff.ms

The amount of time to wait before attempting to retry a failed

ListOffsetsRequest rpc and MetadataRequest rpc

The amount of time to wait before attempting to retry a failed

ListOffsetsRequest rpc and MetadataRequest rpc

Both clients will take the same action

client.id

just an identifier and are hardcoded to GetOffsetShelljust an identifier and are hardcoded to GetOffsetShellBoth clients will take the same actionhave no impact

metadata.max.age.ms

The period of time to evict metadata cache for `ConsumerMetadata`

The period of time to evict metadata cache for `AdminMetadataManager`There may be difference in implementation details, the metadata cache will have the same expire time.

metric.reporters, 

and all other metric releated configs

Used to get client metricsUsed to get client metricshave no impactBoth clients will take the same action

security.protocol,

and all other security related configs

Used to establish security connectionUsed to establish security connectionBoth clients will take the same action
retriesConsumer will retries until default.api.timeout.ms is reacheddefault value is Integer.MaxValue

The AdminClient will act the same with Consumer by default, and we can set a config to control how many

times we can retry

...