In [24]:
import redis
r = redis.StrictRedis(host='localhost', port=6380, db=0)
p = r.pubsub()
p.subscribe('craw-to-text')
c

In [16]:
def wait_for_redis(r):
	ready = True
	while ready:
		try:
			r.set('ready','go')
			ready = False
		except:
			pass
			
rp = redis.StrictRedis(host='localhost', port=6379, db=0)
wait_for_redis(rp)

In [25]:
r.publish('text-to-craw', 20023491)


Out[25]:
1L

In [4]:
r.publish('craw-to-text', 20023491)


Out[4]:
1L

In [22]:
p.get_message()

In [9]:
from pymongo import MongoClient
client = MongoClient('localhost', 27017)

In [10]:
def wait_for_mongo(c):
	ready = True
	while ready:
		try:
			c.database_names()
			ready = False
		except:
			pass

In [11]:
wait_for_mongo(client)

In [26]:
db = client.zhihu
topic = db.topic
question = db.question
question_answer = db.question_answer
answer_comment = db.answer_comment

In [27]:
topic_token = '20023491'

In [28]:
topic_ = topic.find_one({'topic_token':topic_token})

In [44]:
topic_corpora = u''

In [45]:
topic_corpora = topic_corpora+topic_['data']['name']

In [34]:
qtl = topic_['question_token_list']

In [35]:
print topic_corpora


微服务架构

In [36]:
qtl


Out[36]:
[u'45413135',
 u'61085805',
 u'51436292',
 u'42812221',
 u'50852183',
 u'36501858',
 u'54692776',
 u'37808426',
 u'35980124']

In [38]:
qt = qtl[0]

In [39]:
q_ = question.find_one({'question_token':qt})

In [40]:
q_


Out[40]:
{u'_id': u'45413135',
 u'question_token': u'45413135',
 u'questions': {u'created': 1462337954,
  u'id': 45413135,
  u'question_type': u'normal',
  u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
  u'type': u'question',
  u'updated_time': 1470388723,
  u'url': u'http://www.zhihu.com/api/v4/questions/45413135'}}

In [46]:
topic_corpora = topic_corpora+' '+q_['questions']['title']
print topic_corpora


微服务架构 请问哪位大神比较过spring cloud和dubbo,各自的优缺点是什么?

In [47]:
qa_ = question_answer.find_one({'question_token':qt})

In [50]:
qa_


