{"id":314961,"date":"2024-05-20T23:47:51","date_gmt":"2024-05-20T15:47:51","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/314961.html"},"modified":"2024-05-20T23:48:13","modified_gmt":"2024-05-20T15:48:13","slug":"kafka-%e6%a1%86%e6%9e%b6%e7%9a%84%e6%95%b0%e6%8d%ae%e4%bc%a0%e8%be%93%e6%96%b9%e5%bc%8f%e6%9c%89%e5%93%aa%e4%ba%9b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/314961.html","title":{"rendered":"kafka \u6846\u67b6\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u6709\u54ea\u4e9b"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27034633\/e64c75d0-9639-4951-9b9a-1fc50f6e673b.webp\" alt=\"kafka \u6846\u67b6\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u6709\u54ea\u4e9b\" \/><\/p>\n<p><p>Kafka\u6846\u67b6\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u4e3b\u8981\u5305\u62ec<strong>\u540c\u6b65\u53d1\u9001\u3001\u5f02\u6b65\u53d1\u9001\u3001\u548c\u6279\u91cf\u53d1\u9001<\/strong>\u3002\u8fd9\u4e9b\u65b9\u5f0f\u5404\u6709\u7279\u70b9\u3001\u4f18\u7f3a\u70b9\uff0c\u9488\u5bf9\u4e0d\u540c\u7684\u4f7f\u7528\u573a\u666f\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u9009\u62e9\u6700\u9002\u5408\u7684\u4f20\u8f93\u65b9\u5f0f\u3002\u5728\u8fd9\u4e09\u79cd\u65b9\u5f0f\u4e2d\uff0c<strong>\u5f02\u6b65\u53d1\u9001<\/strong>\u662f\u6700\u4e3a\u5e38\u7528\u7684\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u6709\u6548\u5730\u63d0\u5347\u6570\u636e\u4f20\u8f93\u7684\u6548\u7387\uff0c\u540c\u65f6\u51cf\u5c11\u53d1\u9001\u6570\u636e\u5bf9\u751f\u4ea7\u8005\u6027\u80fd\u7684\u5f71\u54cd\u3002<\/p>\n<\/p>\n<p><h3><strong>\u4e00\u3001\u540c\u6b65\u53d1\u9001<\/strong><\/h3>\n<\/p>\n<p><p>\u540c\u6b65\u53d1\u9001\u662f\u4e00\u79cd\u7b80\u5355\u76f4\u63a5\u7684\u6570\u636e\u53d1\u9001\u65b9\u5f0f\uff0c\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0b\uff0c\u751f\u4ea7\u8005\u53d1\u9001\u6d88\u606f\u540e\uff0c\u4f1a\u7b49\u5f85\u670d\u52a1\u5668\u8fd4\u56de\u786e\u8ba4\u4fe1\u606f\uff0c\u786e\u4fdd\u6570\u636e\u7684\u5b89\u5168\u53ef\u9760\u5230\u8fbe\u3002\u8fd9\u79cd\u65b9\u5f0f\u867d\u7136\u53ef\u4ee5\u4fdd\u8bc1\u6d88\u606f\u7684\u53ef\u9760\u6027\uff0c\u4f46\u662f\u4f1a\u56e0\u7b49\u5f85\u670d\u52a1\u5668\u54cd\u5e94\u800c\u5bfc\u81f4\u53d1\u9001\u6548\u7387\u8f83\u4f4e\u3002<\/p>\n<\/p>\n<p><h4><strong>\u5f3a\u8c03\u53ef\u9760\u6027<\/strong><\/h4>\n<\/p>\n<p><p><strong>\u540c\u6b65\u53d1\u9001<\/strong>\u7684\u6700\u5927\u4f18\u70b9\u662f\u80fd\u591f\u786e\u4fdd\u6bcf\u6761\u6d88\u606f\u90fd\u88ab\u7a33\u5b9a\u4f20\u8f93\u81f3Kafka\u670d\u52a1\u5668\u3002\u5728\u67d0\u4e9b\u5bf9\u6570\u636e\u53ef\u9760\u6027\u6709\u6781\u9ad8\u8981\u6c42\u7684\u4e1a\u52a1\u573a\u666f\u4e2d\uff0c\u9009\u62e9\u540c\u6b65\u53d1\u9001\u662f\u4e00\u79cd\u5408\u7406\u7684\u7b56\u7565\u3002\u4f8b\u5982\uff0c\u91d1\u878d\u4ea4\u6613\u7cfb\u7edf\u5728\u5904\u7406\u4ea4\u6613\u8bb0\u5f55\u65f6\uff0c\u4e3a\u4e86\u907f\u514d\u4efb\u4f55\u4ea4\u6613\u6570\u636e\u7684\u4e22\u5931\uff0c\u5f80\u5f80\u4f1a\u91c7\u7528\u540c\u6b65\u53d1\u9001\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h4><strong>\u6027\u80fd\u74f6\u9888<\/strong><\/h4>\n<\/p>\n<p><p>\u7136\u800c\uff0c\u540c\u6b65\u53d1\u9001\u65b9\u5f0f\u7684\u7f3a\u70b9\u4e5f\u975e\u5e38\u660e\u663e\uff0c\u4e3b\u8981\u8868\u73b0\u5728\u5176\u8f83\u4f4e\u7684\u53d1\u9001\u6548\u7387\u3002\u7531\u4e8e\u751f\u4ea7\u8005\u5728\u53d1\u9001\u6bcf\u6761\u6d88\u606f\u540e\u90fd\u9700\u8981\u7b49\u5f85\u670d\u52a1\u5668\u7684\u786e\u8ba4\u54cd\u5e94\uff0c\u8fd9\u5c31\u5927\u5e45\u5ea6\u964d\u4f4e\u4e86\u6d88\u606f\u7684\u53d1\u9001\u901f\u5ea6\uff0c\u7279\u522b\u662f\u5728\u9ad8\u5e76\u53d1\u7684\u73af\u5883\u4e0b\uff0c\u540c\u6b65\u53d1\u9001\u53ef\u80fd\u4f1a\u6210\u4e3a\u7cfb\u7edf\u6027\u80fd\u7684\u74f6\u9888\u3002<\/p>\n<\/p>\n<p><h3><strong>\u4e8c\u3001\u5f02\u6b65\u53d1\u9001<\/strong><\/h3>\n<\/p>\n<p><p>\u5f02\u6b65\u53d1\u9001\uff0c\u901a\u8fc7\u5c06\u6d88\u606f\u53d1\u9001\u548c\u670d\u52a1\u5668\u7684\u786e\u8ba4\u54cd\u5e94\u5206\u79bb\uff0c\u5141\u8bb8\u751f\u4ea7\u8005\u5728\u4e0d\u7b49\u5f85\u670d\u52a1\u5668\u54cd\u5e94\u7684\u60c5\u51b5\u4e0b\u7ee7\u7eed\u53d1\u9001\u66f4\u591a\u7684\u6d88\u606f\u3002\u8fd9\u79cd\u65b9\u5f0f\u663e\u8457\u63d0\u5347\u4e86\u53d1\u9001\u6548\u7387\uff0c\u975e\u5e38\u9002\u7528\u4e8e\u5bf9\u53d1\u9001\u901f\u5ea6\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h4><strong>\u63d0\u5347\u53d1\u9001\u6548\u7387<\/strong><\/h4>\n<\/p>\n<p><p><strong>\u5f02\u6b65\u53d1\u9001<\/strong>\u7684\u6838\u5fc3\u4f18\u52bf\u5728\u4e8e\u5176\u9ad8\u6548\u7684\u6d88\u606f\u5904\u7406\u80fd\u529b\u3002\u751f\u4ea7\u8005\u5728\u53d1\u9001\u6d88\u606f\u540e\u4e0d\u5fc5\u963b\u585e\u7b49\u5f85\u670d\u52a1\u5668\u7684\u786e\u8ba4\uff0c\u4ece\u800c\u53ef\u4ee5\u4e0d\u65ad\u5730\u53d1\u9001\u66f4\u591a\u6d88\u606f\u3002\u8fd9\u79cd\u975e\u963b\u585e\u7684\u7279\u6027\u4f7f\u5f97\u5f02\u6b65\u53d1\u9001\u6210\u4e3a\u4e86\u9ad8\u5e76\u53d1\u73af\u5883\u4e0b\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><h4><strong>\u53ef\u9760\u6027\u5904\u7406<\/strong><\/h4>\n<\/p>\n<p><p>\u4e3a\u4e86\u4fdd\u8bc1\u5f02\u6b65\u53d1\u9001\u7684\u6570\u636e\u53ef\u9760\u6027\uff0cKafka\u63d0\u4f9b\u4e86\u591a\u79cd\u673a\u5236\uff0c\u5305\u62ec\u91cd\u8bd5\u7b56\u7565\u548c\u56de\u8c03\u51fd\u6570\u3002\u901a\u8fc7\u8fd9\u4e9b\u673a\u5236\uff0c\u5373\u4f7f\u5728\u5f02\u6b65\u53d1\u9001\u6a21\u5f0f\u4e0b\uff0c\u751f\u4ea7\u8005\u4ecd\u7136\u53ef\u4ee5\u5f97\u77e5\u6d88\u606f\u662f\u5426\u6210\u529f\u9001\u8fbe\uff0c\u4ece\u800c\u5728\u5fc5\u8981\u65f6\u8fdb\u884c\u91cd\u8bd5\u6216\u5176\u4ed6\u8865\u6551\u63aa\u65bd\u3002<\/p>\n<\/p>\n<p><h3><strong>\u4e09\u3001\u6279\u91cf\u53d1\u9001<\/strong><\/h3>\n<\/p>\n<p><p>\u6279\u91cf\u53d1\u9001\u662f\u6307\u751f\u4ea7\u8005\u5c06\u591a\u6761\u6d88\u606f\u805a\u5408\u6210\u4e00\u4e2a\u6279\u6b21\u540e\uff0c\u4e00\u6b21\u6027\u53d1\u9001\u7ed9Kafka\u3002\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u5347\u53d1\u9001\u6548\u7387\uff0c\u7279\u522b\u662f\u5728\u6d88\u606f\u4f53\u8f83\u5c0f\u7684\u60c5\u51b5\u4e0b\uff0c\u901a\u8fc7\u51cf\u5c11\u7f51\u7edc\u8bf7\u6c42\u7684\u6b21\u6570\uff0c\u663e\u8457\u51cf\u5c11\u7f51\u7edc\u4f20\u8f93\u5f00\u9500\u3002<\/p>\n<\/p>\n<p><h4><strong>\u51cf\u5c11\u7f51\u7edc\u6d88\u8017<\/strong><\/h4>\n<\/p>\n<p><p><strong>\u6279\u91cf\u53d1\u9001<\/strong>\u901a\u8fc7\u5c06\u591a\u6761\u6d88\u606f\u6253\u5305\u5728\u4e00\u8d77\u53d1\u9001\uff0c\u6781\u5927\u5730\u51cf\u5c11\u4e86\u7f51\u7edc\u8bf7\u6c42\u7684\u6570\u91cf\u3002\u5bf9\u4e8e\u7f51\u7edc\u5ef6\u8fdf\u8f83\u9ad8\u7684\u73af\u5883\uff0c\u6216\u662f\u9700\u8981\u9891\u7e41\u53d1\u9001\u5c0f\u6d88\u606f\u7684\u5e94\u7528\uff0c\u6279\u91cf\u53d1\u9001\u53ef\u4ee5\u6709\u6548\u51cf\u8f7b\u7f51\u7edc\u538b\u529b\uff0c\u63d0\u5347\u6574\u4f53\u7684\u53d1\u9001\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h4><strong>\u6279\u5904\u7406\u7b56\u7565<\/strong><\/h4>\n<\/p>\n<p><p>\u5c3d\u7ba1\u6279\u91cf\u53d1\u9001\u80fd\u591f\u63d0\u9ad8\u6548\u7387\uff0c\u4f46\u5982\u4f55\u786e\u5b9a\u6279\u91cf\u5927\u5c0f\u548c\u53d1\u9001\u95f4\u9694\u6210\u4e3a\u4e00\u4e2a\u5173\u952e\u95ee\u9898\u3002Kafka\u5ba2\u6237\u7aef\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u6279\u5904\u7406\u914d\u7f6e\uff0c\u5305\u62ec\u6700\u5927\u6279\u91cf\u5927\u5c0f\u3001\u53d1\u9001\u5ef6\u8fdf\u65f6\u95f4\u7b49\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u6839\u636e\u5b9e\u9645\u9700\u8981\u7075\u6d3b\u8bbe\u7f6e\uff0c\u4ee5\u8fbe\u5230\u6700\u4f18\u7684\u4f20\u8f93\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><h3><strong>\u603b\u7ed3<\/strong><\/h3>\n<\/p>\n<p><p>Kafka\u6846\u67b6\u63d0\u4f9b\u7684\u540c\u6b65\u53d1\u9001\u3001\u5f02\u6b65\u53d1\u9001\u548c\u6279\u91cf\u53d1\u9001\u4e09\u79cd\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u5404\u6709\u7279\u70b9\uff0c\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u4e1a\u52a1\u573a\u666f\u3002\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u5f00\u53d1\u8005\u9700\u8981\u6839\u636e\u5b9e\u9645\u7684\u9700\u6c42\u548c\u73af\u5883\u7279\u70b9\uff0c\u9009\u62e9\u6700\u5408\u9002\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u4ee5\u4fdd\u8bc1\u9ad8\u6548\u3001\u53ef\u9760\u7684\u6570\u636e\u5904\u7406\u80fd\u529b\u3002\u901a\u8fc7\u5408\u7406\u5229\u7528Kafka\u7684\u9ad8\u7ea7\u7279\u6027\uff0c\u53ef\u4ee5\u5728\u4fdd\u8bc1\u6570\u636e\u53ef\u9760\u6027\u7684\u540c\u65f6\uff0c\u6700\u5927\u5316\u7cfb\u7edf\u7684\u541e\u5410\u7387\u548c\u6027\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. Kafka\u6846\u67b6\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u6709\u54ea\u4e9b\uff1f<\/strong><\/p>\n<p>Kafka\u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u5206\u5e03\u5f0f\u6d88\u606f\u4f20\u9012\u7cfb\u7edf\uff0c\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u5305\u62ec\u4ee5\u4e0b\u51e0\u79cd\u5e38\u89c1\u65b9\u5f0f\uff1a<\/p>\n<p>a) \u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\uff1a\u8fd9\u662fKafka\u7684\u4e3b\u8981\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u4e4b\u4e00\u3002\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0b\uff0c\u6570\u636e\u88ab\u53d1\u5e03\u5230\u4e00\u4e2a\u6216\u591a\u4e2a\u4e3b\u9898\uff08topic\uff09\uff0c\u7136\u540e\u6d88\u8d39\u8005\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u8ba2\u9605\u611f\u5174\u8da3\u7684\u4e3b\u9898\uff0c\u4ece\u800c\u63a5\u6536\u8be5\u4e3b\u9898\u4e0b\u7684\u6570\u636e\u3002\u53d1\u5e03\u8005\u548c\u8ba2\u9605\u8005\u4e4b\u95f4\u901a\u8fc7\u4e3b\u9898\u8fdb\u884c\u89e3\u8026\uff0c\u4f7f\u5f97\u591a\u4e2a\u6d88\u8d39\u8005\u53ef\u4ee5\u540c\u65f6\u8ba2\u9605\u540c\u4e00\u4e2a\u4e3b\u9898\u3002<\/p>\n<p>b) \u6279\u91cf\u6570\u636e\u4f20\u8f93\uff1aKafka\u652f\u6301\u4ee5\u6279\u91cf\u7684\u65b9\u5f0f\u4f20\u8f93\u6570\u636e\u3002\u53ef\u4ee5\u5c06\u591a\u4e2a\u6d88\u606f\u7ec4\u5408\u6210\u4e00\u4e2a\u6279\u6b21\uff0c\u7136\u540e\u4e00\u6b21\u6027\u53d1\u9001\u5230Kafka\u96c6\u7fa4\u4e2d\uff0c\u8fd9\u6837\u53ef\u4ee5\u964d\u4f4e\u7f51\u7edc\u4f20\u8f93\u7684\u5f00\u9500\uff0c\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u7684\u6548\u7387\u3002<\/p>\n<p>c) \u70b9\u5bf9\u70b9\u6a21\u5f0f\uff1a\u9664\u4e86\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\uff0cKafka\u8fd8\u652f\u6301\u70b9\u5bf9\u70b9\u6a21\u5f0f\u7684\u6570\u636e\u4f20\u8f93\u3002\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0b\uff0c\u6570\u636e\u88ab\u53d1\u9001\u5230\u6307\u5b9a\u7684\u6d88\u8d39\u8005\uff0c\u800c\u4e0d\u662f\u5e7f\u64ad\u7ed9\u6240\u6709\u8ba2\u9605\u4e86\u8be5\u4e3b\u9898\u7684\u6d88\u8d39\u8005\u3002\u8fd9\u79cd\u65b9\u5f0f\u9002\u7528\u4e8e\u9700\u8981\u4e00\u5bf9\u4e00\u4ea4\u4e92\u7684\u573a\u666f\uff0c\u4f8b\u5982RPC\uff08\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528\uff09\u3002<\/p>\n<p><strong>2. Kafka\u6846\u67b6\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u6709\u54ea\u4e9b\u9009\u62e9\uff1f<\/strong><\/p>\n<p>Kafka\u63d0\u4f9b\u4e86\u591a\u79cd\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u89c1\u7684\u9009\u62e9\uff1a<\/p>\n<p>a) \u4f7f\u7528Kafka Connect\uff1aKafka Connect\u662fKafka\u6846\u67b6\u7684\u4e00\u90e8\u5206\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u5957\u53ef\u6269\u5c55\u7684\u5de5\u5177\u548cAPI\uff0c\u7528\u4e8e\u5c06Kafka\u4e0e\u5916\u90e8\u6570\u636e\u6e90\u8fdb\u884c\u8fde\u63a5\u3002\u901a\u8fc7Kafka Connect\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6e90\u6570\u636e\u548cKafka\u4e4b\u95f4\u7684\u5b9e\u65f6\u6570\u636e\u4f20\u8f93\u3002<\/p>\n<p>b) \u4f7f\u7528Kafka Streams\uff1aKafka Streams\u662fKafka\u7684\u4e00\u4e2a\u5ba2\u6237\u7aef\u5e93\uff0c\u7528\u4e8e\u6784\u5efa\u548c\u5904\u7406\u5b9e\u65f6\u6d41\u6570\u636e\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u901a\u8fc7Kafka Streams\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728Kafka\u4e2d\u8fdb\u884c\u6d41\u6570\u636e\u5904\u7406\uff0c\u5b9e\u73b0\u6570\u636e\u7684\u8f6c\u6362\u3001\u805a\u5408\u3001\u8fc7\u6ee4\u7b49\u64cd\u4f5c\u3002<\/p>\n<p>c) \u4f7f\u7528Kafka Producer\u548cConsumer API\uff1aKafka\u63d0\u4f9b\u4e86\u4e00\u7ec4\u7b80\u5355\u800c\u5f3a\u5927\u7684Producer\u548cConsumer API\uff0c\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u81ea\u5b9a\u4e49\u7684\u751f\u4ea7\u8005\u548c\u6d88\u8d39\u8005\u4ee3\u7801\u6765\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002\u8fd9\u79cd\u65b9\u5f0f\u66f4\u52a0\u7075\u6d3b\uff0c\u9002\u7528\u4e8e\u590d\u6742\u7684\u6570\u636e\u5904\u7406\u903b\u8f91\u548c\u5b9a\u5236\u5316\u9700\u6c42\u3002<\/p>\n<p><strong>3. Kafka\u6846\u67b6\u652f\u6301\u54ea\u4e9b\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff1f<\/strong><\/p>\n<p>Kafka\u6846\u67b6\u652f\u6301\u591a\u79cd\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u4ee5\u6ee1\u8db3\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\u548c\u5b9e\u65f6\u6570\u636e\u4f20\u8f93\u7684\u9700\u6c42\u3002<\/p>\n<p>a) \u6279\u91cf\u6570\u636e\u4f20\u8f93\uff1aKafka\u652f\u6301\u5c06\u591a\u4e2a\u6d88\u606f\u7ec4\u6210\u4e00\u4e2a\u6279\u6b21\u8fdb\u884c\u4f20\u8f93\uff0c\u4ece\u800c\u964d\u4f4e\u5355\u4e2a\u6d88\u606f\u7684\u4f20\u8f93\u5f00\u9500\u3002\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u5728\u7f51\u7edc\u8d44\u6e90\u6709\u9650\u7684\u60c5\u51b5\u4e0b\u63d0\u9ad8\u4f20\u8f93\u6548\u7387\uff0c\u5e76\u51cf\u5c11\u7cfb\u7edf\u7684\u5ef6\u8fdf\u3002<\/p>\n<p>b) \u5206\u533a\u548c\u5e76\u884c\u4f20\u8f93\uff1aKafka\u5141\u8bb8\u5c06\u6d88\u606f\u5206\u6210\u591a\u4e2a\u5206\u533a\uff0c\u5e76\u884c\u5730\u4f20\u8f93\u5230\u591a\u4e2a\u6d88\u8d39\u8005\u3002\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u7684\u5e76\u53d1\u5904\u7406\u80fd\u529b\uff0c\u4ece\u800c\u5b9e\u73b0\u9ad8\u541e\u5410\u91cf\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n<p>c) \u6570\u636e\u6301\u4e45\u5316\uff1aKafka\u652f\u6301\u5c06\u6570\u636e\u6301\u4e45\u5316\u5230\u78c1\u76d8\uff0c\u4ee5\u4fdd\u8bc1\u6570\u636e\u7684\u53ef\u9760\u6027\u548c\u6301\u4e45\u6027\u3002\u5373\u4f7f\u5728\u7f51\u7edc\u6545\u969c\u6216\u6d88\u8d39\u8005\u5b95\u673a\u7684\u60c5\u51b5\u4e0b\uff0c\u6570\u636e\u4ecd\u7136\u53ef\u4ee5\u88ab\u4fdd\u5b58\u548c\u6062\u590d\u3002<\/p>\n<p>d) \u6c34\u5e73\u6269\u5c55\uff1aKafka\u7684\u5206\u5e03\u5f0f\u67b6\u6784\u5141\u8bb8\u5728\u96c6\u7fa4\u4e2d\u6dfb\u52a0\u66f4\u591a\u7684\u8282\u70b9\uff0c\u4ee5\u6269\u5c55\u6570\u636e\u4f20\u8f93\u7684\u80fd\u529b\u3002\u901a\u8fc7\u589e\u52a0\u96c6\u7fa4\u7684\u89c4\u6a21\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u9ad8\u7684\u6570\u636e\u5904\u7406\u80fd\u529b\u548c\u66f4\u5927\u89c4\u6a21\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Kafka\u6846\u67b6\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u4e3b\u8981\u5305\u62ec\u540c\u6b65\u53d1\u9001\u3001\u5f02\u6b65\u53d1\u9001\u3001\u548c\u6279\u91cf\u53d1\u9001\u3002\u8fd9\u4e9b\u65b9\u5f0f\u5404\u6709\u7279\u70b9\u3001\u4f18\u7f3a\u70b9\uff0c\u9488\u5bf9\u4e0d\u540c\u7684\u4f7f\u7528\u573a [&hellip;]","protected":false},"author":3,"featured_media":314982,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/314961"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=314961"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/314961\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/314982"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=314961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=314961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=314961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}