AutoMQ offers cloud-native scalability, Kafka compatibility, and zero partition fees, enhancing performance and cost efficiency. Learn to optimize Kafka client configs for better throughput and reliability.
Resource Allocation Management
Recommendation 1: Set the Topic partition count appropriately to avoid throughput bottlenecks and wastage
The number of Kafka Topic partitions affects the production and consumption throughput a Topic can support. To ensure message order, messages with the same partition key are sent to the same partition, and each Kafka partition can only be processed by one consumer.AutoMQ is built on object storage, which, compared to Apache Kafka’s local file architecture, can support several times the partition performance under the same cluster scale. Additionally, AutoMQ does not charge for partitions.When allocating partitions using AutoMQ, there’s no need to consider costs. You only need to evaluate the appropriate number of partitions based on the estimated partition throughput performance (AutoMQ’s single partition write throughput limit is 4MB/s) to avoid having to expand partitions later when business volume increases. The number of partitions does not need to be a multiple of the number of nodes, as AutoMQ will automatically balance the partitions.
Example:An application estimates that the Topic data write throughput will be about 100MB/s within the next year, while the downstream consumers can each handle a maximum of 2MB of data per second.When allocating partitions, you need to consider:Based on the producer’s perspective, 100MB/s ÷ 4MB/s = 25 partitions are required.Based on the consumer’s perspective, 100MB/s ÷ 2MB/s = 50 consumers are needed, and 50 consumers require at least 50 partitions.Therefore, at least 50 partitions need to be allocated to meet the application’s requirements.
Recommendation 2: For platform-based application scenarios, enable ACL to achieve strict upstream and downstream access control
In platform-based scenarios, such as real-time computing platforms, it is recommended to enable ACL when using Kafka to achieve fine-grained resource control. Once resource control is enabled, Kafka clients must authenticate to access specific Topics and Groups. The benefits of this approach are as follows:
It prevents business parties from arbitrarily creating new Topics and other resources, which can lead to resource abuse and governance issues.
It helps avoid subscription chaos and impacts on load balancing caused by different business parties sharing Consumer Groups.
By identifying Topics and Consumer Groups, it becomes easier to identify related subscribers and upstream and downstream business groups, facilitating business governance.
Producer Application
Recommendation 1: For Kafka Producer clients version 2.1 or lower, set the retry count
Producer applications need to check the SDK version. If the current version is less than 2.1, it is necessary to manually set the retry count to ensure automatic retries in case of message send failures. This helps avoid failures caused by server maintenance, self-balancing, etc.Retry parameter settings can be referenced as follows:
// Maximum retry countretries=Integer.MAX_VALUE // Initial backoff delay timeretry.backoff.ms=100// Maximum backoff delay timeretry.backoff.max.ms=1000// RPC timeout for each send requestrequest.timeout.ms =30000// The total timeout for the entire send call. If this time is exceeded, no further retries will be made, and an exception will be returned to the caller.delivery.timeout.ms=120000
Recommendation 2: Optimize the batch parameters of the Producer to avoid excessive QPS consumption by fragmented requests
Kafka is a stream storage system designed for high throughput scenarios. The most typical use case for Kafka is to improve the efficiency and throughput of data transmission through batching. In the process of sending messages by the Producer, it is necessary to set the batching parameters reasonably to avoid the following situations:
Avoid sending only one message per request: If the Producer sends only one message per request, it will generate a large number of Produce requests, consuming server-side CPU and degrading cluster performance.
Avoid setting excessively long batching wait times: When setting batch parameters, the Producer needs to set a reasonable wait time to avoid delays in sending messages due to incomplete batching in low-traffic scenarios.
Specific batch parameter settings are as follows:
// Batch size, up to 128KB of data can be accumulated at a time.batch.size=131072// Batch linger time, for the Producer, if the batch limit is not reached within the specified time, sending will also be triggered. This time represents the maximum delay for sending.linger.ms=10
Recommendation 3: Set ack=all to ensure message durability before responding
Producers can adjust the ack parameter to balance between data durability and sending latency:
ack=all (default value): The server responds to the client only after the data has been persisted to cloud storage. In the event of a server crash, successfully acknowledged messages will not be lost.
ack=1: In alignment with Apache Kafka®, the AutoMQ server responds to the client immediately after the message is received in memory. If the server crashes, messages that haven’t been persisted will be lost.
It is recommended for producers to maintain the default configuration of ack=all to ensure data reliability.
AutoMQ achieves message durability and reliable storage using object storage, and the server does not produce ISR replica copies. Setting ACK=ALL handles traffic as if writing a single piece of data (synchronous persistence).
Consumer Application
Recommendation 1: For consumers using the Assign mode, upgrade to version 3.2 or above to ensure offset commit success
When a Kafka Consumer application consumes messages using the Assign mode, i.e., self-assigning partition load balancing mode, it is necessary to ensure that the SDK version is upgraded to version 3.2 or above. This is because earlier versions have a defect in the Assign mode where committed consumer offsets are not updated promptly, resulting in consumers failing to commit and update offsets in a timely manner. For detailed defect records, refer to Kafka Issue KAFKA-13563.
Recommendation 2: Control the Consumer heartbeat timeout and messages polled per poll to avoid frequent rebalancing
Kafka Consumers are grouped and load-balanced through the same Group Id. If a single consumer experiences a heartbeat timeout, it will be expelled from the consumer group, and the remaining consumers will undergo self-balancing to reassign partitions.In production scenarios, program parameter errors that lead to unexpected heartbeat timeouts and self-balancing should be avoided; otherwise, it will cause the consumer group to keep changing and fail to consume messages.Causes of unexpected self-balancing:
Client versions before v0.10.2: Consumers did not have an independent thread to maintain the heartbeat. Instead, heartbeat maintenance was coupled with the poll interface. As a result, if the user’s consumption is delayed, it leads to a Consumer heartbeat timeout, triggering self-balancing.
Client versions v0.10.2 and later: If the consumption time is too slow and exceeds a certain period (set by max.poll.interval.ms, default is 5 minutes) without polling for messages, the client will voluntarily leave the queue, triggering self-balancing.
Optimization Recommendations:Upgrade the client to version 0.10.2 or above.Adjust the parameter values according to the following instructions:Increase the client’s consumption speed as much as possible to avoid lag.Try to avoid having a single Consumer Group subscribe to a large number of Topics. Aim for a dedicated Consumer Group to subscribe to a dedicated Topic.
Recommendation 3: In production scenarios, commit the Consumer offset, but avoid committing offsets too frequently
When consuming messages using Kafka, whether you use the standard Kafka Consumer SDK or frameworks like Flink Connector, it is advisable to commit consumer offsets. This allows you to monitor consumption lag and mitigate risks.There are two ways to commit consumer offsets: automatic and manual. The controlling parameter is:
enable.auto.commit: Whether to use the automatic offset commit mechanism. The default value is true, indicating that the automatic commit mechanism is used by default.
auto.commit.interval.ms: The interval for auto-committing offsets. The default value is 1000, which is 1 second.
The combination of these two parameters means that before each poll, the client will check the time since the last offset commit. If the elapsed time exceeds the value set by auto.commit.interval.ms, the client will initiate an offset commit action.Therefore, if enable.auto.commit is set to true, you need to ensure that the data polled in the previous poll is fully consumed before polling new data. Otherwise, this might lead to offset jumping.If you prefer to control offset commits manually, set enable.auto.commit to false and use the commit(offsets) function to handle offset commits.
In production scenarios, it is advisable to commit offsets, but avoid committing them too frequently. Frequent commits can cause request hotspots in the Compact Topic partitions handling the offset data.For production scenarios, it is generally recommended to commit offsets every 5-10 seconds or manually as needed, rather than committing after every message consumption.
Recommendation 4: Avoid consumption blocking and accumulation in production scenarios
Kafka consumers process messages in the order of partitions. If a message causes a consumption block due to business logic, it will affect the consumption of subsequent messages in the current partition. Therefore, in production environments, ensure that the consumption logic does not lead to permanent blocking.If unexpected blocking occurs, it is recommended to follow the steps below:
Determine if it can be skipped: If the abnormal message can be skipped, stop the consumer first, then go to the AutoMQ Console to reset the consumption offset to the next message to achieve a skip.
Determine if it cannot be skipped: Fix the consumption logic to handle the abnormal message.
Flink Task
Recommendation 1: Upgrade the Flink Connector version to 1.17.2 or above to ensure offset commit success
When using Flink Connector to consume Kafka messages, pay attention to the Flink Connector version. It is recommended to upgrade to version 1.17.2 or above. Earlier versions of Flink Connector rely on older versions of the Kafka SDK, which cannot retry upon failure when submitting consumption offsets. This can result in the inability to accurately observe the backlog metrics of the Consumer Group in Kafka. For detailed defect records, refer to Kafka Issue KAFKA-13563.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AutoMQ Documentation","colors":{"primary":"#2449D4","light":"#2449D4","dark":"#2449D4"},"logo":{"light":"https://mintcdn.com/automq/s9vNxeyMGZ1r1DRV/logo/automq-black.svg?fit=max\u0026auto=format\u0026n=s9vNxeyMGZ1r1DRV\u0026q=85\u0026s=bcc93ae74a4143ae2b7602497b7b354b","dark":"https://mintcdn.com/automq/s9vNxeyMGZ1r1DRV/logo/automq-white.svg?fit=max\u0026auto=format\u0026n=s9vNxeyMGZ1r1DRV\u0026q=85\u0026s=209c336f52b4021f2e991e10d07613ae"},"favicon":"https://mintcdn.com/automq/s9vNxeyMGZ1r1DRV/logo/favicon.svg?fit=max\u0026auto=format\u0026n=s9vNxeyMGZ1r1DRV\u0026q=85\u0026s=d736b0934a674250c9dbe95a5f642fb9","appearance":{"default":"light","strict":true},"navbar":{"links":[{"icon":"github","href":"https://github.com/automq/automq","label":"Github"}],"primary":{"type":"button","label":"automq.com","href":"https://www.automq.com"}},"footer":{"socials":{"slack":"https://go.automq.com/slack","telegram":"https://t.me/+VgqhN9wqBGIzYmU1","x":"https://x.com/AutoMQ_Lab","github":"https://github.com/automq/automq","linkedin":"https://linkedin.com/company/automq"}},"icons":{"library":"lucide"},"integrations":{"ga4":{"measurementId":"G-4F3BX9DFG9"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Github","icon":"github","href":"https://github.com/automq/automq"},{"anchor":"Slack","icon":"slack","href":"https://go.automq.com/slack"},{"anchor":"Telegram","icon":"Telegram","href":"https://t.me/+VgqhN9wqBGIzYmU1"},{"anchor":"Blog","icon":"newspaper","href":"https://www.automq.com/blog"}]},"languages":[{"language":"en","href":""},{"language":"cn","href":"zh/automq/what-is-automq/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"automq","hasAudioNarration":false,"actualSubdomain":"automq","customDomains":["docs.automq.com"],"gitSource":{"type":"github","owner":"automq","repo":"sitebox","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10bb6d9ffae5051c402d30"},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b128081fcf853516559502d","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"cn","tag":"AutoMQ BYOC","count":127},{"language":"en","tag":"AutoMQ BYOC","count":116},{"language":"en","tag":"AutoMQ Open Source","count":61},{"language":"cn","tag":"AutoMQ Open Source","count":57},{"language":"en","tag":"Kafka Connect","count":48},{"language":"cn","tag":"Kafka Connect","count":48},{"language":"en","tag":"Sink Connectors","count":26},{"language":"cn","tag":"Sink Connectors","count":26},{"language":"en","tag":"Source Connectors","count":19},{"language":"cn","tag":"Source Connectors","count":19},{"language":"cn","tag":"快速开始","count":16},{"language":"en","tag":"Integrations","count":14},{"language":"en","tag":"Getting Started","count":12},{"language":"cn","tag":"生态集成","count":12},{"language":"en","tag":"Architecture","count":11},{"language":"cn","tag":"管理环境","count":11},{"language":"cn","tag":"技术架构","count":11},{"language":"cn","tag":"安装 BYOC 环境","count":9},{"language":"en","tag":"Appendix","count":8},{"language":"en","tag":"Eliminate Inter-Zone Traffics","count":8}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@automq.com"}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"static/style.css","content":"#content-area{word-break:keep-all;white-space:normal;overflow-wrap:normal}header div:nth-child(2) p{display:none}.emphasize-placeholder{background-color:#e0f2ff;border:1px solid #2d64eb;padding:2px 6px;border-radius:4px;font-family:monospace;cursor:pointer;display:inline-flex;align-items:center}.emoji-flip{display:inline-block;transform:scaleX(-1);font-size:0.8em;margin-left:4px}"}]}
{"page":{"pagePath":"automq-cloud/best-practice/kafka-client-config-tuning","slug":"/automq-cloud/best-practice/kafka-client-config-tuning","pageMetadata":{"title":"Kafka Client Config Tuning","description":"AutoMQ offers cloud-native scalability, Kafka compatibility, and zero partition fees, enhancing performance and cost efficiency. Learn to optimize Kafka client configs for better throughput and reliability.","href":"/automq-cloud/best-practice/kafka-client-config-tuning"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"AutoMQ offers cloud-native scalability, Kafka compatibility, and zero partition fees, enhancing performance and cost efficiency. Learn to optimize Kafka client configs for better throughput and reliability.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`resource-allocation-management`,children:`Resource Allocation Management`}),`\n`,_jsx(Heading,{level:`3`,id:`recommendation-1-set-the-topic-partition-count-appropriately-to-avoid-throughput-bottlenecks-and-wastage`,children:`Recommendation 1: Set the Topic partition count appropriately to avoid throughput bottlenecks and wastage`}),`\n`,_jsx(_components.p,{children:`The number of Kafka Topic partitions affects the production and consumption throughput a Topic can support. To ensure message order, messages with the same partition key are sent to the same partition, and each Kafka partition can only be processed by one consumer.`}),`\n`,_jsx(_components.p,{children:`AutoMQ is built on object storage, which, compared to Apache Kafka’s local file architecture, can support several times the partition performance under the same cluster scale. Additionally, AutoMQ does not charge for partitions.`}),`\n`,_jsx(_components.p,{children:`When allocating partitions using AutoMQ, there’s no need to consider costs. You only need to evaluate the appropriate number of partitions based on the estimated partition throughput performance (AutoMQ’s single partition write throughput limit is 4MB/s) to avoid having to expand partitions later when business volume increases. The number of partitions does not need to be a multiple of the number of nodes, as AutoMQ will automatically balance the partitions.`}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example:`})}),_jsx(_components.p,{children:`An application estimates that the Topic data write throughput will be about 100MB/s within the next year, while the downstream consumers can each handle a maximum of 2MB of data per second.`}),_jsx(_components.p,{children:`When allocating partitions, you need to consider:`}),_jsx(_components.p,{children:`Based on the producer’s perspective, 100MB/s ÷ 4MB/s = 25 partitions are required.`}),_jsx(_components.p,{children:`Based on the consumer’s perspective, 100MB/s ÷ 2MB/s = 50 consumers are needed, and 50 consumers require at least 50 partitions.`}),_jsx(_components.p,{children:`Therefore, at least 50 partitions need to be allocated to meet the application’s requirements.`})]}),`\n`,_jsx(Heading,{level:`3`,id:`recommendation-2-for-platform-based-application-scenarios-enable-acl-to-achieve-strict-upstream-and-downstream-access-control`,children:`Recommendation 2: For platform-based application scenarios, enable ACL to achieve strict upstream and downstream access control`}),`\n`,_jsx(_components.p,{children:`In platform-based scenarios, such as real-time computing platforms, it is recommended to enable ACL when using Kafka to achieve fine-grained resource control. Once resource control is enabled, Kafka clients must authenticate to access specific Topics and Groups. The benefits of this approach are as follows:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`It prevents business parties from arbitrarily creating new Topics and other resources, which can lead to resource abuse and governance issues.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`It helps avoid subscription chaos and impacts on load balancing caused by different business parties sharing Consumer Groups.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`By identifying Topics and Consumer Groups, it becomes easier to identify related subscribers and upstream and downstream business groups, facilitating business governance.`}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`producer-application`,children:`Producer Application`}),`\n`,_jsx(Heading,{level:`3`,id:`recommendation-1-for-kafka-producer-clients-version-2-1-or-lower-set-the-retry-count`,children:`Recommendation 1: For Kafka Producer clients version 2.1 or lower, set the retry count`}),`\n`,_jsx(_components.p,{children:`Producer applications need to check the SDK version. If the current version is less than 2.1, it is necessary to manually set the retry count to ensure automatic retries in case of message send failures. This helps avoid failures caused by server maintenance, self-balancing, etc.`}),`\n`,_jsx(_components.p,{children:`Retry parameter settings can be referenced as follows:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`ini`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ini`,children:_jsxs(_components.code,{language:`ini`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`// Maximum retry count`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`retries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=Integer.MAX_VALUE `})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`// Initial backoff delay time`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`retry.backoff.ms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=100`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`// Maximum backoff delay time`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`retry.backoff.max.ms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=1000`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`// RPC timeout for each send request`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`request.timeout.ms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` =30000`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`// The total timeout for the entire send call. If this time is exceeded, no further retries will be made, and an exception will be returned to the caller.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`delivery.timeout.ms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=120000`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`recommendation-2-optimize-the-batch-parameters-of-the-producer-to-avoid-excessive-qps-consumption-by-fragmented-requests`,children:`Recommendation 2: Optimize the batch parameters of the Producer to avoid excessive QPS consumption by fragmented requests`}),`\n`,_jsx(_components.p,{children:`Kafka is a stream storage system designed for high throughput scenarios. The most typical use case for Kafka is to improve the efficiency and throughput of data transmission through batching. In the process of sending messages by the Producer, it is necessary to set the batching parameters reasonably to avoid the following situations:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Avoid sending only one message per request:`}),` If the Producer sends only one message per request, it will generate a large number of Produce requests, consuming server-side CPU and degrading cluster performance.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Avoid setting excessively long batching wait times:`}),` When setting batch parameters, the Producer needs to set a reasonable wait time to avoid delays in sending messages due to incomplete batching in low-traffic scenarios.`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Specific batch parameter settings are as follows:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`ini`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ini`,children:_jsxs(_components.code,{language:`ini`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`// Batch size, up to 128KB of data can be accumulated at a time.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`batch.size`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=131072`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`// Batch linger time, for the Producer, if the batch limit is not reached within the specified time, sending will also be triggered. This time represents the maximum delay for sending.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`linger.ms`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=10`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`recommendation-3-set-ack=all-to-ensure-message-durability-before-responding`,children:`Recommendation 3: Set ack=all to ensure message durability before responding`}),`\n`,_jsx(_components.p,{children:`Producers can adjust the ack parameter to balance between data durability and sending latency:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`ack=all (default value): The server responds to the client only after the data has been persisted to cloud storage. In the event of a server crash, successfully acknowledged messages will not be lost.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`ack=1: In alignment with Apache Kafka®, the AutoMQ server responds to the client immediately after the message is received in memory. If the server crashes, messages that haven’t been persisted will be lost.`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`It is recommended for producers to maintain the default configuration of ack=all to ensure data reliability.`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`AutoMQ achieves message durability and reliable storage using object storage, and the server does not produce ISR replica copies. Setting ACK=ALL handles traffic as if writing a single piece of data (synchronous persistence).`})}),`\n`,_jsx(Heading,{level:`2`,id:`consumer-application`,children:`Consumer Application`}),`\n`,_jsx(Heading,{level:`3`,id:`recommendation-1-for-consumers-using-the-assign-mode-upgrade-to-version-3-2-or-above-to-ensure-offset-commit-success`,children:`Recommendation 1: For consumers using the Assign mode, upgrade to version 3.2 or above to ensure offset commit success`}),`\n`,_jsxs(_components.p,{children:[`When a Kafka Consumer application consumes messages using the Assign mode, i.e., self-assigning partition load balancing mode, it is necessary to ensure that the SDK version is upgraded to version 3.2 or above. This is because earlier versions have a defect in the Assign mode where committed consumer offsets are not updated promptly, resulting in consumers failing to commit and update offsets in a timely manner. For detailed defect records, refer to `,_jsx(_components.a,{href:`https://issues.apache.org/jira/browse/KAFKA-13563`,children:`Kafka Issue KAFKA-13563`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`recommendation-2-control-the-consumer-heartbeat-timeout-and-messages-polled-per-poll-to-avoid-frequent-rebalancing`,children:`Recommendation 2: Control the Consumer heartbeat timeout and messages polled per poll to avoid frequent rebalancing`}),`\n`,_jsx(_components.p,{children:`Kafka Consumers are grouped and load-balanced through the same Group Id. If a single consumer experiences a heartbeat timeout, it will be expelled from the consumer group, and the remaining consumers will undergo self-balancing to reassign partitions.`}),`\n`,_jsx(_components.p,{children:`In production scenarios, program parameter errors that lead to unexpected heartbeat timeouts and self-balancing should be avoided; otherwise, it will cause the consumer group to keep changing and fail to consume messages.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Causes of unexpected self-balancing:`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Client versions before v0.10.2: Consumers did not have an independent thread to maintain the heartbeat. Instead, heartbeat maintenance was coupled with the poll interface. As a result, if the user’s consumption is delayed, it leads to a Consumer heartbeat timeout, triggering self-balancing.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Client versions v0.10.2 and later: If the consumption time is too slow and exceeds a certain period (set by max.poll.interval.ms, default is 5 minutes) without polling for messages, the client will voluntarily leave the queue, triggering self-balancing.`}),`\n`]}),`\n`]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Optimization Recommendations:`})}),_jsx(_components.p,{children:`Upgrade the client to version 0.10.2 or above.`}),_jsx(_components.p,{children:`Adjust the parameter values according to the following instructions:`}),_jsx(_components.p,{children:`Increase the client’s consumption speed as much as possible to avoid lag.`}),_jsx(_components.p,{children:`Try to avoid having a single Consumer Group subscribe to a large number of Topics. Aim for a dedicated Consumer Group to subscribe to a dedicated Topic.`})]}),`\n`,_jsx(Heading,{level:`3`,id:`recommendation-3-in-production-scenarios-commit-the-consumer-offset-but-avoid-committing-offsets-too-frequently`,children:`Recommendation 3: In production scenarios, commit the Consumer offset, but avoid committing offsets too frequently`}),`\n`,_jsx(_components.p,{children:`When consuming messages using Kafka, whether you use the standard Kafka Consumer SDK or frameworks like Flink Connector, it is advisable to commit consumer offsets. This allows you to monitor consumption lag and mitigate risks.`}),`\n`,_jsx(_components.p,{children:`There are two ways to commit consumer offsets: automatic and manual. The controlling parameter is:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`enable.auto.commit`}),`: Whether to use the automatic offset commit mechanism. The default value is true, indicating that the automatic commit mechanism is used by default.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`auto.commit.interval.ms`}),`: The interval for auto-committing offsets. The default value is 1000, which is 1 second.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The combination of these two parameters means that before each poll, the client will check the time since the last offset commit. If the elapsed time exceeds the value set by `,_jsx(_components.strong,{children:`auto.commit.interval.ms`}),`, the client will initiate an offset commit action.`]}),`\n`,_jsxs(_components.p,{children:[`Therefore, if `,_jsx(_components.strong,{children:`enable.auto.commit`}),` is set to true, you need to ensure that the data polled in the previous poll is fully consumed before polling new data. Otherwise, this might lead to offset jumping.`]}),`\n`,_jsxs(_components.p,{children:[`If you prefer to control offset commits manually, set `,_jsx(_components.strong,{children:`enable.auto.commit`}),` to false and use the commit(offsets) function to handle offset commits.`]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`In production scenarios, it is advisable to commit offsets, but avoid committing them too frequently. Frequent commits can cause request hotspots in the Compact Topic partitions handling the offset data.`}),_jsx(_components.p,{children:`For production scenarios, it is generally recommended to commit offsets every 5-10 seconds or manually as needed, rather than committing after every message consumption.`})]}),`\n`,_jsx(Heading,{level:`3`,id:`recommendation-4-avoid-consumption-blocking-and-accumulation-in-production-scenarios`,children:`Recommendation 4: Avoid consumption blocking and accumulation in production scenarios`}),`\n`,_jsx(_components.p,{children:`Kafka consumers process messages in the order of partitions. If a message causes a consumption block due to business logic, it will affect the consumption of subsequent messages in the current partition. Therefore, in production environments, ensure that the consumption logic does not lead to permanent blocking.`}),`\n`,_jsx(_components.p,{children:`If unexpected blocking occurs, it is recommended to follow the steps below:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Determine if it can be skipped:`}),` If the abnormal message can be skipped, stop the consumer first, then go to the AutoMQ Console to reset the consumption offset to the next message to achieve a skip.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Determine if it cannot be skipped:`}),` Fix the consumption logic to handle the abnormal message.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`flink-task`,children:`Flink Task`}),`\n`,_jsx(Heading,{level:`3`,id:`recommendation-1-upgrade-the-flink-connector-version-to-1-17-2-or-above-to-ensure-offset-commit-success`,children:`Recommendation 1: Upgrade the Flink Connector version to 1.17.2 or above to ensure offset commit success`}),`\n`,_jsxs(_components.p,{children:[`When using Flink Connector to consume Kafka messages, pay attention to the Flink Connector version. It is recommended to upgrade to version 1.17.2 or above. Earlier versions of Flink Connector rely on older versions of the Kafka SDK, which cannot retry upon failure when submitting consumption offsets. This can result in the inability to accurately observe the backlog metrics of the Consumer Group in Kafka. For detailed defect records, refer to `,_jsx(_components.a,{href:`https://issues.apache.org/jira/browse/KAFKA-13563`,children:`Kafka Issue KAFKA-13563`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Kafka Client Config Tuning","description":"AutoMQ offers cloud-native scalability, Kafka compatibility, and zero partition fees, enhancing performance and cost efficiency. Learn to optimize Kafka client configs for better throughput and reliability.","href":"/automq-cloud/best-practice/kafka-client-config-tuning"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Resource Allocation Management","slug":"resource-allocation-management","depth":2,"children":[{"title":"Recommendation 1: Set the Topic partition count appropriately to avoid throughput bottlenecks and wastage","slug":"recommendation-1-set-the-topic-partition-count-appropriately-to-avoid-throughput-bottlenecks-and-wastage","depth":3,"children":[]},{"title":"Recommendation 2: For platform-based application scenarios, enable ACL to achieve strict upstream and downstream access control","slug":"recommendation-2-for-platform-based-application-scenarios-enable-acl-to-achieve-strict-upstream-and-downstream-access-control","depth":3,"children":[]}]},{"title":"Producer Application","slug":"producer-application","depth":2,"children":[{"title":"Recommendation 1: For Kafka Producer clients version 2.1 or lower, set the retry count","slug":"recommendation-1-for-kafka-producer-clients-version-2-1-or-lower-set-the-retry-count","depth":3,"children":[]},{"title":"Recommendation 2: Optimize the batch parameters of the Producer to avoid excessive QPS consumption by fragmented requests","slug":"recommendation-2-optimize-the-batch-parameters-of-the-producer-to-avoid-excessive-qps-consumption-by-fragmented-requests","depth":3,"children":[]},{"title":"Recommendation 3: Set ack=all to ensure message durability before responding","slug":"recommendation-3-set-ack=all-to-ensure-message-durability-before-responding","depth":3,"children":[]}]},{"title":"Consumer Application","slug":"consumer-application","depth":2,"children":[{"title":"Recommendation 1: For consumers using the Assign mode, upgrade to version 3.2 or above to ensure offset commit success","slug":"recommendation-1-for-consumers-using-the-assign-mode-upgrade-to-version-3-2-or-above-to-ensure-offset-commit-success","depth":3,"children":[]},{"title":"Recommendation 2: Control the Consumer heartbeat timeout and messages polled per poll to avoid frequent rebalancing","slug":"recommendation-2-control-the-consumer-heartbeat-timeout-and-messages-polled-per-poll-to-avoid-frequent-rebalancing","depth":3,"children":[]},{"title":"Recommendation 3: In production scenarios, commit the Consumer offset, but avoid committing offsets too frequently","slug":"recommendation-3-in-production-scenarios-commit-the-consumer-offset-but-avoid-committing-offsets-too-frequently","depth":3,"children":[]},{"title":"Recommendation 4: Avoid consumption blocking and accumulation in production scenarios","slug":"recommendation-4-avoid-consumption-blocking-and-accumulation-in-production-scenarios","depth":3,"children":[]}]},{"title":"Flink Task","slug":"flink-task","depth":2,"children":[{"title":"Recommendation 1: Upgrade the Flink Connector version to 1.17.2 or above to ensure offset commit success","slug":"recommendation-1-upgrade-the-flink-connector-version-to-1-17-2-or-above-to-ensure-offset-commit-success","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/automq/48fec8bab1afa455/content/monitor.js","/_mintlify/custom/automq/c09aa9839083e17a/content/hubspot.js","/_mintlify/custom/automq/786ace9ed17adbd7/content/luckyorange-tracking.js"],"subdomain":"automq","siteName":"AutoMQ Documentation","title":"Kafka Client Config Tuning - AutoMQ Documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/automq-cloud/best-practice/kafka-client-config-tuning","matchLevel":0},"cn":{"href":"/zh/automq-cloud/best-practice/kafka-client-config-tuning","matchLevel":1}}},"lastModified":"2026-05-07T09:18:34.031Z","originalFileLocation":"automq-cloud/best-practice/kafka-client-config-tuning.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"AutoMQ offers cloud-native scalability, Kafka compatibility, and zero partition fees, enhancing performance and cost efficiency. Learn to optimize Kafka client configs for better throughput and reliability.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AutoMQ Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Kafka Client Config Tuning - AutoMQ Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"AutoMQ offers cloud-native scalability, Kafka compatibility, and zero partition fees, enhancing performance and cost efficiency. Learn to optimize Kafka client configs for better throughput and reliability.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AutoMQ Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://automq.mintlify.site/_mintlify/api/og/v2?division=Best+Practice\u0026amp;title=Kafka+Client+Config+Tuning\u0026amp;description=AutoMQ+offers+cloud-native+scalability%2C+Kafka+compatibility%2C+and+zero+partition+fees%2C+enhancing+performance+and+cost+efficiency.+Learn+to+optimize+Kafka+client+\u0026amp;theme=a9c70ef017645a82054ccd60\u0026amp;signature=5f6c2d3ce9911569d28f15b850747f1c0a85de0d1c53de5b6fb2bbf8f23a3bd1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Kafka Client Config Tuning - AutoMQ Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"AutoMQ offers cloud-native scalability, Kafka compatibility, and zero partition fees, enhancing performance and cost efficiency. Learn to optimize Kafka client configs for better throughput and reliability.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://automq.mintlify.site/_mintlify/api/og/v2?division=Best+Practice\u0026amp;title=Kafka+Client+Config+Tuning\u0026amp;description=AutoMQ+offers+cloud-native+scalability%2C+Kafka+compatibility%2C+and+zero+partition+fees%2C+enhancing+performance+and+cost+efficiency.+Learn+to+optimize+Kafka+client+\u0026amp;theme=a9c70ef017645a82054ccd60\u0026amp;signature=5f6c2d3ce9911569d28f15b850747f1c0a85de0d1c53de5b6fb2bbf8f23a3bd1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AutoMQ Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2449D4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/automq-cloud/best-practice/kafka-client-config-tuning.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.automq.com/zh/automq-cloud/best-practice/kafka-client-config-tuning\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.automq.com/#organization\",\"name\":\"AutoMQ Documentation\",\"url\":\"https://docs.automq.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/automq/s9vNxeyMGZ1r1DRV/logo/automq-black.svg?fit=max\u0026auto=format\u0026n=s9vNxeyMGZ1r1DRV\u0026q=85\u0026s=bcc93ae74a4143ae2b7602497b7b354b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.automq.com#website\",\"name\":\"AutoMQ Documentation\",\"url\":\"https://docs.automq.com\",\"publisher\":{\"@id\":\"https://docs.automq.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning#webpage\",\"url\":\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning\",\"name\":\"Kafka Client Config Tuning\",\"description\":\"AutoMQ offers cloud-native scalability, Kafka compatibility, and zero partition fees, enhancing performance and cost efficiency. Learn to optimize Kafka client configs for better throughput and reliability.\",\"dateModified\":\"2026-05-07T09:18:34.031Z\",\"isPartOf\":{\"@id\":\"https://docs.automq.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AutoMQ Documentation\",\"item\":\"https://docs.automq.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kafka Client Config Tuning\",\"item\":\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning#article\",\"headline\":\"Kafka Client Config Tuning\",\"name\":\"Kafka Client Config Tuning\",\"description\":\"AutoMQ offers cloud-native scalability, Kafka compatibility, and zero partition fees, enhancing performance and cost efficiency. Learn to optimize Kafka client configs for better throughput and reliability.\",\"url\":\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning\",\"mainEntityOfPage\":{\"@id\":\"https://docs.automq.com/automq-cloud/best-practice/kafka-client-config-tuning#webpage\"},\"dateModified\":\"2026-05-07T09:18:34.031Z\",\"publisher\":{\"@id\":\"https://docs.automq.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.automq.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AutoMQ Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AutoMQ Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/automq-cloud/best-practice/kafka-client-config-tuning.md","siteName":"AutoMQ Documentation","nav":{"global":{"anchors":[{"anchor":"Github","icon":"github","href":"https://github.com/automq/automq"},{"anchor":"Slack","icon":"slack","href":"https://go.automq.com/slack"},{"anchor":"Telegram","icon":"Telegram","href":"https://t.me/+VgqhN9wqBGIzYmU1"},{"anchor":"Blog","icon":"newspaper","href":"https://www.automq.com/blog"}]},"languages":[{"language":"en","tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":""}]},{"tab":"AutoMQ Open Source","icon":"github","pages":[{"title":"AutoMQ Open Source","href":"/automq/what-is-automq/overview"}]},{"tab":"AutoMQ BYOC","icon":"cloud","groups":[{"group":"Overview","icon":"readme","pages":[{"title":"What is AutoMQ BYOC?","href":"/automq-cloud/overview/what-is-automq-cloud"},{"title":"Glossary","href":"/automq-cloud/overview/glossary"},{"title":"Restrictions","href":"/automq-cloud/overview/restrictions"}]},{"group":"Getting Started","icon":"play","pages":[{"title":"Overview","href":"/automq-cloud/getting-started/overview"},{"group":"Install BYOC Environment","pages":[{"group":"AWS","pages":[{"title":"Prepare VPC","href":"/automq-cloud/getting-started/install-byoc-environment/aws/prepare-vpc"},{"title":"Install AutoMQ on AWS","href":"/automq-cloud/getting-started/install-byoc-environment/aws/install-automq-on-aws"}]},{"group":"Google Cloud","pages":[{"title":"Install AutoMQ on Google Cloud","href":"/automq-cloud/getting-started/install-byoc-environment/google-cloud/install-automq-on-gcp"}]},{"title":"OCI","href":"/automq-cloud/getting-started/install-byoc-environment/oci-install-automq"},{"group":"Azure","pages":[{"title":"Install AutoMQ on Azure","href":"/automq-cloud/getting-started/install-byoc-environment/install-env-on-azure"}]}]},{"title":"Experience AutoMQ","href":"/automq-cloud/getting-started/experience-automq"},{"title":"Client SDK Guide","href":"/automq-cloud/getting-started/client-sdk-guide"}]},{"group":"Deploy on Kubernetes","icon":"https://mintlify.s3.us-west-1.amazonaws.com/automq/images/kubernetes-svgrepo-com.svg","pages":[{"title":"Overview","href":"/automq-cloud/deploy-automq-on-kubernetes/overview"},{"title":"Deploy to AWS EKS","href":"/automq-cloud/deploy-automq-on-kubernetes/deploy-to-aws-eks"},{"title":"Deploy to Azure AKS","href":"/automq-cloud/deploy-automq-on-kubernetes/deploy-to-azure-aks"},{"title":"Deploy to Google Cloud GKE","href":"/automq-cloud/deploy-automq-on-kubernetes/deploy-to-google-cloud-gke"}]},{"group":"Subscriptions and Billings","icon":"receipt","pages":[{"title":"Overview","href":"/automq-cloud/subscriptions-and-billings/overview"},{"group":"BYOC Env Billings","pages":[{"title":"Usage-Based Billing for AWS","href":"/automq-cloud/subscriptions-and-billings/byoc-env-billings/usage-based-billing"},{"title":"Usage-Based Billing for Azure","href":"/automq-cloud/subscriptions-and-billings/byoc-env-billings/bind-azure-marketplace-payment-method"},{"group":"Prepaid Billing for Others","pages":[{"title":"Prepaid Billing Overview","href":"/automq-cloud/subscriptions-and-billings/byoc-env-billings/billing-instructions-for-byoc"},{"title":"Manage Environment License","href":"/automq-cloud/manage-environments/manage-environment-license"}]}]}]},{"group":"Manage Environments","icon":"clipboard-list","pages":[{"title":"Overview","href":"/automq-cloud/manage-environments/overview"},{"title":"Upgrade Environment Version","href":"/automq-cloud/manage-environments/upgrade-environment-version"},{"group":"Manage Environment Ops Authing","pages":[{"title":"Overview","href":"/automq-cloud/manage-environments/manage-environment-ops-authing/overview"},{"title":"Set Ops Authing from AWS","href":"/automq-cloud/manage-environments/manage-environment-ops-authing/set-ops-authing-from-aws"},{"title":"Set Ops Authing from Google Cloud","href":"/automq-cloud/manage-environments/manage-environment-ops-authing/set-ops-authing-from-google-cloud"},{"title":"Set Ops Authing from OCI","href":"/automq-cloud/manage-environments/manage-environment-ops-authing/set-ops-authing-from-oci"},{"title":"Set Ops Authing from Azure","href":"/automq-cloud/manage-environments/manage-environment-ops-authing/set-ops-authing-from-azure"},{"title":"Set Ops Tunnel for Troubleshooting","href":"/automq-cloud/manage-environments/manage-environment-ops-authing/set-ops-tunnel-for-troubleshooting"}]}]},{"group":"Manage Identities and Access","icon":"fingerprint","pages":[{"title":"Overview","href":"/automq-cloud/manage-identities-and-access/overview"},{"title":"Member Accounts","href":"/automq-cloud/manage-identities-and-access/member-accounts"},{"title":"Role-Based Access Control","href":"/automq-cloud/manage-identities-and-access/role-based-access-control"},{"title":"Service Accounts","href":"/automq-cloud/manage-identities-and-access/service-accounts"},{"title":"Identity Providers and SSO Authentication","href":"/automq-cloud/manage-identities-and-access/identity-providers-and-sso-authentication"}]},{"group":"Managing AutoMQ","icon":"boxes","pages":[{"title":"Manage Instances","href":"/automq-cloud/managing-automq/manage-instances"},{"title":"Manage Topics","href":"/automq-cloud/managing-automq/manage-topics"},{"title":"Manage Consumer Groups","href":"/automq-cloud/managing-automq/manage-consumer-groups"}]},{"group":"Migrate to AutoMQ","icon":"arrow-right-left","pages":[{"title":"Overview","href":"/automq-cloud/migrate-to-automq/overview"},{"title":"Prerequisites","href":"/automq-cloud/migrate-to-automq/prerequisites"},{"title":"Executing Migration","href":"/automq-cloud/migrate-to-automq/executing-migration"},{"title":"Kafka Linking best practices","href":"/automq-cloud/migrate-to-automq/kafka-linking-best-practices"}]},{"group":"Manage Security","icon":"globe-lock","pages":[{"title":"Overview","href":"/automq-cloud/manage-security/overview"},{"group":"Authentication","pages":[{"title":"SASL Authentication","href":"/automq-cloud/manage-security/authentication/sasl-authentication"},{"title":"Mutual TLS (mTLS) Authentication","href":"/automq-cloud/manage-security/authentication/mutual-tls-mtls-authentication"}]},{"title":"Data Encryption at Rest","href":"/automq-cloud/manage-security/data-encryption-at-rest"},{"title":"Manage Kafka ACLs","href":"/automq-cloud/manage-security/manage-kafka-acls"}]},{"group":"Kafka Connect","icon":"blocks","pages":[{"title":"Overview","href":"/automq-cloud/kafka-connect/overview"},{"title":"Manage Plugins","href":"/automq-cloud/kafka-connect/manage-plugins"},{"title":"Manage Connectors","href":"/automq-cloud/kafka-connect/manage-connectors"},{"group":"Source Connectors","pages":[{"title":"Azure IoT Hub Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/azure-iot-hub-source-connector"},{"title":"Camunda Zeebe Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/camunda-zeebe-source-connector"},{"title":"Couchbase Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/couchbase-kafka-connect-couchbase-source-connector"},{"title":"Debezium MongoDB CDC Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/debezium-mongodb-source-connector"},{"title":"Debezium MySQL Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/debezium-mysql-source-connector"},{"title":"Debezium PostgreSQL Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/debezium-postgresql-source-connector"},{"title":"Debezium SQL Server Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/debezium-sqlserver-source-connector"},{"title":"Diffusion Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/diffusion-source-connector"},{"title":"Elasticsearch Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/elasticsearch-source-connector"},{"title":"IRC Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/irc-source-connector"},{"title":"MongoDB Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/mongodb-source-connector"},{"title":"Neo4j Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/neo4j-source-connector"},{"title":"Redis Stream Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/redis-source-connector"},{"title":"RSS Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/rss-source-connector"},{"title":"Scylla CDC Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/scylla-cdc-source-connector"},{"title":"Server Sent Events Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/server-sent-events-source-connector"},{"title":"Shell Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/shell-source-connector"},{"title":"Twitter Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/twitter-source-connector"},{"title":"YugabyteDB Source Connector","href":"/automq-cloud/kafka-connect/source-connectors/yugabytedb-source-connector"}]},{"group":"Sink Connectors","pages":[{"title":"Ably Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/ably-kafka-sink-connector"},{"title":"Adobe Experience Platform Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/adobe-experience-platform-sink-connector"},{"title":"Amazon EventBridge Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/amazon-eventbridge-sink-connector"},{"title":"Apache Iceberg Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/apache-iceberg-sink-connector"},{"title":"ArangoDB Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/arangodb-sink-connector"},{"title":"Azure IoT Hub Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/azure-iot-hub-sink-connector"},{"title":"Camunda Zeebe Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/camunda-platform-8-zeebe-sink-connector"},{"title":"ClickHouse Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/clickhouse-sink-connector"},{"title":"Couchbase Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/couchbase-kafka-connect-couchbase-sink-connector"},{"title":"Datadog Logs Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/datadog-logs-sink-connector"},{"title":"Diffusion Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/diffusion-sink-connector"},{"title":"Google BigQuery Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/wepay-kafka-connect-bigquery-sink-connector"},{"title":"Lightstreamer Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/lightstreamer-sink-connector"},{"title":"Milvus Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/milvus-sink-connector"},{"title":"MongoDB Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/mongodb-sink-connector"},{"title":"Neo4j Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/neo4j-sink-connector"},{"title":"New Relic Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/new-relic-sink-connector"},{"title":"Redis Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/redis-sink-connector"},{"title":"ScyllaDB Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/scylladb-sink-connector"},{"title":"Shell Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/shell-sink-connector"},{"title":"SingleStore Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/singlestore-sink-connector"},{"title":"Snowflake Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/snowflake-kafka-sink-connector"},{"title":"Splunk Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/splunk-kafka-sink-connector"},{"title":"Timeplus Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/timeplus-sink-connector"},{"title":"Vectara Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/vectara-sink-connector"},{"title":"Weaviate Sink Connector","href":"/automq-cloud/kafka-connect/sink-connectors/weaviate-kafka-sink-connector"}]}]},{"group":"Monitoring \u0026 Alert","icon":"telescope","pages":[{"title":"Monitoring \u0026 Alert Via Prometheus","href":"/automq-cloud/monitoring-alert/monitoring-alert-via-prometheus"},{"title":"Monitor consumer lag","href":"/automq-cloud/monitoring-alert/monitor-consumer-lag"},{"title":"Integrating Metrics with Datadog","href":"/automq-cloud/monitoring-alert/integrating-metrics-with-datadog"}]},{"group":"Table Topic","icon":"text-search","pages":[{"title":"Overview","href":"/automq-cloud/table-topic/overview"},{"title":"Table Topic Integration with AWS Glue","href":"/automq-cloud/table-topic/table-topic-integration-with-aws-glue"},{"title":"Table Topic Integration with AWS S3 Table","description":"Integrate AutoMQ with AWS S3 Table for streaming data lake analysis without ETL. Achieve cloud-native scalability and Kafka compatibility with AutoMQ's Table Topic feature.","href":"/automq-cloud/table-topic/table-topic-integration-with-aws-s3-table"}]},{"group":"Best Practice","icon":"spotlight","pages":[{"title":"Kafka Client Config Tuning","href":"/automq-cloud/best-practice/kafka-client-config-tuning"}]},{"group":"Eliminate Inter-Zone Traffics","icon":"audio-lines","pages":[{"title":"Overview","description":"AutoMQ eliminates cross-zone data transfer costs using S3 storage architecture, offering cloud-native scalability and 100% Kafka compatibility.","href":"/automq-cloud/eliminate-inter-zone-traffics/overview"},{"title":"Broker Configuration","href":"/automq-cloud/eliminate-inter-zone-traffics/broker-configuration"},{"title":"Client Configuration","href":"/automq-cloud/eliminate-inter-zone-traffics/client-configuration"},{"title":"Monitor Cross-AZ Traffic","href":"/automq-cloud/eliminate-inter-zone-traffics/monitor-inter-zone-traffic"}]},{"group":"Release Notes","icon":"rocket","pages":[{"title":"Release Notes","href":"/automq-cloud/release-notes"}]},{"group":"Support","icon":"message-circle-question-mark","pages":[{"title":"Obtaining Services","href":"/automq-cloud/support/obtaining-services"},{"title":"Service Level Agreement","href":"/automq-cloud/support/service-level-agreement"},{"title":"Terms of Service","href":"/automq-cloud/support/terms-of-service"}]},{"group":"Appendix","icon":"book-text","pages":[{"title":"Cloud Resource List","href":"/automq-cloud/appendix/cloud-resource-list"},{"title":"Deploy AutoMQ Software Via Helm Chart","href":"/automq-cloud/appendix/deploy-automq-enterprise-via-helm-chart"},{"title":"Helm Chart Values Documentation","href":"/automq-cloud/appendix/helm-chart-values-readme"},{"title":"Performance Benchmark for AWS","href":"/automq-cloud/appendix/performance-benchmark"},{"title":"Performance Benchmark for Azure","href":"/automq-cloud/appendix/performance-benchmark-for-azure"},{"title":"AWS BYOC Console Upgrade Guide for Version 8.x","href":"/automq-cloud/appendix/byoc-console-upgrade-to-8.x-guide"},{"title":"GCP BYOC Console Upgrade Guide to v8.x","href":"/automq-cloud/appendix/gcp-byoc-console-upgrade-to-8.x-guide"},{"title":"Azure BYOC Console Upgrade Guide to v8.x","href":"/automq-cloud/appendix/azure-byoc-console-upgrade-to-8.x-guide"}]}]}]},{"language":"cn","pages":[{"title":"cn","href":"/zh/automq-cloud/best-practice/kafka-client-config-tuning"}]}]},"basePath":"","title":"Kafka Client Config Tuning - AutoMQ Documentation","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}