Out[50]:
{u'_id': u'45413135',
 u'answers': {u'items': [{u'author': {u'avatar_url': u'https://pic2.zhimg.com/v2-3371804eb607f161688f6d1b931ee37d_is.jpg',
     u'avatar_url_template': u'https://pic2.zhimg.com/v2-3371804eb607f161688f6d1b931ee37d_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'\u4e92\u8054\u7f51',
     u'id': u'e29f0a569c1fba5fa7e8067d8b6f5896',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u91d1\u53ef\u4f1f',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/e29f0a569c1fba5fa7e8067d8b6f5896',
     u'url_token': u'jin-ke-wei-50',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 7,
    u'comment_permission': u'all',
    u'content': u'\u4ece\u9879\u76ee\u7684\u80cc\u666f\u6765\u770b\uff0cDubbo \u56fd\u5185\u7528\u7684\u516c\u53f8\u633a\u591a\uff0c\u56fd\u5185\u5f71\u54cd\u529b\u5927\uff0cSpring Cloud \u81ea\u7136\u5728\u56fd\u5916\u5f71\u54cd\u529b\u8f83\u5927\uff0c\u6240\u4ee5\u8fd9\u4e2a\u6765\u770b\u4e0d\u5206\u4f2f\u4ef2\u4e86\uff0c\u6bd5\u7adf\u90fd\u6709\u5927\u516c\u53f8\u5728\u4f7f\u7528\u3002<br>\u4ece\u793e\u533a\u7684\u6d3b\u8dc3\u5ea6\u6765\u770b\uff0c\u53ef\u4ee5\u770b\u4e0b\u5404\u81ea\u7684Github\u6258\u7ba1\u9879\u76ee\u6765\u533a\u5206\uff0c<a href="https://link.zhihu.com/?target=https%3A//github.com/dubbo" class=" wrap external" target="_blank" rel="nofollow noreferrer">Dubbo \xb7 GitHub<i class="icon-external"></i></a> \u4e0e <a href="https://link.zhihu.com/?target=https%3A//github.com/spring-cloud" class=" wrap external" target="_blank" rel="nofollow noreferrer">Spring Cloud \xb7 GitHub<i class="icon-external"></i></a> \uff0c\u4ece\u66f4\u65b0\u9891\u7387\u4e0e\u66f4\u65b0\u65f6\u95f4\u6765\u770b Spring Cloud \u4f18\u4e8eDubbo\uff0cDubbo\u57fa\u672c\u4e0d\u7ef4\u62a4\u4e86\u3002<br>\u4ece\u6846\u67b6\u7684\u5b8c\u6574\u5ea6\u6765\u770b\uff0cDubbo\u53ea\u662f\u5b9e\u73b0\u4e86\u670d\u52a1\u6cbb\u7406\uff08\u6ce8\u518c \u53d1\u73b0\u7b49\uff09\uff0c\u800cSpring Cloud\u4e0b\u9762\u6709\u5f88\u591a\u4e2a\u5b50\u9879\u76ee\u8986\u76d6\u4e86\u5fae\u670d\u52a1\u67b6\u6784\u4e0b\u7684\u65b9\u65b9\u9762\u9762\uff0c\u670d\u52a1\u6cbb\u7406\u53ea\u662f\u5176\u4e2d\u7684\u4e00\u4e2a\u65b9\u9762\uff0c\u4e00\u5b9a\u7a0b\u5ea6\u6765\u8bf4\uff0cDubbo\u53ea\u662fSpring Cloud Netflix\u4e2d\u7684\u4e00\u4e2a\u5b50\u96c6\u3002\u5982\u679c\u9009\u62e9Spring Cloud\uff0c\u57fa\u672c\u4e0a\u6bcf\u4e2a\u73af\u8282\u90fd\u5df2\u7ecf\u6709\u4e86\u5bf9\u5e94\u7684\u7ec4\u4ef6\u652f\u6301\uff0c\u53ef\u80fd\u6709\u4e9b\u4e5f\u4e0d\u4e00\u5b9a\u80fd\u6ee1\u8db3\u4f60\u6240\u6709\u7684\u9700\u6c42\uff0c\u4f46\u662f\u5176\u6d3b\u8dc3\u7684\u793e\u533a\u4e0e\u5feb\u901f\u7684\u8fed\u4ee3\u66f4\u65b0\u4e5f\u4f1a\u8ba9\u4f60\u6ca1\u6709\u540e\u987e\u4e4b\u5fe7\u3002<br><br>\u6211\u53f8\u6b63\u5728\u5c1d\u8bd5\u4f7f\u7528SpringCloud\uff0c\u6709\u5174\u8da3\u53ef\u4ee5\u8fdb\u884c\u4ea4\u6d41\u3002',
    u'created_time': 1476774127,
    u'editable_content': u'',
    u'excerpt': u'\u4ece\u9879\u76ee\u7684\u80cc\u666f\u6765\u770b\uff0cDubbo \u56fd\u5185\u7528\u7684\u516c\u53f8\u633a\u591a\uff0c\u56fd\u5185\u5f71\u54cd\u529b\u5927\uff0cSpring Cloud \u81ea\u7136\u5728\u56fd\u5916\u5f71\u54cd\u529b\u8f83\u5927\uff0c\u6240\u4ee5\u8fd9\u4e2a\u6765\u770b\u4e0d\u5206\u4f2f\u4ef2\u4e86\uff0c\u6bd5\u7adf\u90fd\u6709\u5927\u516c\u53f8\u5728\u4f7f\u7528\u3002 \u4ece\u793e\u533a\u7684\u6d3b\u8dc3\u5ea6\u6765\u770b\uff0c\u53ef\u4ee5\u770b\u4e0b\u5404\u81ea\u7684Github\u6258\u7ba1\u9879\u76ee\u6765\u533a\u5206\uff0c<a href="https://link.zhihu.com/?target=https%3A//github.com/dubbo" class=" wrap external" target="_blank" rel="nofollow noreferrer">Dubbo \xb7 GitHub<i class="icon-external"></i></a> \u4e0e <a href="https://link.zhihu.com/?target=https%3A//github.com/spring-cloud" class=" wrap external" target="_blank" rel="nofollow noreferrer">Spring Cloud \xb7 GitHub<i class="icon-external"></i></a> \uff0c\u2026',
    u'extras': u'',
    u'id': 127169875,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1476774127,
    u'url': u'http://www.zhihu.com/api/v4/answers/127169875',
    u'voteup_count': 31},
   {u'author': {u'avatar_url': u'https://pic3.zhimg.com/a72517a628b0024751c7282e8b30906e_is.jpg',
     u'avatar_url_template': u'https://pic3.zhimg.com/a72517a628b0024751c7282e8b30906e_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'Java\u9ad8\u7ea7\u5de5\u7a0b\u5e08',
     u'id': u'bef8fc3aca805eb743c75db1b03c0d97',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u5f20\u9732\u5175',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/bef8fc3aca805eb743c75db1b03c0d97',
     u'url_token': u'zhanglubing',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 1,
    u'comment_permission': u'all',
    u'content': u'\u5f15\u7528\u4e4b\u524d\u770b\u5230\u7684\u4e00\u7bc7\u6587\u7ae0\uff1a<br><a href="https://link.zhihu.com/?target=http%3A//blog.didispace.com/microservice-framework/" class=" wrap external" target="_blank" rel="nofollow noreferrer">\u5fae\u670d\u52a1\u67b6\u6784\u7684\u57fa\u7840\u6846\u67b6\u9009\u62e9\uff1aSpring Cloud\u8fd8\u662fDubbo\u3010\u7a0b\u5e8f\u733fDD\u3011<i class="icon-external"></i></a><br>\u6587\u7ae0\u5bf9\u8fd9\u4e24\u4e2a\u6846\u67b6\u8fdb\u884c\u4e86\u5bf9\u6bd4\u548c\u5206\u6790\uff0c<br>\u5e0c\u671b\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002',
    u'created_time': 1472006322,
    u'editable_content': u'',
    u'excerpt': u'\u5f15\u7528\u4e4b\u524d\u770b\u5230\u7684\u4e00\u7bc7\u6587\u7ae0\uff1a <a href="https://link.zhihu.com/?target=http%3A//blog.didispace.com/microservice-framework/" class=" wrap external" target="_blank" rel="nofollow noreferrer">\u5fae\u670d\u52a1\u67b6\u6784\u7684\u57fa\u7840\u6846\u67b6\u9009\u62e9\uff1aSpring Cloud\u8fd8\u662fDubbo\u3010\u7a0b\u5e8f\u733fDD\u3011<i class="icon-external"></i></a> \u6587\u7ae0\u5bf9\u8fd9\u4e24\u4e2a\u6846\u67b6\u8fdb\u884c\u4e86\u5bf9\u6bd4\u548c\u5206\u6790\uff0c \u5e0c\u671b\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002',
    u'extras': u'',
    u'id': 118591724,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1472006322,
    u'url': u'http://www.zhihu.com/api/v4/answers/118591724',
    u'voteup_count': 12},
   {u'author': {u'avatar_url': u'https://pic3.zhimg.com/57a5df106_is.jpg',
     u'avatar_url_template': u'https://pic3.zhimg.com/57a5df106_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'Spring Boot\u548cSpring Cloud\u662fSpring\u98a0\u8986\u6027\u7684\u6846\u67b6',
     u'id': u'd393bcd439d4ec227cded672c11459eb',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'Michael',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/d393bcd439d4ec227cded672c11459eb',
     u'url_token': u'zhang-yi-chen-79',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 2,
    u'comment_permission': u'all',
    u'content': u'spring cloud \u662f\u4e00\u6574\u5957\u5fae\u670d\u52a1\u7684\u7ec4\u4ef6\u3002\u4ece\u529f\u80fd\u4e0a\u6765\u8bf4spring cloud\u5305\u542b\u7684\u529f\u80fd\u8fdc\u591a\u4e8edubbo\u3002<br>dubbo\u76ee\u524d\u5904\u4e8e\u4e0d\u7ef4\u62a4\u72b6\u6001\u3002\u800cspring cloud netflix\u793e\u533a\u6d3b\u8dc3\u5ea6\u9ad8<br><br>\u4e24\u8005\u7684\u5751\u90fd\u4e0d\u5c11\uff0cdubbo\u4e0d\u7ef4\u62a4\u540e\uff0c\u5f53\u5f53\u7684dubbox\u5751\u7a0d\u5fae\u6bd4dubbo\u7684\u8981\u5c11\u3002<br>\u800cspring cloud\u7531\u4e8e\u65f6\u95f4\u95ee\u9898\u9879\u76ee\u8fd8\u4e0d\u662f\u7279\u522b\u6210\u719f\uff0c\u5305\u62ec\u65b0\u7ec4\u4ef6\u4e0d\u65ad\u7684\u6dfb\u52a0\uff0c\u96c6\u6210\u65b9\u9762\u5751\u4e5f\u4e0d\u5c11\u3002<br>\u5c31\u62ff\u4e00\u4e2a\u7b80\u5355\u7684spring cloud config\u6765\u8bf4\uff0c\u5728\u914d\u7f6e\u4e2d\u5fc3\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff0c\u5230Brixton.SR6\u7248\u672c\u624d\u80fd\u6b63\u5e38\u63a8\u9001\u7ed9\u5bf9\u5e94\u7684server\u3002<br><br>\u957f\u8fdc\u89d2\u5ea6\u4e0a\u6765\u770b\u3002spring cloud \u8fd8\u662f\u633a\u4e0d\u9519\u7684\u3002<br><br>\u6700\u540e<br>\u5206\u4eab\u4e00\u4e0b\u81ea\u5df1\u8e29\u5751\u540e\u6784\u5efa\u7684\u811a\u624b\u67b6\u7684\u9879\u76ee\u3002<br>\u57fa\u4e8e spring cloud \u7684\u4e00\u4e2a\u5fae\u670d\u52a1\u7cfb\u7edf\u7684\u5b9e\u4f8b \u9879\u76ee\u5305\u62ec\u5982\u4e0b\u529f\u80fd\uff1a<br>\u914d\u7f6e\u7ba1\u7406 \u3001\u670d\u52a1\u53d1\u73b0\u3001\u7194\u65ad,\u3001\u52a8\u6001\u8def\u7531\u3001\u5206\u5e03\u5f0f\u8ddf\u8e2a\u3001\u5e94\u7528\u76d1\u63a7<br><a href="https://link.zhihu.com/?target=https%3A//github.com/yidongnan/spring-cloud-netflix-example" class=" wrap external" target="_blank" rel="nofollow noreferrer">GitHub - yidongnan/spring-cloud-netflix-example: spring-cloud-netflix-example is a example for microservices system<i class="icon-external"></i></a>',
    u'created_time': 1478065743,
    u'editable_content': u'',
    u'excerpt': u'spring cloud \u662f\u4e00\u6574\u5957\u5fae\u670d\u52a1\u7684\u7ec4\u4ef6\u3002\u4ece\u529f\u80fd\u4e0a\u6765\u8bf4spring cloud\u5305\u542b\u7684\u529f\u80fd\u8fdc\u591a\u4e8edubbo\u3002 dubbo\u76ee\u524d\u5904\u4e8e\u4e0d\u7ef4\u62a4\u72b6\u6001\u3002\u800cspring cloud netflix\u793e\u533a\u6d3b\u8dc3\u5ea6\u9ad8 \u4e24\u8005\u7684\u5751\u90fd\u4e0d\u5c11\uff0cdubbo\u4e0d\u7ef4\u62a4\u540e\uff0c\u5f53\u5f53\u7684dubbox\u5751\u7a0d\u5fae\u6bd4dubbo\u7684\u8981\u5c11\u3002 \u800cspring cloud\u7531\u4e8e\u65f6\u95f4\u95ee\u9898\u9879\u76ee\u2026',
    u'extras': u'',
    u'id': 129483094,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1478065743,
    u'url': u'http://www.zhihu.com/api/v4/answers/129483094',
    u'voteup_count': 7},
   {u'author': {u'avatar_url': u'https://pic2.zhimg.com/58dc5432df720ea2913f64849a6e480d_is.jpg',
     u'avatar_url_template': u'https://pic2.zhimg.com/58dc5432df720ea2913f64849a6e480d_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'\u4f4e\u7ea7JAVA\u5de5\u7a0b\u5e08',
     u'id': u'3bbc09d3ba8c31d3eafd38f1a64c2211',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u738b\u601d\u6db5',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/3bbc09d3ba8c31d3eafd38f1a64c2211',
     u'url_token': u'wang-si-han-47',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 6,
    u'comment_permission': u'all',
    u'content': u'spring-boot\u6709pivotal\u548cnetfix\u80cc\u4e66\uff0c\u662f\u4e00\u5957\u5b8c\u6574\u7684\u4f01\u4e1a\u7ea7\u5e94\u7528\u7684\u5f00\u53d1\u65b9\u6848\uff0c\u5929\u7136\u96c6\u6210\u5206\u5e03\u5f0f\u4e91\u67b6\u6784spring-cloud\uff0c\u91cd\u70b9\u662f\u6709\u914d\u5957\u7684\u66f4\u52a0\u5b8c\u5584\u7684\u8f6f\u4ef6\u57fa\u7840\u8bbe\u65bd\uff0c\u4f46\u662f\u5b9e\u9645\u7f16\u7801\u4f1a\u6709\u4fb5\u5165\u6027\u3002 <br><br>Dubbo\u6709\u963f\u91cc\u5df4\u5df4\u80cc\u4e66\uff0c\u662f\u4e00\u5957RPC\u7684\u534a\u5b8c\u5584\u89e3\u51b3\u65b9\u6848\uff0c\u914d\u5957\u7684\u8f6f\u4ef6\u57fa\u7840\u8bbe\u65bd\u4e0d\u5168\uff0c\u597d\u5904\u662f\u7f16\u7801\u73af\u8282\u57fa\u672c\u6ca1\u6709\u4fb5\u5165\u6027\u3002<br><br>\u6211\u4eec\u5728\u7528dubbo\uff0c\u670b\u53cb\u7684\u516c\u53f8\u4e5f\u6709\u5728\u7528\u7684\uff0c\u9762\u4e34\u7684\u95ee\u9898\u4e5f\u5927\u81f4\u76f8\u4f3c\uff0c\u95ee\u9898\u5b9a\u4f4d\u3001\u7194\u65ad\u548c\u76d1\u63a7\u65b9\u9762\u7684\u95ee\u9898\u8ba9\u4eba\u6ca1\u6709\u90a3\u4e48\u7684\u653e\u5fc3\uff0c\u6700\u8fd1\u6253\u7b97\u5c1d\u8bd5\u5728spring-cloud\u4e2d\u5bfb\u627e\u7b54\u6848\u3002<br><br>----------------------\u63d2\u64ad\u4e00\u6761\u5e7f\u544a----------------------<br><a href="https://link.zhihu.com/?target=http%3A//spring-cloud.io" class=" external" target="_blank" rel="nofollow noreferrer"><span class="invisible">http://</span><span class="visible">spring-cloud.io</span><span class="invisible"></span><i class="icon-external"></i></a><br><a href="https://link.zhihu.com/?target=http%3A//bbs.spring-cloud.io" class=" external" target="_blank" rel="nofollow noreferrer"><span class="invisible">http://</span><span class="visible">bbs.spring-cloud.io</span><span class="invisible"></span><i class="icon-external"></i></a>',
    u'created_time': 1464543608,
    u'editable_content': u'',
    u'excerpt': u'spring-boot\u6709pivotal\u548cnetfix\u80cc\u4e66\uff0c\u662f\u4e00\u5957\u5b8c\u6574\u7684\u4f01\u4e1a\u7ea7\u5e94\u7528\u7684\u5f00\u53d1\u65b9\u6848\uff0c\u5929\u7136\u96c6\u6210\u5206\u5e03\u5f0f\u4e91\u67b6\u6784spring-cloud\uff0c\u91cd\u70b9\u662f\u6709\u914d\u5957\u7684\u66f4\u52a0\u5b8c\u5584\u7684\u8f6f\u4ef6\u57fa\u7840\u8bbe\u65bd\uff0c\u4f46\u662f\u5b9e\u9645\u7f16\u7801\u4f1a\u6709\u4fb5\u5165\u6027\u3002 Dubbo\u6709\u963f\u91cc\u5df4\u5df4\u80cc\u4e66\uff0c\u662f\u4e00\u5957RPC\u7684\u534a\u5b8c\u5584\u89e3\u51b3\u65b9\u6848\uff0c\u914d\u5957\u7684\u8f6f\u4ef6\u57fa\u7840\u8bbe\u65bd\u4e0d\u5168\uff0c\u2026',
    u'extras': u'',
    u'id': 103314477,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1474271428,
    u'url': u'http://www.zhihu.com/api/v4/answers/103314477',
    u'voteup_count': 7},
   {u'author': {u'avatar_url': u'https://pic1.zhimg.com/5f7f0d2c5b2be96bdd55e840d692f890_is.png',
     u'avatar_url_template': u'https://pic1.zhimg.com/5f7f0d2c5b2be96bdd55e840d692f890_{size}.png',
     u'badge': [],
     u'gender': 1,
     u'headline': u'Java, Spring Cloud, Docker, Go',
     u'id': u'a5c538ea1c55e5185eefc86495fbdcac',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u738b\u9e3f\u98de',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/a5c538ea1c55e5185eefc86495fbdcac',
     u'url_token': u'wanghongfei8',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 1,
    u'comment_permission': u'all',
    u'content': u'<a href="https://link.zhihu.com/?target=http%3A//blog.csdn.net/neosmith/article/details/51919038" class=" wrap external" target="_blank" rel="nofollow noreferrer">Spring Cloud\u4e0e\u5206\u5e03\u5f0f\u7cfb\u7edf<i class="icon-external"></i></a><br><a href="https://link.zhihu.com/?target=http%3A//blog.csdn.net/neosmith/article/details/52204113" class=" wrap external" target="_blank" rel="nofollow noreferrer">\u4f7f\u7528Spring Cloud Netflix\u6280\u672f\u6808\u5b9e\u65bd\u5fae\u670d\u52a1\u67b6\u6784 - \u738b\u9e3f\u98de\u7684\u4e13\u680f - \u535a\u5ba2\u9891\u9053 - CSDN.NET<i class="icon-external"></i></a><br><br>Spring Cloud\u4e3b\u8981\u6709\u4ee5\u4e0b\u7279\u70b9\uff1a<br>1. \u662f\u4e00\u5957\u5b8c\u6574\u7684\u5206\u5e03\u5f0f\u7cfb\u7edf\u89e3\u51b3\u65b9\u6848\uff0c\u5b83\u7684\u5b50\u9879\u76ee\u6db5\u76d6\u4e86\u6240\u6709\u5b9e\u73b0\u5e03\u5f0f\u7cfb\u7edf\u6240\u9700\u8981\u7684\u57fa\u7840\u8f6f\u4ef6\u8bbe\u65bd<br>2. \u57fa\u4e8eSpring Boot, \u4f7f\u5f97\u5f00\u53d1\u90e8\u7f72\u6781\u5176\u7b80\u5355(\u52a0\u4f9d\u8d56\uff0c\u52a0\u6ce8\u89e3\uff0c\u5c31\u80fd\u8fd0\u884c\u4e86)<br><br>\u8981\u8bf4Dubbo\uff0c\u7b97\u662fSpring Cloud\u7684\u4e00\u4e2a\u5b50\u96c6\u597d\u4e86,\u5927\u81f4\u76f8\u5f53\u4e8eSpring Cloud\u91cc\u7684 Eureka + Feign + 1/2Hystrix<br><br>\u53e6\u5916\uff0c\u6211\u8ba4\u4e3aSpring Cloud\u6781\u6709\u53ef\u80fd\u662f\u672a\u6765Java\u751f\u6001\u4e2d\u5fae\u670d\u52a1\u67b6\u6784\u5b9e\u73b0\u7684\u6807\u914d',
    u'created_time': 1468918714,
    u'editable_content': u'',
    u'excerpt': u'<a href="https://link.zhihu.com/?target=http%3A//blog.csdn.net/neosmith/article/details/51919038" class=" wrap external" target="_blank" rel="nofollow noreferrer">Spring Cloud\u4e0e\u5206\u5e03\u5f0f\u7cfb\u7edf<i class="icon-external"></i></a> <a href="https://link.zhihu.com/?target=http%3A//blog.csdn.net/neosmith/article/details/52204113" class=" wrap external" target="_blank" rel="nofollow noreferrer">\u4f7f\u7528Spring Cloud Netflix\u6280\u672f\u6808\u5b9e\u65bd\u5fae\u670d\u52a1\u67b6\u6784 - \u738b\u9e3f\u98de\u7684\u4e13\u680f - \u535a\u5ba2\u9891\u9053 - CSDN.NET<i class="icon-external"></i></a> Spring Cloud\u4e3b\u8981\u6709\u4ee5\u4e0b\u7279\u70b9\uff1a 1. \u662f\u4e00\u5957\u5b8c\u6574\u7684\u5206\u5e03\u5f0f\u7cfb\u7edf\u89e3\u51b3\u65b9\u6848\uff0c\u5b83\u7684\u5b50\u9879\u76ee\u6db5\u76d6\u4e86\u6240\u6709\u5b9e\u73b0\u5e03\u5f0f\u7cfb\u7edf\u6240\u9700\u8981\u7684\u57fa\u7840\u8f6f\u4ef6\u8bbe\u65bd 2. \u57fa\u4e8eSpring \u2026',
    u'extras': u'',
    u'id': 112015023,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1480754259,
    u'url': u'http://www.zhihu.com/api/v4/answers/112015023',
    u'voteup_count': 6},
   {u'author': {u'avatar_url': u'https://pic3.zhimg.com/3608ae0e169befc83abc2f4719f7b83e_is.jpg',
     u'avatar_url_template': u'https://pic3.zhimg.com/3608ae0e169befc83abc2f4719f7b83e_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'Bug\u5236\u9020\u8005',
     u'id': u'43cdafa859dcc7c022ef059f0712aa05',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'IsaacChang',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/43cdafa859dcc7c022ef059f0712aa05',
     u'url_token': u'isaac-82-13',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 4,
    u'comment_permission': u'all',
    u'content': u'\u4e24\u8005\u4e0d\u80fd\u76f4\u63a5\u8fdb\u884c\u5bf9\u6bd4\uff0cdubbo\u53ea\u662f\u4f5c\u4e3a\u670d\u52a1\u6cbb\u7406\u7684rpc\u5c42\uff0c\u800cSpring Cloud \u63d0\u4f9b\u4e86\u4e00\u6574\u5957\u5206\u5e03\u5f0f\u670d\u52a1\u5f00\u53d1\u7684\u5de5\u5177\uff0c\u4ece\u8fb9\u7f18\u670d\u52a1\u7684Zuul\uff0c\u5230\u670d\u52a1\u53d1\u73b0Eureka \uff0c\u518d\u5230hystrix \u7194\u65ad\u673a\u5236\uff0c\u662f\u4e00\u5957\u5b8c\u6574\u7684\u751f\u6001\uff0c\u4f46\u662f\u6211\u89c9\u5f97\u8fd9\u91cc\u9762\u6700\u6709\u5e2e\u52a9\u7684\u53ef\u80fd\u662fhystrix \uff0c\u5b83\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684\u7194\u65ad\u673a\u5236\uff0c\u53ef\u4ee5\u5f88\u8f7b\u6613\u7684\u5f15\u5165\u73b0\u6709\u7cfb\u7edf\u3002',
    u'created_time': 1466961688,
    u'editable_content': u'',
    u'excerpt': u'\u4e24\u8005\u4e0d\u80fd\u76f4\u63a5\u8fdb\u884c\u5bf9\u6bd4\uff0cdubbo\u53ea\u662f\u4f5c\u4e3a\u670d\u52a1\u6cbb\u7406\u7684rpc\u5c42\uff0c\u800cSpring Cloud \u63d0\u4f9b\u4e86\u4e00\u6574\u5957\u5206\u5e03\u5f0f\u670d\u52a1\u5f00\u53d1\u7684\u5de5\u5177\uff0c\u4ece\u8fb9\u7f18\u670d\u52a1\u7684Zuul\uff0c\u5230\u670d\u52a1\u53d1\u73b0Eureka \uff0c\u518d\u5230hystrix \u7194\u65ad\u673a\u5236\uff0c\u662f\u4e00\u5957\u5b8c\u6574\u7684\u751f\u6001\uff0c\u4f46\u662f\u6211\u89c9\u5f97\u8fd9\u91cc\u9762\u6700\u6709\u5e2e\u52a9\u7684\u53ef\u80fd\u662fhystrix \uff0c\u5b83\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684\u7194\u65ad\u2026',
    u'extras': u'',
    u'id': 108013179,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1466961688,
    u'url': u'http://www.zhihu.com/api/v4/answers/108013179',
    u'voteup_count': 5},
   {u'author': {u'avatar_url': u'https://pic1.zhimg.com/v2-651ddd0e0eb26b21cc4a494f88427570_is.jpg',
     u'avatar_url_template': u'https://pic1.zhimg.com/v2-651ddd0e0eb26b21cc4a494f88427570_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'\u7a0b\u5e8f\u5458',
     u'id': u'8621c423e8a24c211462cd38eafe4067',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u6e05\u98ce',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/8621c423e8a24c211462cd38eafe4067',
     u'url_token': u'roncoo',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 1,
    u'comment_permission': u'all',
    u'content': u'spring Cloud\u662f\u4e00\u4e2a\u57fa\u4e8eSpring Boot\u5b9e\u73b0\u7684\u4e91\u5e94\u7528\u5f00\u53d1\u5de5\u5177\uff0c\u5b83\u4e3a\u57fa\u4e8eJVM\u7684\u4e91\u5e94\u7528\u5f00\u53d1\u4e2d\u7684\u914d\u7f6e\u7ba1\u7406\u3001\u670d\u52a1\u53d1\u73b0\u3001\u65ad\u8def\u5668\u3001\u667a\u80fd\u8def\u7531\u3001\u5fae\u4ee3\u7406\u3001\u63a7\u5236\u603b\u7ebf\u3001\u5168\u5c40\u9501\u3001\u51b3\u7b56\u7ade\u9009\u3001\u5206\u5e03\u5f0f\u4f1a\u8bdd\u548c\u96c6\u7fa4\u72b6\u6001\u7ba1\u7406\u7b49\u64cd\u4f5c\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u5f00\u53d1\u65b9\u5f0f\u3002<br>spring boot \u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u5feb\u901f\u542f\u52a8\uff0c\u5feb\u901f\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\uff0c\u800c\u4e0d\u9700\u8981\u592a\u591a\u7684\u914d\u7f6e\u6587\u4ef6\u3002<br>spring cloud \u662f\u5206\u5e03\u5f0f\u5f00\u53d1\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u57fa\u4e8espring boot,\u5728spring boot\u505a\u8f83\u5c11\u7684\u914d\u7f6e\uff0c<br>\u4fbf\u53ef\u6210\u4e3a spring cloud \u4e2d\u7684\u4e00\u4e2a\u5fae\u670d\u52a1\u3002<br><br>\u5fae\u670d\u52a1\u67b6\u6784\u672c\u8d28\u4e0a\u5c31\u662f\u5206\u5e03\u5f0f\u670d\u52a1\u5316\u67b6\u6784\uff0c\u5fae\u670d\u52a1\u67b6\u6784\u7684\u6d41\u884c\uff0c\u8ba9\u5206\u5e03\u5f0f\u4e8b\u52a1\u95ee\u9898\u65e5\u76ca\u7a81\u51fa\uff01\u5c24\u5176\u662f\u5728\u8ba2\u5355\u4e1a\u52a1\u3001\u8d44\u91d1\u4e1a\u52a1\u7b49\u7cfb\u7edf\u6838\u5fc3\u4e1a\u52a1\u6d41\u7a0b\u4e2d\uff0c\u4e00\u5b9a\u8981\u6709\u53ef\u9760\u7684\u5206\u5e03\u5f0f\u4e8b\u52a1\u89e3\u51b3\u65b9\u6848\u6765\u4fdd\u8bc1\u4e1a\u52a1\u6570\u636e\u7684\u53ef\u9760\u6027\u548c\u51c6\u786e\u6027\u3002<br>\u76ee\u524d\u6bd4\u8f83\u591a\u7684\u89e3\u51b3\u65b9\u6848\u6709\u51e0\u4e2a\uff1a<br>\n    \u4e00\u3001\u7ed3\u5408MQ\u6d88\u606f\u4e2d\u95f4\u4ef6\u5b9e\u73b0\u7684\u53ef\u9760\u6d88\u606f\u6700\u7ec8\u4e00\u81f4\u6027<br>\n    \u4e8c\u3001TCC\u8865\u507f\u6027\u4e8b\u52a1\u89e3\u51b3\u65b9\u6848<br>\n    \u4e09\u3001\u6700\u5927\u52aa\u529b\u901a\u77e5\u578b\u65b9\u6848<br>\u7b2c\u4e00\u79cd\u65b9\u6848\uff1a\u53ef\u9760\u6d88\u606f\u6700\u7ec8\u4e00\u81f4\u6027\uff0c\u9700\u8981\u4e1a\u52a1\u7cfb\u7edf\u7ed3\u5408MQ\u6d88\u606f\u4e2d\u95f4\u4ef6\u5b9e\u73b0\uff0c\u5728\u5b9e\u73b0\u8fc7\u7a0b\u4e2d\u9700\u8981\u4fdd\u8bc1\u6d88\u606f\u7684\u6210\u529f\u53d1\u9001\u53ca\u6210\u529f\u6d88\u8d39\u3002\u5373\u9700\u8981\u901a\u8fc7\u4e1a\u52a1\u7cfb\u7edf\u63a7\u5236MQ\u7684\u6d88\u606f\u72b6\u6001<br>\n    \u7b2c\u4e8c\u79cd\u65b9\u6848\uff1aTCC\u8865\u507f\u6027\uff0c\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5TRYING-CONFIRMING-CANCELING\u3002\u6bcf\u4e2a\u9636\u6bb5\u505a\u4e0d\u540c\u7684\u5904\u7406\u3002<br>\n          TRYING\u9636\u6bb5\u4e3b\u8981\u662f\u5bf9\u4e1a\u52a1\u7cfb\u7edf\u8fdb\u884c\u68c0\u6d4b\u53ca\u8d44\u6e90\u9884\u7559<br>\n         \n  CONFIRMING\u9636\u6bb5\u662f\u505a\u4e1a\u52a1\u63d0\u4ea4\uff0c\u901a\u8fc7TRYING\u9636\u6bb5\u6267\u884c\u6210\u529f\u540e\uff0c\u518d\u6267\u884c\u8be5\u9636\u6bb5\u3002\u9ed8\u8ba4\u5982\u679cTRYING\u9636\u6bb5\u6267\u884c\u6210\u529f\uff0cCONFIRMING\u5c31\u4e00\u5b9a\u80fd\u6210\u529f\u3002<br>\n          CANCELING\u9636\u6bb5\u662f\u56de\u5bf9\u4e1a\u52a1\u505a\u56de\u6eda\uff0c\u5728TRYING\u9636\u6bb5\u4e2d\uff0c\u5982\u679c\u5b58\u5728\u5206\u652f\u4e8b\u52a1TRYING\u5931\u8d25\uff0c\u5219\u9700\u8981\u8c03\u7528CANCELING\u5c06\u5df2\u9884\u7559\u7684\u8d44\u6e90\u8fdb\u884c\u91ca\u653e\u3002<br>\n   \n  \u7b2c\u4e09\u79cd\u65b9\u6848\uff1a\u6700\u5927\u52aa\u529b\u901a\u77e5xing\u578b\uff0c\u8fd9\u79cd\u65b9\u6848\u4e3b\u8981\u7528\u5728\u4e0e\u7b2c\u4e09\u65b9\u7cfb\u7edf\u901a\u8baf\u65f6\uff0c\u6bd4\u5982\uff1a\u8c03\u7528\u5fae\u4fe1\u6216\u652f\u4ed8\u5b9d\u652f\u4ed8\u540e\u7684\u652f\u4ed8\u7ed3\u679c\u901a\u77e5\u3002\u8fd9\u79cd\u65b9\u6848\u4e5f\u662f\u7ed3\u5408MQ\u8fdb\u884c\u5b9e\u73b0\uff0c\u4f8b\u5982\uff1a\u901a\u8fc7MQ\u53d1\u9001http\u8bf7\u6c42\uff0c\u8bbe\u7f6e\u6700\u5927\u901a\u77e5\u6b21\u6570\u3002\u8fbe\u5230\u901a\u77e5\u6b21\u6570\u540e\u5373\u4e0d\u518d\u901a\u77e5\u3002<br>\n    \u5177\u4f53\u7684\u6848\u4f8b\u4f60\u4e5f\u53ef\u4ee5\u53c2\u8003\u4e0b\u8fd9\u7bc7\u535a\u5ba2\uff0c\u5b83\u4e0a\u9762\u6709\u5b8c\u6574\u7684\u7535\u5546\u7cfb\u7edf\u5206\u5e03\u5f0f\u4e8b\u52a1\u5b9e\u73b0\u6848\u4f8b\uff1a<a href="https://link.zhihu.com/?target=http%3A//www.roncoo.com/article/detail/124243" class=" external" target="_blank" rel="nofollow noreferrer"><span class="invisible">http://www.</span><span class="visible">roncoo.com/article/deta</span><span class="invisible">il/124243</span><span class="ellipsis"></span><i class="icon-external"></i></a>',
    u'created_time': 1470551203,
    u'editable_content': u'',
    u'excerpt': u'spring Cloud\u662f\u4e00\u4e2a\u57fa\u4e8eSpring Boot\u5b9e\u73b0\u7684\u4e91\u5e94\u7528\u5f00\u53d1\u5de5\u5177\uff0c\u5b83\u4e3a\u57fa\u4e8eJVM\u7684\u4e91\u5e94\u7528\u5f00\u53d1\u4e2d\u7684\u914d\u7f6e\u7ba1\u7406\u3001\u670d\u52a1\u53d1\u73b0\u3001\u65ad\u8def\u5668\u3001\u667a\u80fd\u8def\u7531\u3001\u5fae\u4ee3\u7406\u3001\u63a7\u5236\u603b\u7ebf\u3001\u5168\u5c40\u9501\u3001\u51b3\u7b56\u7ade\u9009\u3001\u5206\u5e03\u5f0f\u4f1a\u8bdd\u548c\u96c6\u7fa4\u72b6\u6001\u7ba1\u7406\u7b49\u64cd\u4f5c\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u5f00\u53d1\u65b9\u5f0f\u3002 spring boot \u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u2026',
    u'extras': u'',
    u'id': 115487086,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1480404519,
    u'url': u'http://www.zhihu.com/api/v4/answers/115487086',
    u'voteup_count': 5},
   {u'author': {u'avatar_url': u'https://pic3.zhimg.com/v2-6c36fd54e65661bd7feef3eeb4bc672a_is.jpg',
     u'avatar_url_template': u'https://pic3.zhimg.com/v2-6c36fd54e65661bd7feef3eeb4bc672a_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'',
     u'id': u'1c309e3865a84c0752b97e9705e67d7b',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'wuqf',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/1c309e3865a84c0752b97e9705e67d7b',
     u'url_token': u'wuqingfeng',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 9,
    u'comment_permission': u'all',
    u'content': u'\u6012\u7b54\u3002<br>\u5148\u8bf4\u5e94\u7528\u573a\u666f\uff0c\u4e24\u8005\u90fd\u662f\u5206\u5e03\u5f0f\u670d\u52a1\u6cbb\u7406\u76f8\u5173\u7684\u7ec4\u4ef6\u3002\u90fd\u5177\u5907\u4e86\u670d\u52a1\u6ce8\u518c\u3001\u53d1\u73b0\u3001\u8def\u7531\u3001\u8d1f\u8f7d\u5747\u8861\u7b49\u80fd\u529b\u3002<br>\u533a\u522b\u4e4b\u4e00\u5c31\u662f\u7528\u7684\u65f6\u5019\u611f\u89c9springcloud\u96c6\u6210\u4e86springcboot\u4e0edocker\uff0c\u7528\u8d77\u6765\u5f88\u65b9\u4fbf\uff0cdubbo\u5219\u662f\u4e00\u4e2a\u4e2d\u89c4\u4e2d\u77e9\u7684\u670d\u52a1\u6cbb\u7406\u6846\u67b6\u3002<br>\u5176\u4ed6\u5f53\u5e74\u7684\u5f02\u540c\u5982\u5b9e\u73b0\u5566\u6027\u80fd\u5566\u4e4b\u540e\u6574\u7406\u4e00\u4e0b\u7ee7\u7eed\u56de\u7b54\u3002<br>\u6b22\u8fce\u5927\u5bb6\u4e00\u8d77\u8ba8\u8bba\u3002',
    u'created_time': 1463915458,
    u'editable_content': u'',
    u'excerpt': u'\u6012\u7b54\u3002 \u5148\u8bf4\u5e94\u7528\u573a\u666f\uff0c\u4e24\u8005\u90fd\u662f\u5206\u5e03\u5f0f\u670d\u52a1\u6cbb\u7406\u76f8\u5173\u7684\u7ec4\u4ef6\u3002\u90fd\u5177\u5907\u4e86\u670d\u52a1\u6ce8\u518c\u3001\u53d1\u73b0\u3001\u8def\u7531\u3001\u8d1f\u8f7d\u5747\u8861\u7b49\u80fd\u529b\u3002 \u533a\u522b\u4e4b\u4e00\u5c31\u662f\u7528\u7684\u65f6\u5019\u611f\u89c9springcloud\u96c6\u6210\u4e86springcboot\u4e0edocker\uff0c\u7528\u8d77\u6765\u5f88\u65b9\u4fbf\uff0cdubbo\u5219\u662f\u4e00\u4e2a\u4e2d\u89c4\u4e2d\u77e9\u7684\u670d\u52a1\u6cbb\u7406\u6846\u67b6\u3002 \u5176\u4ed6\u5f53\u5e74\u7684\u5f02\u540c\u5982\u5b9e\u73b0\u5566\u2026',
    u'extras': u'',
    u'id': 102082412,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1463915458,
    u'url': u'http://www.zhihu.com/api/v4/answers/102082412',
    u'voteup_count': 2},
   {u'author': {u'avatar_url': u'https://pic1.zhimg.com/da8e974dc_is.jpg',
     u'avatar_url_template': u'https://pic1.zhimg.com/da8e974dc_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'\u7a0b\u5e8f\u733f',
     u'id': u'0ed6eb466a0a3744c7c7342ab7763435',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u9ad8\u5e05\u5bcc',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/0ed6eb466a0a3744c7c7342ab7763435',
     u'url_token': u'gao-shuai-fu-49',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 0,
    u'comment_permission': u'all',
    u'content': u'<p>     Spring Cloud \u662fPivotal\u63d0 \u4f9b\u7684\u7528\u4e8e\u7b80\u5316\u5206\u5e03\u5f0f\u7cfb\u7edf\u6784\u5efa\u7684\u5de5\u5177\u96c6\u3002Spring Cloud\u5f15\u5165\u4e86\u4e91\u5e73\u53f0\u8fde\u63a5\u5668\uff08Cloud Connector\uff09\u548c\u670d\u52a1\u8fde\u63a5\u5668\uff08Service Connector\uff09\u7684\u6982\u5ff5\u3002\u4e91\u5e73\u53f0\u8fde\u63a5\u5668\u662f\u4e00\u4e2a\u63a5\u53e3\uff0c\u9700\u8981\u7531\u4e91\u5e73\u53f0\u63d0\u4f9b\u8005\u8fdb\u884c\u5b9e\u73b0\uff0c\u4ee5\u4fbf\u5e93\u4e2d\u7684\u5176\u4ed6\u6a21\u5757\u53ef\u4ee5\u4e0e\u8be5\u4e91\u5e73\u53f0\u534f\u540c\u5de5\u4f5c\u3002 </p><p>     Spring Cloud\u6700\u91cd\u8981\u7684\u4e00\u70b9\u662f\u5b83\u53ef\u4ee5\u548cSpring Boot\u4e00\u8d77\u5de5\u4f5c\uff0cSpring Boot\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u5bb9\u6613\u5730\u521b\u5efa\u57fa\u4e8eSpring\u7684\u5e94\u7528\u7a0b\u5e8f\u548c\u670d\u52a1\u3002</p><p>\u4eceSpring Boot\u9879\u76ee\u540d\u79f0\u4e2d\u7684Boot\u5c31\u53ef\u4ee5\u770b\u51fa\u6765\uff0cSpring Boot\u7684\u4f5c\u7528\u5728\u4e8e\u521b\u5efa\u548c\u542f\u52a8\u65b0\u7684\u57fa\u4e8eSpring\u6846\u67b6\u7684\u9879\u76ee\u3002Spring Boot\u4f1a\u9009\u62e9\u6700\u9002\u5408\u7684Spring\u5b50\u9879\u76ee\u548c\u7b2c\u4e09\u65b9\u5f00\u6e90\u5e93\u8fdb\u884c\u6574\u5408\u3002\u5927\u90e8\u5206Spring Boot\u5e94\u7528\u53ea\u9700\u8981\u975e\u5e38\u5c11\u7684\u914d\u7f6e\u5c31\u53ef\u4ee5\u5feb\u901f\u8fd0\u884c\u8d77\u6765\u3002</p>',
    u'created_time': 1496483274,
    u'editable_content': u'',
    u'excerpt': u'Spring Cloud \u662fPivotal\u63d0 \u4f9b\u7684\u7528\u4e8e\u7b80\u5316\u5206\u5e03\u5f0f\u7cfb\u7edf\u6784\u5efa\u7684\u5de5\u5177\u96c6\u3002Spring Cloud\u5f15\u5165\u4e86\u4e91\u5e73\u53f0\u8fde\u63a5\u5668\uff08Cloud Connector\uff09\u548c\u670d\u52a1\u8fde\u63a5\u5668\uff08Service Connector\uff09\u7684\u6982\u5ff5\u3002\u4e91\u5e73\u53f0\u8fde\u63a5\u5668\u662f\u4e00\u4e2a\u63a5\u53e3\uff0c\u9700\u8981\u7531\u4e91\u5e73\u53f0\u63d0\u4f9b\u8005\u8fdb\u884c\u5b9e\u73b0\uff0c\u4ee5\u4fbf\u5e93\u4e2d\u7684\u5176\u4ed6\u6a21\u5757\u53ef\u4ee5\u4e0e\u8be5\u4e91\u5e73\u53f0\u534f\u2026',
    u'extras': u'',
    u'id': 178321796,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1496483274,
    u'url': u'http://www.zhihu.com/api/v4/answers/178321796',
    u'voteup_count': 0},
   {u'author': {u'avatar_url': u'https://pic1.zhimg.com/3f4b8482a70e44ea95fd4ca2618a2340_is.png',
     u'avatar_url_template': u'https://pic1.zhimg.com/3f4b8482a70e44ea95fd4ca2618a2340_{size}.png',
     u'badge': [],
     u'gender': 0,
     u'headline': u'',
     u'id': u'8d2177cb9eb1f1d0aa29c8da720cf6f6',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u84dd\u6837',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/8d2177cb9eb1f1d0aa29c8da720cf6f6',
     u'url_token': u'youngstream',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 0,
    u'comment_permission': u'all',
    u'content': u'<p>\u4e3b\u8981\u662f\u67b6\u6784\u4e0a\u7684\u96be\u70b9\u548c\u5206\u5e03\u5f0f\u4e8b\u52a1\uff0c\u5927\u5bb6\u53ef\u6709\u7ecf\u9a8c</p>',
    u'created_time': 1490255661,
    u'editable_content': u'',
    u'excerpt': u'\u4e3b\u8981\u662f\u67b6\u6784\u4e0a\u7684\u96be\u70b9\u548c\u5206\u5e03\u5f0f\u4e8b\u52a1\uff0c\u5927\u5bb6\u53ef\u6709\u7ecf\u9a8c',
    u'extras': u'',
    u'id': 153159416,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1490255661,
    u'url': u'http://www.zhihu.com/api/v4/answers/153159416',
    u'voteup_count': 0},
   {u'author': {u'avatar_url': u'https://pic1.zhimg.com/da8e974dc_is.jpg',
     u'avatar_url_template': u'https://pic1.zhimg.com/da8e974dc_{size}.jpg',
     u'badge': [],
     u'gender': -1,
     u'headline': u'\u7a0b\u5e8f\u5458 \u6784\u67b6\u5e08',
     u'id': u'42927dec5e63e951f356ca8c87ac4469',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u5c0f\u6728\u5934',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/42927dec5e63e951f356ca8c87ac4469',
     u'url_token': u'ning-long-58',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 0,
    u'comment_permission': u'all',
    u'content': u'\u770b\u597dspring cloud',
    u'created_time': 1486609590,
    u'editable_content': u'',
    u'excerpt': u'\u770b\u597dspring cloud',
    u'extras': u'',
    u'id': 145328368,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1486609590,
    u'url': u'http://www.zhihu.com/api/v4/answers/145328368',
    u'voteup_count': 0},
   {u'author': {u'avatar_url': u'https://pic3.zhimg.com/844359a26_is.jpg',
     u'avatar_url_template': u'https://pic3.zhimg.com/844359a26_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'\u7a0b\u5e8f\u5458',
     u'id': u'9934abbc59cb5482cb9c1f1657a70649',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u77f3\u5efa',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/9934abbc59cb5482cb9c1f1657a70649',
     u'url_token': u'shijian',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 0,
    u'comment_permission': u'all',
    u'content': u'\u603b\u4e4b\u8fd8\u662f\u6210\u672c\u7684\u95ee\u9898\u3002<br>\u5df2\u7ecf\u5230\u4e86\u8981\u6784\u5efa\u6210\u4e00\u4e2a\u5206\u5e03\u5f0f\u7cfb\u7edf\uff0c\u81ea\u7136\u4f1a\u6d89\u53ca\u5230\u7f13\u5b58\u3001\u6d88\u606f\u3001rpc\u7b49\uff0c\u4ee5\u53ca\u7ef4\u62a4\u6210\u672c\u3002<br>\u6bcf\u4e00\u4e2a\u6a21\u5757\u8981\u80fd\u7528\u597d\uff0c\u81ea\u7136\u6709\u6df1\u5165\u5b66\u4e60\uff0c\u5bf9\u7a0b\u5e8f\u5458\u6765\u8bf4\uff0c\u5728&lt;\u518d\u5305\u88c5\u4e00\u5c42&gt;\u4e0a\u9762\u53bb\uff0c\u589e\u52a0\u5b66\u4e60\u6210\u672c\u548c\u7ef4\u62a4\u7684\u4e0d\u53ef\u63a7\u6027\u3002<br>\u6240\u4ee5&lt;\u5fae\u670d\u52a1&gt;\u4e0d\u662f\u4e00\u5957\u6280\u672f\u7ec4\u4ef7\u7684\u5305\u88c5\uff0c\u66f4\u5e94\u4fa7\u91cd\u5728\u7814\u53d1\u7684\u6d41\u7a0b\u4e0a\uff0c\u5982\u4f55\u80fd\u4ece\u6574\u4f53\u63d0\u9ad8\u6548\u7387\u3002',
    u'created_time': 1477447348,
    u'editable_content': u'',
    u'excerpt': u'\u603b\u4e4b\u8fd8\u662f\u6210\u672c\u7684\u95ee\u9898\u3002 \u5df2\u7ecf\u5230\u4e86\u8981\u6784\u5efa\u6210\u4e00\u4e2a\u5206\u5e03\u5f0f\u7cfb\u7edf\uff0c\u81ea\u7136\u4f1a\u6d89\u53ca\u5230\u7f13\u5b58\u3001\u6d88\u606f\u3001rpc\u7b49\uff0c\u4ee5\u53ca\u7ef4\u62a4\u6210\u672c\u3002 \u6bcf\u4e00\u4e2a\u6a21\u5757\u8981\u80fd\u7528\u597d\uff0c\u81ea\u7136\u6709\u6df1\u5165\u5b66\u4e60\uff0c\u5bf9\u7a0b\u5e8f\u5458\u6765\u8bf4\uff0c\u5728&lt;\u518d\u5305\u88c5\u4e00\u5c42&gt;\u4e0a\u9762\u53bb\uff0c\u589e\u52a0\u5b66\u4e60\u6210\u672c\u548c\u7ef4\u62a4\u7684\u4e0d\u53ef\u63a7\u6027\u3002 \u6240\u4ee5&lt;\u5fae\u670d\u52a1&gt;\u4e0d\u662f\u4e00\u5957\u6280\u672f\u7ec4\u4ef7\u7684\u5305\u88c5\uff0c\u2026',
    u'extras': u'',
    u'id': 128411918,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1477447348,
    u'url': u'http://www.zhihu.com/api/v4/answers/128411918',
    u'voteup_count': 0},
   {u'author': {u'avatar_url': u'https://pic3.zhimg.com/v2-a82e5c5e340ffb74071c4510f0b1defe_is.jpg',
     u'avatar_url_template': u'https://pic3.zhimg.com/v2-a82e5c5e340ffb74071c4510f0b1defe_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'\u516c\u4f17\u53f7\uff1a\u7eaf\u6d01\u7684\u5fae\u7b11  | \u7ad9\u70b9\uff1a<a href="https://link.zhihu.com/?target=http%3A//ityouknow.com" class=" external" target="_blank" rel="nofollow noreferrer"><span class="invisible">http://</span><span class="visible">ityouknow.com</span><span class="invisible"></span><i class="icon-external"></i></a>',
     u'id': u'c472bd14369be7a8841b8ab5762ce22e',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u7eaf\u6d01\u7684\u5fae\u7b11',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/c472bd14369be7a8841b8ab5762ce22e',
     u'url_token': u'ityouknow',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 0,
    u'comment_permission': u'all',
    u'content': u'spring cloud\u6574\u673a\uff0cdubbo\u9700\u8981\u81ea\u5df1\u7ec4\u88c5\uff1b\u6574\u673a\u7684\u6027\u80fd\u6709\u4fdd\u8bc1\uff0c\u7ec4\u88c5\u7684\u673a\u5b50\u66f4\u81ea\u7531\u3002',
    u'created_time': 1477387653,
    u'editable_content': u'',
    u'excerpt': u'spring cloud\u6574\u673a\uff0cdubbo\u9700\u8981\u81ea\u5df1\u7ec4\u88c5\uff1b\u6574\u673a\u7684\u6027\u80fd\u6709\u4fdd\u8bc1\uff0c\u7ec4\u88c5\u7684\u673a\u5b50\u66f4\u81ea\u7531\u3002',
    u'extras': u'',
    u'id': 128315403,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1477387665,
    u'url': u'http://www.zhihu.com/api/v4/answers/128315403',
    u'voteup_count': 0},
   {u'author': {u'avatar_url': u'https://pic1.zhimg.com/e7df8522cb164684be5726201684f9bc_is.jpg',
     u'avatar_url_template': u'https://pic1.zhimg.com/e7df8522cb164684be5726201684f9bc_{size}.jpg',
     u'badge': [],
     u'gender': 1,
     u'headline': u'spring\u662f\u4e2a\u597d\u6846\u67b6 -- \u5c0f\u5e73',
     u'id': u'dbfe60c2e97eb10eec29889854d3cca2',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u9ad8\u4e50\u9ad8',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/dbfe60c2e97eb10eec29889854d3cca2',
     u'url_token': u'gao-le-gao',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 0,
    u'comment_permission': u'all',
    u'content': u'\u6ca1\u6709\u53ef\u6bd4\u6027\uff0cdubbo\u9996\u5148\u4e0d\u518d\u88ab\u7ef4\u62a4\u4e86\uff0c\u7136\u540edubbo\u548cspring cloud\u76f8\u6bd4\uff0c\u53ea\u662f\u76f8\u5f53\u4e8espring cloud \u4e2d\u7684\u4e00\u4e2a\u7ec4\u4ef6\u3002<br><br>spring cloud = zk + dubbo + deploy',
    u'created_time': 1472836416,
    u'editable_content': u'',
    u'excerpt': u'\u6ca1\u6709\u53ef\u6bd4\u6027\uff0cdubbo\u9996\u5148\u4e0d\u518d\u88ab\u7ef4\u62a4\u4e86\uff0c\u7136\u540edubbo\u548cspring cloud\u76f8\u6bd4\uff0c\u53ea\u662f\u76f8\u5f53\u4e8espring cloud \u4e2d\u7684\u4e00\u4e2a\u7ec4\u4ef6\u3002 spring cloud = zk + dubbo + deploy',
    u'extras': u'',
    u'id': 120256343,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1472836416,
    u'url': u'http://www.zhihu.com/api/v4/answers/120256343',
    u'voteup_count': 1},
   {u'author': {u'avatar_url': u'https://pic3.zhimg.com/f7068838a_is.jpg',
     u'avatar_url_template': u'https://pic3.zhimg.com/f7068838a_{size}.jpg',
     u'badge': [],
     u'gender': -1,
     u'headline': u'Java\u8f6f\u4ef6\u5f00\u53d1\u5de5\u7a0b\u5e08\uff0c\u6280\u672f\u7231\u597d\u8005\uff0c\u6280\u672f\u6210\u5c31\u68a6\u60f3\uff01',
     u'id': u'3d4d10a8af89dc6c553e6ea2420dd780',
     u'is_advertiser': False,
     u'is_org': False,
     u'name': u'\u738b\u4f73',
     u'type': u'people',
     u'url': u'http://www.zhihu.com/api/v4/people/3d4d10a8af89dc6c553e6ea2420dd780',
     u'url_token': u'yueyue',
     u'user_type': u'people'},
    u'can_comment': {u'reason': u'', u'status': True},
    u'collapsed_by': u'nobody',
    u'comment_count': 1,
    u'comment_permission': u'all',
    u'content': u'dubbo\u90fd\u4e0d\u7ef4\u62a4\u4e86 \u8fd8\u6709\u7528\u7684\u5fc5\u8981\u5417\uff1f',
    u'created_time': 1476320025,
    u'editable_content': u'',
    u'excerpt': u'dubbo\u90fd\u4e0d\u7ef4\u62a4\u4e86 \u8fd8\u6709\u7528\u7684\u5fc5\u8981\u5417\uff1f',
    u'extras': u'',
    u'id': 126312579,
    u'is_collapsed': False,
    u'is_copyable': True,
    u'is_normal': True,
    u'mark_infos': [],
    u'question': {u'created': 1462337954,
     u'id': 45413135,
     u'question_type': u'normal',
     u'title': u'\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?',
     u'type': u'question',
     u'updated_time': 1470388723,
     u'url': u'http://www.zhihu.com/api/v4/questions/45413135'},
    u'relationship': {u'is_author': False,
     u'is_authorized': False,
     u'is_nothelp': False,
     u'is_thanked': False,
     u'upvoted_followees': [],
     u'voting': 0},
    u'reshipment_settings': u'allowed',
    u'suggest_edit': {u'reason': u'',
     u'status': False,
     u'tip': u'',
     u'title': u'',
     u'unnormal_details': {},
     u'url': u''},
    u'thumbnail': u'',
    u'type': u'answer',
    u'updated_time': 1476320025,
    u'url': u'http://www.zhihu.com/api/v4/answers/126312579',
    u'voteup_count': 0}],
  u'totals': 15},
 u'question_token': u'45413135'}

In [52]:
topic_corpora = topic_corpora+' '+qa_['answers']['items'][0]['content']
print topic_corpora


微服务架构 请问哪位大神比较过spring cloud和dubbo,各自的优缺点是什么? 从项目的背景来看,Dubbo 国内用的公司挺多,国内影响力大,Spring Cloud 自然在国外影响力较大,所以这个来看不分伯仲了,毕竟都有大公司在使用。<br>从社区的活跃度来看,可以看下各自的Github托管项目来区分,<a href="https://link.zhihu.com/?target=https%3A//github.com/dubbo" class=" wrap external" target="_blank" rel="nofollow noreferrer">Dubbo · GitHub<i class="icon-external"></i></a> 与 <a href="https://link.zhihu.com/?target=https%3A//github.com/spring-cloud" class=" wrap external" target="_blank" rel="nofollow noreferrer">Spring Cloud · GitHub<i class="icon-external"></i></a> ,从更新频率与更新时间来看 Spring Cloud 优于Dubbo,Dubbo基本不维护了。<br>从框架的完整度来看,Dubbo只是实现了服务治理(注册 发现等),而Spring Cloud下面有很多个子项目覆盖了微服务架构下的方方面面,服务治理只是其中的一个方面,一定程度来说,Dubbo只是Spring Cloud Netflix中的一个子集。如果选择Spring Cloud,基本上每个环节都已经有了对应的组件支持,可能有些也不一定能满足你所有的需求,但是其活跃的社区与快速的迭代更新也会让你没有后顾之忧。<br><br>我司正在尝试使用SpringCloud,有兴趣可以进行交流。

In [53]:
at = qa_['answers']['items'][0]['id']

In [54]:
at


Out[54]:
127169875

In [55]:
ac_ = answer_comment.find_one({'answer_token':at})

In [56]:
ac_


Out[56]:
{u'_id': 127169875,
 u'answer_token': 127169875,
 u'answers': {u'items': [{u'allow_delete': False,
    u'allow_like': True,
    u'allow_reply': True,
    u'allow_vote': True,
    u'author': {u'member': {u'avatar_url': u'https://pic1.zhimg.com/2f4e9a665ffe266b42fac00b812d454c_is.jpg',
      u'avatar_url_template': u'https://pic1.zhimg.com/2f4e9a665ffe266b42fac00b812d454c_{size}.jpg',
      u'badge': [],
      u'gender': 1,
      u'headline': u'\u7a0b\u5e8f\u5458/\u6301\u4e0d\u540c\u653f\u89c1\u8005',
      u'id': u'f3934783bff754148bc864d6e84959d3',
      u'is_advertiser': False,
      u'is_org': False,
      u'name': u'\u963f\u91cc\u8def\u4e9a',
      u'type': u'people',
      u'url': u'http://www.zhihu.com/api/v4/people/f3934783bff754148bc864d6e84959d3',
      u'url_token': u'alex1984520',
      u'user_type': u'people'},
     u'role': u'normal'},
    u'can_collapse': False,
    u'can_recommend': False,
    u'collapsed': False,
    u'content': u'\u90a3\u4e2aspring cloud config\u6211\u82b1\u4e86\u4e24\u5929\u90fd\u6ca1\u8fd0\u884c\u6210\u529f\uff0c\u54ce',
    u'created_time': 1476872382,
    u'disliked': False,
    u'featured': False,
    u'id': 175455436,
    u'is_author': False,
    u'is_delete': False,
    u'is_parent_author': False,
    u'resource_type': u'answer',
    u'reviewing': False,
    u'type': u'comment',
    u'url': u'http://www.zhihu.com/api/v4/comments/175455436',
    u'vote_count': 0,
    u'voting': False},
   {u'allow_delete': False,
    u'allow_like': True,
    u'allow_reply': True,
    u'allow_vote': True,
    u'author': {u'member': {u'avatar_url': u'https://pic1.zhimg.com/da8e974dc_is.jpg',
      u'avatar_url_template': u'https://pic1.zhimg.com/da8e974dc_{size}.jpg',
      u'badge': [],
      u'gender': 1,
      u'headline': u'\u4e00\u4e2a\u5199\u4ee3\u7801\u7684\u4eba',
      u'id': u'590d3946fd08d927f94b2a0c60d8dc19',
      u'is_advertiser': False,
      u'is_org': False,
      u'name': u'\u4e01\u5fc3\u6bc5',
      u'type': u'people',
      u'url': u'http://www.zhihu.com/api/v4/people/590d3946fd08d927f94b2a0c60d8dc19',
      u'url_token': u'ding-xin-yi',
      u'user_type': u'people'},
     u'role': u'ancestor'},
    u'can_collapse': False,
    u'can_recommend': False,
    u'collapsed': False,
    u'content': u'\u5df2\u7ecf\u5728\u751f\u4ea7\u73af\u5883\u5e94\u7528\u670d\u52a1\u53d1\u73b0\uff0c\u5e76\u5f88\u5feb\u5e94\u7528\u914d\u7f6e\u4e2d\u5fc3\uff0c\u6709\u673a\u4f1a\u53ef\u4ee5\u591a\u4ea4\u6d41',
    u'created_time': 1476880923,
    u'disliked': False,
    u'featured': False,
    u'id': 175486610,
    u'is_author': False,
    u'is_delete': False,
    u'is_parent_author': False,
    u'resource_type': u'answer',
    u'reviewing': False,
    u'type': u'comment',
    u'url': u'http://www.zhihu.com/api/v4/comments/175486610',
    u'vote_count': 1,
    u'voting': False},
   {u'allow_delete': False,
    u'allow_like': True,
    u'allow_reply': True,
    u'allow_vote': True,
    u'author': {u'member': {u'avatar_url': u'https://pic2.zhimg.com/v2-3371804eb607f161688f6d1b931ee37d_is.jpg',
      u'avatar_url_template': u'https://pic2.zhimg.com/v2-3371804eb607f161688f6d1b931ee37d_{size}.jpg',
      u'badge': [],
      u'gender': 1,
      u'headline': u'\u4e92\u8054\u7f51',
      u'id': u'e29f0a569c1fba5fa7e8067d8b6f5896',
      u'is_advertiser': False,
      u'is_org': False,
      u'name': u'\u91d1\u53ef\u4f1f',
      u'type': u'people',
      u'url': u'http://www.zhihu.com/api/v4/people/e29f0a569c1fba5fa7e8067d8b6f5896',
      u'url_token': u'jin-ke-wei-50',
      u'user_type': u'people'},
     u'role': u'author'},
    u'can_collapse': False,
    u'can_recommend': False,
    u'collapsed': False,
    u'content': u'\u7f51\u7edc\u4e0a\u4e0d\u5c11\u6587\u7ae0\uff0c\u9488\u5bf9\u5177\u4f53\u95ee\u9898\u53ef\u4ee5\u627e\u4e0b',
    u'created_time': 1476881946,
    u'disliked': False,
    u'featured': False,
    u'id': 175490308,
    u'is_author': False,
    u'is_delete': False,
    u'is_parent_author': False,
    u'reply_to_author': {u'member': {u'avatar_url': u'https://pic1.zhimg.com/2f4e9a665ffe266b42fac00b812d454c_is.jpg',
      u'avatar_url_template': u'https://pic1.zhimg.com/2f4e9a665ffe266b42fac00b812d454c_{size}.jpg',
      u'badge': [],
      u'gender': 1,
      u'headline': u'\u7a0b\u5e8f\u5458/\u6301\u4e0d\u540c\u653f\u89c1\u8005',
      u'id': u'f3934783bff754148bc864d6e84959d3',
      u'is_advertiser': False,
      u'is_org': False,
      u'name': u'\u963f\u91cc\u8def\u4e9a',
      u'type': u'people',
      u'url': u'http://www.zhihu.com/api/v4/people/f3934783bff754148bc864d6e84959d3',
      u'url_token': u'alex1984520',
      u'user_type': u'people'},
     u'role': u'normal'},
    u'resource_type': u'answer',
    u'reviewing': False,
    u'type': u'comment',
    u'url': u'http://www.zhihu.com/api/v4/comments/175490308',
    u'vote_count': 1,
    u'voting': False},
   {u'allow_delete': False,
    u'allow_like': True,
    u'allow_reply': True,
    u'allow_vote': True,
    u'author': {u'member': {u'avatar_url': u'https://pic2.zhimg.com/957925daf98fb3342987c285d4b95ce5_is.jpg',
      u'avatar_url_template': u'https://pic2.zhimg.com/957925daf98fb3342987c285d4b95ce5_{size}.jpg',
      u'badge': [],
      u'gender': 1,
      u'headline': u'Java\u3001\u5927\u6570\u636e\u5de5\u7a0b\u5e08',
      u'id': u'214c013b68a7118b0e0fe3bd1112f4f0',
      u'is_advertiser': False,
      u'is_org': False,
      u'name': u'\u674e\u5b88\u58ee',
      u'type': u'people',
      u'url': u'http://www.zhihu.com/api/v4/people/214c013b68a7118b0e0fe3bd1112f4f0',
      u'url_token': u'li-qia-qia-35-13',
      u'user_type': u'people'},
     u'role': u'normal'},
    u'can_collapse': False,
    u'can_recommend': False,
    u'collapsed': False,
    u'content': u'\u73b0\u5728\u90fd\u5728\u89c1\u89c1\u8f6c\u5411cloud\u7684\u5417\uff1f',
    u'created_time': 1477380689,
    u'disliked': False,
    u'featured': False,
    u'id': 176889896,
    u'is_author': False,
    u'is_delete': False,
    u'is_parent_author': False,
    u'resource_type': u'answer',
    u'reviewing': False,
    u'type': u'comment',
    u'url': u'http://www.zhihu.com/api/v4/comments/176889896',
    u'vote_count': 1,
    u'voting': False},
   {u'allow_delete': False,
    u'allow_like': True,
    u'allow_reply': True,
    u'allow_vote': True,
    u'author': {u'member': {u'avatar_url': u'https://pic2.zhimg.com/v2-3371804eb607f161688f6d1b931ee37d_is.jpg',
      u'avatar_url_template': u'https://pic2.zhimg.com/v2-3371804eb607f161688f6d1b931ee37d_{size}.jpg',
      u'badge': [],
      u'gender': 1,
      u'headline': u'\u4e92\u8054\u7f51',
      u'id': u'e29f0a569c1fba5fa7e8067d8b6f5896',
      u'is_advertiser': False,
      u'is_org': False,
      u'name': u'\u91d1\u53ef\u4f1f',
      u'type': u'people',
      u'url': u'http://www.zhihu.com/api/v4/people/e29f0a569c1fba5fa7e8067d8b6f5896',
      u'url_token': u'jin-ke-wei-50',
      u'user_type': u'people'},
     u'role': u'author'},
    u'can_collapse': False,
    u'can_recommend': False,
    u'collapsed': False,
    u'content': u'\u770b\u670d\u52a1\u89c4\u6a21\uff0c\u4ee5\u53ca\u540e\u7eed\u67b6\u6784\u7684\u8003\u91cf\uff0c\u5982\u679c\u53ea\u662f\u5fae\u5c0f\u578b\u5e94\u7528\u6ca1\u6709\u5fc5\u8981\u5f15\u5165\u8fd9\u4e9b\u4e1c\u897f\uff0c\u9002\u5408\u81ea\u5df1\u7684\u5c31\u53ef\u4ee5\u4e86\u3002',
    u'created_time': 1477380832,
    u'disliked': False,
    u'featured': False,
    u'id': 176890474,
    u'is_author': False,
    u'is_delete': False,
    u'is_parent_author': False,
    u'resource_type': u'answer',
    u'reviewing': False,
    u'type': u'comment',
    u'url': u'http://www.zhihu.com/api/v4/comments/176890474',
    u'vote_count': 1,
    u'voting': False},
   {u'allow_delete': False,
    u'allow_like': True,
    u'allow_reply': True,
    u'allow_vote': True,
    u'author': {u'member': {u'avatar_url': u'https://pic3.zhimg.com/57a5df106_is.jpg',
      u'avatar_url_template': u'https://pic3.zhimg.com/57a5df106_{size}.jpg',
      u'badge': [],
      u'gender': 1,
      u'headline': u'',
      u'id': u'd393bcd439d4ec227cded672c11459eb',
      u'is_advertiser': False,
      u'is_org': False,
      u'name': u'Michael',
      u'type': u'people',
      u'url': u'http://www.zhihu.com/api/v4/people/d393bcd439d4ec227cded672c11459eb',
      u'url_token': u'zhang-yi-chen-79',
      u'user_type': u'people'},
     u'role': u'normal'},
    u'can_collapse': False,
    u'can_recommend': False,
    u'collapsed': False,
    u'content': u'\u8bd5\u8bd5\u56de\u7b54\u672b\u5c3e\u7684\u94fe\u63a5\u3002<a href="https://www.zhihu.com/question/45413135/answer/129483094" class="internal">\u8bf7\u95ee\u54ea\u4f4d\u5927\u795e\u6bd4\u8f83\u8fc7spring cloud\u548cdubbo\uff0c\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48? - \u5f20\u827a\u8fb0\u7684\u56de\u7b54</a>',
    u'created_time': 1478066102,
    u'disliked': False,
    u'featured': False,
    u'id': 178790459,
    u'is_author': False,
    u'is_delete': False,
    u'is_parent_author': False,
    u'reply_to_author': {u'member': {u'avatar_url': u'https://pic1.zhimg.com/2f4e9a665ffe266b42fac00b812d454c_is.jpg',
      u'avatar_url_template': u'https://pic1.zhimg.com/2f4e9a665ffe266b42fac00b812d454c_{size}.jpg',
      u'badge': [],
      u'gender': 1,
      u'headline': u'\u7a0b\u5e8f\u5458/\u6301\u4e0d\u540c\u653f\u89c1\u8005',
      u'id': u'f3934783bff754148bc864d6e84959d3',
      u'is_advertiser': False,
      u'is_org': False,
      u'name': u'\u963f\u91cc\u8def\u4e9a',
      u'type': u'people',
      u'url': u'http://www.zhihu.com/api/v4/people/f3934783bff754148bc864d6e84959d3',
      u'url_token': u'alex1984520',
      u'user_type': u'people'},
     u'role': u'normal'},
    u'resource_type': u'answer',
    u'reviewing': False,
    u'type': u'comment',
    u'url': u'http://www.zhihu.com/api/v4/comments/178790459',
    u'vote_count': 1,
    u'voting': False},
   {u'allow_delete': False,
    u'allow_like': True,
    u'allow_reply': True,
    u'allow_vote': True,
    u'author': {u'member': {u'avatar_url': u'https://pic1.zhimg.com/54959d0eba1cadb2feda4b34989deb5c_is.jpg',
      u'avatar_url_template': u'https://pic1.zhimg.com/54959d0eba1cadb2feda4b34989deb5c_{size}.jpg',
      u'badge': [],
      u'gender': 1,
      u'headline': u'\u7a0b\u5e8f\u5458\uff0c\u5728\u5931\u5fc6\u7684\u8def\u4e0a\u8d8a\u8d70\u8d8a\u8fdc',
      u'id': u'02e9d570c3f589ecf04a01eccd5de91b',
      u'is_advertiser': False,
      u'is_org': False,
      u'name': u'mystox',
      u'type': u'people',
      u'url': u'http://www.zhihu.com/api/v4/people/02e9d570c3f589ecf04a01eccd5de91b',
      u'url_token': u'mystox',
      u'user_type': u'people'},
     u'role': u'normal'},
    u'can_collapse': False,
    u'can_recommend': False,
    u'collapsed': False,
    u'content': u'\u6211\u53f8\u4e5f\u5728\u5165\u95e8spring boot',
    u'created_time': 1487682626,
    u'disliked': False,
    u'featured': False,
    u'id': 255347160,
    u'is_author': False,
    u'is_delete': False,
    u'is_parent_author': False,
    u'resource_type': u'answer',
    u'reviewing': False,
    u'type': u'comment',
    u'url': u'http://www.zhihu.com/api/v4/comments/255347160',
    u'vote_count': 0,
    u'voting': False}],
  u'totals': 7}}

In [57]:
topic_corpora = topic_corpora+' '+ac_['answers']['items'][0]['content']
print topic_corpora


微服务架构 请问哪位大神比较过spring cloud和dubbo,各自的优缺点是什么? 从项目的背景来看,Dubbo 国内用的公司挺多,国内影响力大,Spring Cloud 自然在国外影响力较大,所以这个来看不分伯仲了,毕竟都有大公司在使用。<br>从社区的活跃度来看,可以看下各自的Github托管项目来区分,<a href="https://link.zhihu.com/?target=https%3A//github.com/dubbo" class=" wrap external" target="_blank" rel="nofollow noreferrer">Dubbo · GitHub<i class="icon-external"></i></a> 与 <a href="https://link.zhihu.com/?target=https%3A//github.com/spring-cloud" class=" wrap external" target="_blank" rel="nofollow noreferrer">Spring Cloud · GitHub<i class="icon-external"></i></a> ,从更新频率与更新时间来看 Spring Cloud 优于Dubbo,Dubbo基本不维护了。<br>从框架的完整度来看,Dubbo只是实现了服务治理(注册 发现等),而Spring Cloud下面有很多个子项目覆盖了微服务架构下的方方面面,服务治理只是其中的一个方面,一定程度来说,Dubbo只是Spring Cloud Netflix中的一个子集。如果选择Spring Cloud,基本上每个环节都已经有了对应的组件支持,可能有些也不一定能满足你所有的需求,但是其活跃的社区与快速的迭代更新也会让你没有后顾之忧。<br><br>我司正在尝试使用SpringCloud,有兴趣可以进行交流。 那个spring cloud config我花了两天都没运行成功,哎

In [59]:
def topic_c(topic_token):
    topic_corpora = u''
    topic_ = topic.find_one({'topic_token':topic_token})
    topic_corpora = topic_corpora+topic_['data']['name']
    qtl = topic_['question_token_list']
    for qt in qtl:
        q_ = question.find_one({'question_token':qt})
        topic_corpora = topic_corpora+' '+q_['questions']['title']
        qa_ = question_answer.find_one({'question_token':qt})
        for qai in qa_['answers']['items']:
            topic_corpora = topic_corpora+' '+qai['content']
            at = qai['id']
            ac_ = answer_comment.find_one({'answer_token':at})
            for aci in ac_['answers']['items']:
                topic_corpora = topic_corpora+' '+aci['content']
    return topic_corpora

In [62]:
print topic_c(topic_token)[:3000]


微服务架构 请问哪位大神比较过spring cloud和dubbo,各自的优缺点是什么? 从项目的背景来看,Dubbo 国内用的公司挺多,国内影响力大,Spring Cloud 自然在国外影响力较大,所以这个来看不分伯仲了,毕竟都有大公司在使用。<br>从社区的活跃度来看,可以看下各自的Github托管项目来区分,<a href="https://link.zhihu.com/?target=https%3A//github.com/dubbo" class=" wrap external" target="_blank" rel="nofollow noreferrer">Dubbo · GitHub<i class="icon-external"></i></a> 与 <a href="https://link.zhihu.com/?target=https%3A//github.com/spring-cloud" class=" wrap external" target="_blank" rel="nofollow noreferrer">Spring Cloud · GitHub<i class="icon-external"></i></a> ,从更新频率与更新时间来看 Spring Cloud 优于Dubbo,Dubbo基本不维护了。<br>从框架的完整度来看,Dubbo只是实现了服务治理(注册 发现等),而Spring Cloud下面有很多个子项目覆盖了微服务架构下的方方面面,服务治理只是其中的一个方面,一定程度来说,Dubbo只是Spring Cloud Netflix中的一个子集。如果选择Spring Cloud,基本上每个环节都已经有了对应的组件支持,可能有些也不一定能满足你所有的需求,但是其活跃的社区与快速的迭代更新也会让你没有后顾之忧。<br><br>我司正在尝试使用SpringCloud,有兴趣可以进行交流。 那个spring cloud config我花了两天都没运行成功,哎 已经在生产环境应用服务发现,并很快应用配置中心,有机会可以多交流 网络上不少文章,针对具体问题可以找下 现在都在见见转向cloud的吗? 看服务规模,以及后续架构的考量,如果只是微小型应用没有必要引入这些东西,适合自己的就可以了。 试试回答末尾的链接。<a href="https://www.zhihu.com/question/45413135/answer/129483094" class="internal">请问哪位大神比较过spring cloud和dubbo,各自的优缺点是什么? - 张艺辰的回答</a> 我司也在入门spring boot 引用之前看到的一篇文章:<br><a href="https://link.zhihu.com/?target=http%3A//blog.didispace.com/microservice-framework/" class=" wrap external" target="_blank" rel="nofollow noreferrer">微服务架构的基础框架选择:Spring Cloud还是Dubbo【程序猿DD】<i class="icon-external"></i></a><br>文章对这两个框架进行了对比和分析,<br>希望对你有所帮助。 这篇文章写得很清楚,孰轻孰重,还得看是否迫于选择,dubbo适合国内,但是请先准备好各种问题的解决方案。 spring cloud 是一整套微服务的组件。从功能上来说spring cloud包含的功能远多于dubbo。<br>dubbo目前处于不维护状态。而spring cloud netflix社区活跃度高<br><br>两者的坑都不少,dubbo不维护后,当当的dubbox坑稍微比dubbo的要少。<br>而spring cloud由于时间问题项目还不是特别成熟,包括新组件不断的添加,集成方面坑也不少。<br>就拿一个简单的spring cloud config来说,在配置中心修改配置文件,到Brixton.SR6版本才能正常推送给对应的server。<br><br>长远角度上来看。spring cloud 还是挺不错的。<br><br>最后<br>分享一下自己踩坑后构建的脚手架的项目。<br>基于 spring cloud 的一个微服务系统的实例 项目包括如下功能:<br>配置管理 、服务发现、熔断,、动态路由、分布式跟踪、应用监控<br><a href="https://link.zhihu.com/?target=https%3A//github.com/yidongnan/spring-cloud-netflix-example" class=" wrap external" target="_blank" rel="nofollow noreferrer">GitHub - yidongnan/spring-cloud-netflix-example: spring-cloud-netflix-example is a example for microservices system<i class="icon-external"></i></a> spring cloud 现在有275个包。。。怎么了解它 根据自己的需要在定向去看 spring-boot有pivotal和netfix背书,是一套完整的企业级应用的开发方案,天然集成分布式云架构spring-cloud,重点是有配套的更加完善的软件基础设施,但是实际编码会有侵入性。 <br><br>Dubbo有阿里巴巴背书,是一套RPC的半完善解决方案,配套的软件基础设施不全,好处是编码环节基本没有侵入性。<br><br>我们在用dubbo,朋友的公司也有在用的,面临的问题也大致相似,问题定位、熔断和监控方面的问题让人没有那么的放心,最近打算尝试在spring-cloud中寻找答案。<br><br>----------------------插播一条广告----------------------<br><a href="https://link.zhihu.com/?target=http%3A//spring-cloud.io" class=" external" target="_blank" rel="nofollow noreferrer"><span class="invisible">http://</span><span class="visible">spring-cloud.io</span><span class="invisible"></span><i class="icon-external"></i></a><br><a href="https://link.zhihu.com/?target=http%3A//bbs.spring-cloud.io" class=" external" target="_blank" rel="nofollow noreferrer"><span class

In [63]:
import os

In [67]:
os.name


Out[67]:
'nt'

In [69]:
print r.get('corpora'+'19588723')[:3000]


DSP 如何评价阿里巴巴的盖昆(靖世)的算法LS-MLR? <p>       阿里的LS-PLM是Jordan 1994年提出的混合专家模型的改进,最大的特点是加入了sparse group lasso,其中优化sparse group lasso是基于OWL-QN(Andrew &amp; Gao 2007) orthant-based想法(在同一象限看成是连续可微函数,在参数从+到1,或是从-到+,强制在0点根据sub-gradient来决定走向),一般针对非光滑的目标函数采用是sub-gradient来优化,或者是采用proximal gradient来,但是这种group lasso即使采用proximal gradient的时候也很难在每一步求出闭式解,所以使用用另一种常用的方法:方向导数来求得最快下降方向(其实传统的连续可微函数的梯度的定义就是方向导数最大的方向向量),利用极限就不难求出来最快下降方向了。</p><p>     好吧,我厚颜无耻的插入一段广告,猿辅导开源的ytk-learn(<a href="https://link.zhihu.com/?target=https%3A//github.com/yuantiku/ytk-learn" class=" wrap external" target="_blank" rel="nofollow noreferrer">yuantiku/ytk-learn<i class="icon-external"></i></a>)中实现的Gradient Boosting Soft Tree(GBST),jordan混合专家模型的变种(目前混合专家模型在deep learning也用到很多), 一种可以在含有大量categorical特征场景中使用的GBDT:</p><br><noscript><img src="https://pic3.zhimg.com/v2-4be80c4ec5b3906f6a753cbdf940cc32_b.png" data-rawwidth="1794" data-rawheight="636" class="origin_image zh-lightbox-thumb" width="1794" data-original="https://pic3.zhimg.com/v2-4be80c4ec5b3906f6a753cbdf940cc32_r.png"></noscript><img src="//zhstatic.zhihu.com/assets/zhihu/ztext/whitedot.jpg" data-rawwidth="1794" data-rawheight="636" class="origin_image zh-lightbox-thumb lazy" width="1794" data-original="https://pic3.zhimg.com/v2-4be80c4ec5b3906f6a753cbdf940cc32_r.png" data-actualsrc="https://pic3.zhimg.com/v2-4be80c4ec5b3906f6a753cbdf940cc32_b.png"><br><p>支持两种gating函数:</p><br><noscript><img src="https://pic2.zhimg.com/v2-26e8d6093f97c8699ddd69689887d6ed_b.png" data-rawwidth="1956" data-rawheight="1346" class="origin_image zh-lightbox-thumb" width="1956" data-original="https://pic2.zhimg.com/v2-26e8d6093f97c8699ddd69689887d6ed_r.png"></noscript><img src="//zhstatic.zhihu.com/assets/zhihu/ztext/whitedot.jpg" data-rawwidth="1956" data-rawheight="1346" class="origin_image zh-lightbox-thumb lazy" width="1956" data-original="https://pic2.zhimg.com/v2-26e8d6093f97c8699ddd69689887d6ed_r.png" data-actualsrc="https://pic2.zhimg.com/v2-26e8d6093f97c8699ddd69689887d6ed_b.png"><p>支持两种basis score函数:</p><br><noscript><img src="https://pic4.zhimg.com/v2-5bca47c8cefa99488937cc182dba6e3b_b.png" data-rawwidth="1738" data-rawheight="390" class="origin_image zh-lightbox-thumb" width="1738" data-original="https://pic4.zhimg.com/v2-5bca47c8cefa99488937cc182dba6e3b_r.png"></noscript><img src="//zhstatic.zhihu.com/assets/zhihu/ztext/whitedot.jpg" data-rawwidth="1738" data-raw

In [70]:
unicode(3.4545)


Out[70]:
u'3.4545'

In [1]:
import redis
r = redis.StrictRedis(host='localhost', port=6380, db=0)

In [2]:
r.get('corpora'+'20023491')

In [3]:
r.get('keyword'+'20023491')

In [8]:
p = r.pubsub()
p.subscribe('craw-to-text')
p.subscribe('craw-to-text')

In [11]:
p.get_message()

In [12]:
import requests

In [13]:
r = requests.get('http://127.0.0.1:5001/keyword/20023491')

In [19]:
j = r.json()

In [21]:
for k,v in  j.items():
    print k,v


spring 0.0465312852522
复杂度 0.0339552622111
agent 0.0251520460823
轮子 0.0442959761955
cloud 0.0352128645152
SOA 0.0540768990769
架构 0.110006991746
技术 0.0665271683072
注册 0.0391182146906
创业 0.0323309472909
组件 0.0562378158291
公司 0.0328012649883
网关 0.0477888875563
服务 0.282674284697
部署 0.0296465461751
选型 0.0363884206138
实例 0.0267942757209
php 0.0251520460823
客户端 0.064758521965
异步 0.0350915936247
负载 0.0323750158031
调用 0.0372761966728
请求 0.0306878487572
Spring 0.0389856714275
系统 0.0354820325619
业务 0.0452352476592
API 0.0867745589838
docker 0.0339552622111
Cloud 0.0276672506905
分布式 0.0349230115797

In [ ]: