<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《使用consul实现分布式服务注册和发现》的评论</title>
	<atom:link href="http://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/feed/" rel="self" type="application/rss+xml" />
	<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/</link>
	<description>一个程序员的心路历程</description>
	<lastBuildDate>Wed, 25 Mar 2026 09:21:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>作者：bigwhite</title>
		<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/#comment-7361</link>
		<dc:creator>bigwhite</dc:creator>
		<pubDate>Sun, 05 May 2019 13:39:53 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1758#comment-7361</guid>
		<description>文中只是一个demo。如果应用到生产环境，代码肯定不能这么写。至少也要配置两个consul dns的地址，并且client端增加retry的机制（github.com/miekg/dns的client的Exchange不会retry）。</description>
		<content:encoded><![CDATA[<p>文中只是一个demo。如果应用到生产环境，代码肯定不能这么写。至少也要配置两个consul dns的地址，并且client端增加retry的机制（github.com/miekg/dns的client的Exchange不会retry）。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：allanchen</title>
		<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/#comment-7360</link>
		<dc:creator>allanchen</dc:creator>
		<pubDate>Sun, 05 May 2019 08:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1758#comment-7360</guid>
		<description>如果agentAddr指向的那台consul server挂了呢？</description>
		<content:encoded><![CDATA[<p>如果agentAddr指向的那台consul server挂了呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：诸葛亮</title>
		<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/#comment-7334</link>
		<dc:creator>诸葛亮</dc:creator>
		<pubDate>Wed, 27 Feb 2019 02:11:18 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1758#comment-7334</guid>
		<description>这篇文章写的厉害！细读可以收获很多，感谢！</description>
		<content:encoded><![CDATA[<p>这篇文章写的厉害！细读可以收获很多，感谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：bigwhite</title>
		<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/#comment-7268</link>
		<dc:creator>bigwhite</dc:creator>
		<pubDate>Thu, 06 Sep 2018 22:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1758#comment-7268</guid>
		<description>etcd的还没有:)</description>
		<content:encoded><![CDATA[<p>etcd的还没有:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：秋枫鹤泣</title>
		<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/#comment-7267</link>
		<dc:creator>秋枫鹤泣</dc:creator>
		<pubDate>Thu, 06 Sep 2018 08:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1758#comment-7267</guid>
		<description>大神，有没有讲ectd入门的文章；这篇consul入门文章非常的不错，让我入门consul。</description>
		<content:encoded><![CDATA[<p>大神，有没有讲ectd入门的文章；这篇consul入门文章非常的不错，让我入门consul。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：小花</title>
		<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/#comment-7190</link>
		<dc:creator>小花</dc:creator>
		<pubDate>Tue, 01 May 2018 11:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1758#comment-7190</guid>
		<description>博主你好

在真实的程序中，我们可以像上面demo中那样，每Request都做一次DNS查询，不过这样的代价也很高。稍复杂些，我们可以结合dns结果本地缓存+定期查询+每遇到Failed查询的方式来综合考量服务的发现方法或利用Consul提供的watch命令等。

请问这里关于【dns结果本地缓存+定期查询+每遇到Failed查询】能展开说明下么？谢谢！</description>
		<content:encoded><![CDATA[<p>博主你好</p>
<p>在真实的程序中，我们可以像上面demo中那样，每Request都做一次DNS查询，不过这样的代价也很高。稍复杂些，我们可以结合dns结果本地缓存+定期查询+每遇到Failed查询的方式来综合考量服务的发现方法或利用Consul提供的watch命令等。</p>
<p>请问这里关于【dns结果本地缓存+定期查询+每遇到Failed查询】能展开说明下么？谢谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：嘿嘿matrix</title>
		<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/#comment-1372</link>
		<dc:creator>嘿嘿matrix</dc:creator>
		<pubDate>Tue, 12 Jul 2016 13:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1758#comment-1372</guid>
		<description>超赞！！</description>
		<content:encoded><![CDATA[<p>超赞！！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：张悦</title>
		<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/#comment-1331</link>
		<dc:creator>张悦</dc:creator>
		<pubDate>Wed, 13 Apr 2016 08:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1758#comment-1331</guid>
		<description>/tmp/consul/raft/peers.json  帮了我一个大忙啊，感谢！</description>
		<content:encoded><![CDATA[<p>/tmp/consul/raft/peers.json  帮了我一个大忙啊，感谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：bigwhite</title>
		<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/#comment-1118</link>
		<dc:creator>bigwhite</dc:creator>
		<pubDate>Sun, 16 Aug 2015 19:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1758#comment-1118</guid>
		<description>任何服务的死掉也不能做到完全实时的告知其使用者吧。在吞吐较大的系统中，即便是ms级的服务丢失也会有若干节点在不知情的情况下继续尝试使用该服务。因此使用者在这方面的容错是不可或缺的。至于是否适合实时游戏，我觉得还是看整体设计。consul机制、能实现的功能是摆在那里的。</description>
		<content:encoded><![CDATA[<p>任何服务的死掉也不能做到完全实时的告知其使用者吧。在吞吐较大的系统中，即便是ms级的服务丢失也会有若干节点在不知情的情况下继续尝试使用该服务。因此使用者在这方面的容错是不可或缺的。至于是否适合实时游戏，我觉得还是看整体设计。consul机制、能实现的功能是摆在那里的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：福临</title>
		<link>https://tonybai.com/2015/07/06/implement-distributed-services-registery-and-discovery-by-consul/#comment-1116</link>
		<dc:creator>福临</dc:creator>
		<pubDate>Sun, 16 Aug 2015 16:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://tonybai.com/?p=1758#comment-1116</guid>
		<description>是不是实时性要求高的使用zookeeper更合适呢？</description>
		<content:encoded><![CDATA[<p>是不是实时性要求高的使用zookeeper更合适呢？</p>
]]></content:encoded>
	</item>
</channel>
</rss>
