{"id":1803,"date":"2015-01-18T16:18:12","date_gmt":"2015-01-18T08:18:12","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=1803"},"modified":"2015-01-18T16:18:12","modified_gmt":"2015-01-18T08:18:12","slug":"apache%c2%b7kafka%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/1803.html","title":{"rendered":"Apache\u00b7Kafka\u5b66\u4e60"},"content":{"rendered":"<h6>\u5b98\u65b9\u6587\u6863\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/kafka.apache.org\/\" target=\"_blank\">http:\/\/kafka.apache.org\/<\/a><\/li>\n<li><a href=\"http:\/\/kafka.apache.org\/documentation.html\" target=\"_blank\">http:\/\/kafka.apache.org\/documentation.html<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/apache\/kafka\/\" target=\"_blank\">https:\/\/github.com\/apache\/kafka\/<\/a><\/li>\n<li><a href=\"https:\/\/cwiki.apache.org\/confluence\/display\/KAFKA\/System+Tools\" target=\"_blank\">https:\/\/cwiki.apache.org\/confluence\/display\/KAFKA\/System+Tools<\/a><\/li>\n<\/ul>\n<h6>\u641c\u7d22\u5173\u952e\u5b57\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/search.aol.com\/aol\/search?q=kafka+apache\" target=\"_blank\">http:\/\/search.aol.com\/aol\/search?q=kafka+apache<\/a><\/li>\n<li><a href=\"http:\/\/www.baidu.com\/s?wd=kafka+apache\" target=\"_blank\">http:\/\/www.baidu.com\/s?wd=kafka+apache<\/a><\/li>\n<li><a href=\"http:\/\/www.baidu.com\/s?wd=site%3Ainfoq.com+Kafka\" target=\"_blank\">site:infoq.com Kafka_\u767e\u5ea6\u641c\u7d22<\/a><\/li>\n<\/ul>\n<h6>\u76f8\u5173\/\u53c2\u8003\u94fe\u63a5\uff1a<\/h6>\n<ul>\n<li><a href=\"http:\/\/www.infoq.com\/cn\/news\/2014\/01\/apache-afka-messaging-system\" target=\"_blank\">Apache Kafka \u2014\u4e00\u4e2a\u4e0d\u540c\u7684\u6d88\u606f\u7cfb\u7edf<\/a><\/li>\n<li><a href=\"http:\/\/blog.csdn.net\/lizhitao\/article\/details\/39499283\" target=\"_blank\">apache kafka\u6280\u672f\u5206\u4eab\u7cfb\u5217(\u76ee\u5f55\u7d22\u5f15) &#8211; \u674e\u5fd7\u6d9b\u7684\u4e13\u680f<\/a><\/li>\n<li><a href=\"http:\/\/blog.csdn.net\/chszs\/article\/details\/20875793\" target=\"_blank\">Apache Kafka\u5f00\u53d1\u5165\u95e8\u6307\u5357 &#8211; chszs\u7684\u4e13\u680f<\/a><\/li>\n<li><a href=\"http:\/\/my.oschina.net\/ielts0909\/blog\/117489\" target=\"_blank\">kafka\u7cfb\u5217\u6587\u7ae0\u7d22\u5f15 &#8211; A2 Studio<\/a>\u00a0 #\u76f8\u5f53\u68d2\uff01<\/li>\n<li><a href=\"http:\/\/www.oschina.net\/translate\/kafka-design\" target=\"_blank\">\u5206\u5e03\u5f0f\u53d1\u5e03\u8ba2\u9605\u6d88\u606f\u7cfb\u7edf Kafka \u67b6\u6784\u8bbe\u8ba1 &#8211; \u6280\u672f\u7ffb\u8bd1<\/a>\u00a0#\u8d5e\uff01<\/li>\n<li><a href=\"http:\/\/rockybean.github.io\/2012\/07\/30\/jafka-design\/\" target=\"_blank\">Kafka\u8bbe\u8ba1\u7406\u5ff5\u6d45\u6790<\/a><\/li>\n<li><a href=\"http:\/\/tech.meituan.com\/kafka-fs-design-theory.html\" target=\"_blank\">Kafka\u6587\u4ef6\u5b58\u50a8\u673a\u5236\u90a3\u4e9b\u4e8b<\/a><\/li>\n<li><a href=\"http:\/\/tech.meituan.com\/mt-log-system-arch.html\" target=\"_blank\">\u57fa\u4e8eFlume\u7684\u7f8e\u56e2\u65e5\u5fd7\u6536\u96c6\u7cfb\u7edf(\u4e00)\u67b6\u6784\u548c\u8bbe\u8ba1<\/a><\/li>\n<li><a href=\"http:\/\/tech.meituan.com\/mt-log-system-optimization.html\" target=\"_blank\">\u57fa\u4e8eFlume\u7684\u7f8e\u56e2\u65e5\u5fd7\u6536\u96c6\u7cfb\u7edf(\u4e8c)\u6539\u8fdb\u548c\u4f18\u5316<\/a><\/li>\n<\/ul>\n<hr \/>\n<h5>Kafka\u5b89\u88c5\u914d\u7f6e[\u7b80\u5355\u7248]<\/h5>\n<p>\u53c2\u7167\uff1a<a href=\"http:\/\/kafka.apache.org\/documentation.html#quickstart\" target=\"_blank\">http:\/\/kafka.apache.org\/documentation.html#quickstart<\/a><\/p>\n<p>Kafka uses ZooKeeper so you need to first start a ZooKeeper server if you don&#8217;t already have one. You can use the convenience script packaged with kafka to get a quick-and-dirty single-node ZooKeeper instance.\uff08Kafka\u4f7f\u7528\u4e86ZooKeeper\uff0c\u6240\u4ee5\u4f60\u5728\u4f7f\u7528Kafka\u4e4b\u524d\u9700\u8981\u5148\u542f\u52a8\u4e00\u4e2aZooKeeper\uff0c\u5982\u679c\u4f60\u6ca1\u6709\u7684\u8bdd\uff0c\u53ef\u4ee5\u4f7f\u7528\u548cKafka\u4e00\u8d77\u6253\u5305\u7684\u4e00\u4e2a\u811a\u672c\u65b9\u4fbf\u7684\u8fdb\u884c\u542f\u52a8\u6d4b\u8bd5\uff09<\/p>\n<h6>\u5148\u8fdb\u5165\u5bf9\u5e94\u7684Kafka\u76ee\u5f55\uff0c\u7136\u540e\u6267\u884c\uff1a<\/h6>\n<pre class=\"lang:default decode:true\">&gt; bin\/zookeeper-server-start.sh config\/zookeeper.properties\u00a0\u00a0#\u542f\u52a8ZooKeeper\n\n&gt; bin\/kafka-server-start.sh config\/server.properties \u00a0#\u7136\u540e\u542f\u52a8Kafka<\/pre>\n<h6>\u542f\u52a8\u4e86\u4e4b\u540e\u518d\u6267\u884c\u521b\u5efatopic\u3001producer\u53d1\u9001\u6d88\u606f\u3001consumer\u6d88\u8d39\u6d88\u606f\u7684\u7b80\u5355\u6d4b\u8bd5\uff1a<\/h6>\n<pre class=\"lang:default decode:true\">&gt; bin\/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test\u00a0\u00a0#\u521b\u5efa\u4e00\u4e2a\u53eb\u505a\u201ctest\u201d\u7684topic\n\n&gt; bin\/kafka-topics.sh --list --zookeeper localhost:2181\u00a0\u00a0#\u67e5\u770b\u5df2\u6709\u7684topic\u5217\u8868\ntest<\/pre>\n<pre class=\"lang:default decode:true\">&gt; bin\/kafka-console-producer.sh --broker-list localhost:9092 --topic test\u00a0\u00a0\u00a0 #\u542f\u52a8producer\uff08\u7531\u63a7\u5236\u53f0\u8f93\u5165\u6d88\u606f\uff09\nThis is a message\u00a0\u00a0\u00a0 #\u81ea\u5df1\u8f93\u5165\u7684\nThis is another message\u00a0 #\u81ea\u5df1\u8f93\u5165\u7684<\/pre>\n<p>{<\/p>\n<p>\u4e4b\u524d\u5728\uff1a&gt; bin\/kafka-console-producer.sh &#8211;broker-list localhost:9092 &#8211;topic test\u00a0\u00a0\u00a0 \u62a5\u9519\u5982\u4e0b\uff1a<\/p>\n<p><span style=\"color: #ff0000;\">SLF4J: Failed to load class &#8220;org.slf4j.impl.StaticLoggerBinder&#8221;.\u00a0<\/span><\/p>\n<p><span style=\"color: #ff0000;\">SLF4J: Defaulting to no-operation (NOP) logger implementation\u00a0<\/span><\/p>\n<p><span style=\"color: #ff0000;\">SLF4J: See <a style=\"color: #ff0000;\" href=\"http:\/\/www.slf4j.org\/codes.html#StaticLoggerBinder\" target=\"_blank\">http:\/\/www.slf4j.org\/codes.html#StaticLoggerBinder<\/a> for further details.<\/span><\/p>\n<p>\u6839\u636e\u4e0a\u9762\u7684\u94fe\u63a5\u67e5\u627e\u89e3\u51b3\u65b9\u6cd5\uff0c\u4ee5\u4e3a\u662fJava\u7684\u7248\u672c\u3001CLASSPATH\u7684\u8bbe\u7f6e\u6709\u95ee\u9898\uff0c\u540e\u6765\u8bbe\u7f6e\u6210\u4e86Oracle\u7684Java\uff0c\u4fee\u6539\u4e86CLASSPATH\u4f46\u662f\u4e5f\u6ca1\u6709\u89e3\u51b3\uff1b\u5728\u4e2d\u6587\u4e2d\u4e00\u641c\u5c31\u627e\u5230\u4e86\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<p>\u9700\u8981<span style=\"color: #ff0000;\"><strong>\u4e0b\u8f7d slftj-nop-1.5.jar<\/strong><\/span> {<a href=\"http:\/\/www.slf4j.org\/download.html\" target=\"_blank\">http:\/\/www.slf4j.org\/download.html<\/a>}\uff0c\u5e76<span style=\"color: #ff0000;\"><strong>\u5c06\u5176\u62f7\u8d1d\u81f3Kafka\u7684libs\u76ee\u5f55\u4e0b<\/strong><\/span><\/p>\n<p>}<\/p>\n<pre class=\"lang:default decode:true\">&gt; bin\/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning\u00a0\u00a0\u00a0 #\u542f\u52a8consumer\uff08\u4ece\u5934\u5f00\u59cb\u63a5\u6536\u6d88\u606f\uff09\nThis is a message\nThis is another message<\/pre>\n<p>So far we have been running against a single broker, but that&#8217;s no fun. For Kafka, a single broker is just a cluster of size one, so nothing much changes other than starting a few more broker instances. But just to get feel for it, let&#8217;s expand our cluster to three nodes (still all on our local machine).\uff08\u4ee5\u4e0a\u6211\u4eec\u53ea\u662f\u8fdb\u884c\u4e86\u7b80\u5355\u7684\u2014\u2014\u5355broker\u7684Kafka\u6d4b\u8bd5\uff0c\u4f46\u8fd9\u663e\u7136\u662f\u4e0d\u591f\u7684\uff0c\u6240\u4ee5\uff0c\u4e0b\u9762\u6211\u4eec\u4f1a\u5728\u5355\u673a\u4e0a\u542f\u52a83\u4e2abroker\u5b9e\u4f8b\uff0c\u611f\u89c9\u4e00\u4e0bKafka\u7684cluster\u6548\u679c\uff09<\/p>\n<hr \/>\n<p>First we make a config file for each of the brokers\uff08\u9996\u5148\u5206\u522b\u4e3a\u6bcf\u4e00\u4e2abroker\u5728\u9ed8\u8ba4\u914d\u7f6e\u7684\u57fa\u7840\u4e0a\u521b\u5efa\u4e00\u4e2aconfig\u6587\u4ef6\uff09:<\/p>\n<pre class=\"lang:default decode:true\">&gt; cp config\/server.properties config\/server-1.properties\n\n&gt; cp config\/server.properties config\/server-2.properties<\/pre>\n<p>Now edit these new files and set the following properties:<\/p>\n<pre class=\"lang:default decode:true\">config\/server-1.properties:\n\u00a0\u00a0\u00a0 broker.id=1\n\u00a0\u00a0\u00a0 port=9093\n\u00a0\u00a0\u00a0 log.dir=\/tmp\/kafka-logs-1<\/pre>\n<pre class=\"lang:default decode:true\">config\/server-2.properties:\n\u00a0\u00a0\u00a0 broker.id=2\n\u00a0\u00a0\u00a0 port=9094\n\u00a0\u00a0\u00a0 log.dir=\/tmp\/kafka-logs-2<\/pre>\n<p>The broker.id property is the unique and permanent name of each node in the cluster. We have to override the port and log directory only because we are running these all on the same machine and we want to keep the brokers from all trying to register on the same port or overwrite each others data.\uff08\u4e3b\u8981\u4fee\u65393\u70b9\u4fe1\u606f\uff1a\u6bcf\u4e2abroker\u7684broker.id\u5728cluster\u4e2d\u5fc5\u987b\u662f\u552f\u4e00\u7684\uff1b\u4fee\u6539port\u548clog.dir\u7684\u539f\u56e0\u5728\u4e8e\u2014\u2014\u6211\u4eec\u662f\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u8fdb\u884c\u7684\u591abroker\u7684\u6d4b\u8bd5\uff0c\u4e3a\u4e86\u907f\u514d\u51b2\u7a81\u548c\u9519\u8bef\uff09<\/p>\n<p>We already have Zookeeper and our single node started, so we just need to start the two new nodes\uff08\u56e0\u4e3a\u4e4b\u524d\u6211\u4eec\u5df2\u7ecf\u542f\u52a8\u4e86ZooKeeper\u548c\u4e00\u4e2aKafka\u5b9e\u4f8b\uff0c\u6240\u4ee5\u63a5\u4e0b\u6765\u53ea\u9700\u8981\u518d\u5f00\u542f2\u4e2aKafka\u5b9e\u4f8b\u5373\u53ef\uff09:<\/p>\n<pre class=\"lang:default decode:true\">&gt; bin\/kafka-server-start.sh config\/server-1.properties &amp;\n...\n&gt; bin\/kafka-server-start.sh config\/server-2.properties &amp;\n...<\/pre>\n<p>Now create a new topic with a replication factor of three\uff08\u73b0\u5728\u521b\u5efa\u4e00\u4e2a3\u590d\u5236\u56e0\u5b50\u7684\u65b0topic\uff09:<\/p>\n<pre class=\"lang:default decode:true\">&gt; bin\/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 3 --partitions 1 --topic my-replicated-topic<\/pre>\n<p>Okay but now that we have a cluster how can we know which broker is doing what? To see that run the &#8220;describe topics&#8221; command\uff08\u521b\u5efa\u4e86\u4e4b\u540e\u6211\u4eec\u5982\u4f55\u77e5\u9053\u6bcf\u4e00\u4e2abroker\u5206\u522b\u5728\u505a\u4e9b\u4ec0\u4e48\u5462\uff1f\u8fd9\u65f6\u53ef\u4ee5\u901a\u8fc7describe\u9009\u9879\u8fdb\u884c\u67e5\u770b\uff09:<\/p>\n<pre class=\"lang:default decode:true\">&gt; bin\/kafka-topics.sh --describe --zookeeper localhost:2181 --topic my-replicated-topic\nTopic:my-replicated-topic\u00a0\u00a0\u00a0\u00a0\u00a0 PartitionCount:1\u00a0\u00a0\u00a0\u00a0 ReplicationFactor:3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Configs:\n\u00a0\u00a0\u00a0\u00a0Topic: my-replicated-topic\u00a0\u00a0\u00a0\u00a0 Partition: 0\u00a0\u00a0\u00a0\u00a0 Leader: 1 Replicas: 1,2,0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Isr: 1,2,0<\/pre>\n<p>Here is an explanation of output. The first line gives a summary of all the partitions, each additional line gives information about one partition. Since we have only one partition for this topic there is only one line\uff08\u5bf9\u4ee5\u4e0a\u8f93\u51fa\u5185\u5bb9\u7684\u89e3\u91ca\uff1a\u7b2c\u4e00\u884c\u662f\u6240\u6709\u5206\u533a\u7684\u4e00\u4e2a\u603b\u7ed3\uff1b\u6bcf\u591a\u4e00\u884c\u5c31\u662f\u5bf9\u4e00\u4e2apartion\u7684\u8be6\u7ec6\u8bf4\u660e\uff0c\u8fd9\u91cc\u56e0\u4e3a\u53ea\u6709\u4e00\u4e2apartition\uff0c\u6240\u4ee5\u4e5f\u5c31\u53ea\u6709\u4e00\u884c\uff09.<\/p>\n<p>&#8220;leader&#8221; is the node responsible for all reads and writes for the given partition. Each node will be the leader for a randomly selected portion of the partitions.\uff08leader\u662f\u968f\u673a\u9009\u51fa\u7684\uff09<\/p>\n<p>&#8220;replicas&#8221; is the list of nodes that replicate the log for this partition regardless of whether they are the leader or even if they are currently alive.\uff08replicas\u662f\u5728\u8be5partition\u4e2d\u8981\u590d\u5236log\u4fe1\u606f\u7684\u8282\u70b9\u5217\u8868\uff0c\u4e0d\u8003\u8651\u8be5\u8282\u70b9\u662f\u5426\u4e3aleader\u6216\u662falive\uff09<\/p>\n<p>&#8220;isr&#8221; is the set of &#8220;in-sync&#8221; replicas. This is the subset of the replicas list that is currently alive and caught-up to the leader.\uff08isr\u662f\u201din-sync\u201d\u7684\u526f\u672c\uff0c\u662f\u5f53\u524d\u5b58\u6d3b\/\u6b63\u5728\u5de5\u4f5c\u7684\u8282\u70b9\u5217\u8868\uff09<\/p>\n<p>Let&#8217;s publish a few messages to our new topic\uff08\u901a\u8fc7producer\u53d1\u5e03\u4e00\u4e9b\u65b0\u7684message\u5230\u6307\u5b9atopic\u4e2d\uff09:<\/p>\n<pre class=\"lang:default decode:true\">&gt; bin\/kafka-console-producer.sh --broker-list localhost:9092 --topic my-replicated-topic\n...\nmy test message 1\u00a0\u00a0 #\u81ea\u5df1\u4ececonsole\u8f93\u5165\u7684\nmy test message 2\u00a0\u00a0 #\u81ea\u5df1\u4ececonsole\u8f93\u5165\u7684\n^C<\/pre>\n<p>Now let&#8217;s consume these messages\uff08\u7136\u540econsumer\u6d88\u8d39\u8fd9\u4e9b\u4fe1\u606f\uff09:<\/p>\n<pre class=\"lang:default decode:true\">&gt; bin\/kafka-console-consumer.sh --zookeeper localhost:2181 --from-beginning --topic my-replicated-topic\n...\nmy test message 1\nmy test message 2\n^C<\/pre>\n<p>Now let&#8217;s test out fault-tolerance. Broker 1 was acting as the leader so let&#8217;s kill it\uff08\u63a5\u4e0b\u6765\u6d4b\u8bd5\u4e00\u4e0bcluster\u7684\u5bb9\u9519\u6027\uff0c\u8fd9\u91cc\u5148\u6d4b\u8bd5\u5c06leader\u8282\u70b9kill\u6389\u4e4b\u540e\u7684\u6548\u679c\uff09:<\/p>\n<pre class=\"lang:default decode:true\">&gt; ps | grep server-1.properties\n7564 ttys002\u00a0\u00a0\u00a0 0:15.91 \/System\/Library\/Frameworks\/JavaVM.framework\/Versions\/1.6\/Home\/bin\/java...\n\n&gt; kill -9 7564<\/pre>\n<p>Leadership has switched to one of the slaves and node 1 is no longer in the in-sync replica set\uff08\u901a\u8fc7describe\u9009\u9879\u53ef\u4ee5\u67e5\u770b\u5230leader\u7684id\u5df2\u7ecf\u4ece\u4e4b\u524d\u76841\u53f7\u8282\u70b9\u5207\u6362\u5230\u4e86\u4e4b\u524d\u76842\u53f7\u4ece\u8282\u70b9\uff0c\u5e76\u4e141\u53f7\u8282\u70b9\u5df2\u7ecf\u4e0d\u518disr\u96c6\u5408\u4e2d\u4e86\uff09:<\/p>\n<pre class=\"lang:default decode:true\">&gt; bin\/kafka-topics.sh --describe --zookeeper localhost:2181 --topic my-replicated-topic\nTopic:my-replicated-topic\u00a0\u00a0\u00a0\u00a0\u00a0 PartitionCount:1\u00a0\u00a0\u00a0\u00a0 ReplicationFactor:3\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Configs:\n\u00a0\u00a0\u00a0\u00a0Topic: my-replicated-topic\u00a0\u00a0\u00a0\u00a0 Partition: 0\u00a0\u00a0\u00a0\u00a0 Leader: 2 Replicas: 1,2,0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Isr: 2,0<\/pre>\n<p>But the messages are still be available for consumption even though the leader that took the writes originally is down\uff08\u5373\u4f7f\u662f\u5728leader\u88abkill\u6389\u4e86\u4e4b\u540e\uff0cmessage\u4f9d\u7136\u53ef\u7528\uff09:<\/p>\n<pre class=\"lang:default decode:true\">&gt; bin\/kafka-console-consumer.sh --zookeeper localhost:2181 --from-beginning --topic my-replicated-topic\n...\nmy test message 1\nmy test message 2\n^C<\/pre>\n<hr \/>\n<p>\u7136\u540e\uff0c\u7b80\u5355\u603b\u7ed3\u4e0bKafka\u7cfb\u7edf\u8fd0\u884c\u7684\u5927\u4f53\u6d41\u7a0b\/\u987a\u5e8f\uff1a<\/p>\n<ol>\n<li>\u542f\u52a8ZooKeeper\u7684server<\/li>\n<li>\u542f\u52a8Kafka\u7684server<\/li>\n<li>\u521b\u5efatopic\uff08topic\u5c31\u7c7b\u4f3c\u4e8e\u4e00\u4e2a\u961f\u5217\uff09<\/li>\n<li>Producer\u5982\u679c\u751f\u4ea7\u4e86\u6570\u636e\uff0c\u4f1a\u5148\u901a\u8fc7ZooKeeper\u627e\u5230broker\uff0c\u7136\u540e\u5c06\u6570\u636e\u653e\u8fdbbroker<\/li>\n<li>Consumer\u5982\u679c\u8981\u6d88\u8d39\u6570\u636e\uff0c\u4f1a\u5148\u901a\u8fc7ZooKeeper\u627e\u5bf9\u5e94\u7684broker\uff0c\u7136\u540e\u6d88\u8d39<\/li>\n<\/ol>\n<p><a href=\"http:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2015\/01\/kafka_brief.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1804 size-full\" src=\"http:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2015\/01\/kafka_brief.png\" alt=\"kafka_brief\" width=\"636\" height=\"288\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b98\u65b9\u6587\u6863\uff1a http:\/\/kafka.apache.org\/ http:\/\/kafka.apache.org\/ [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,12],"tags":[435,10],"class_list":["post-1803","post","type-post","status-publish","format-standard","hentry","category-other","category-tools","tag-apache","tag-kafka"],"views":6257,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/1803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=1803"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/1803\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=1803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=1803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=1803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}