摘要: 本文转载自:http://blog.csdn.net/hguisu/article/details/75319601. 概述 若你从事过面向对象开发,实现给一个类或对象增加行为,使用继承机制,这是所有面向对象语言的一个基本特性。如果已经存在的一个类缺少某些方法,或者须要给方法添加更多的功能(魅力... 阅读全文
posted @ 2015-04-05 17:10 lintong 阅读(249) 评论(0) 推荐(0) 编辑
摘要: In theprevious tutorialwe built a simple logging system. We were able to broadcast log messages to many receivers.In this tutorial we're going to add ... 阅读全文
posted @ 2015-04-01 12:04 lintong 阅读(424) 评论(0) 推荐(1) 编辑
摘要: 本文转载自:http://blog.csdn.net/kongqz/article/details/6695417一、概述 1、我们的memcache客户端使用了一致性hash算法ketama进行数据存储节点的选择。与常规的hash算法思路不同,只是对我们要存储数据的key进行hash计算,分配到不... 阅读全文
posted @ 2015-04-01 11:36 lintong 阅读(4640) 评论(0) 推荐(3) 编辑
摘要: 转载自:http://stackoverflow.com/questions/10558465/memcached-vs-redisUpdated 10/9/2014Today marks the day that memcached no longer has any significant ad... 阅读全文
posted @ 2015-04-01 10:44 lintong 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 本文转载自:http://my.oschina.net/flynewton/blog/10660将memcached.pyc拷贝到工作目录1 #!/usr/bin/env python2 3 import memcache4 5 mc = memcache.Client(['127.0.0.1:... 阅读全文
posted @ 2015-04-01 10:36 lintong 阅读(2603) 评论(0) 推荐(0) 编辑
摘要: 本文转载自:http://www.ccvita.com/306.html协议memcached 的客户端使用TCP链接与服务器通讯。(UDP接口也同样有效,参考后文的 “UDP协议” )一个运行中的memcached服务器监视一些(可设置)端口。客户端连接这些端口,发送命令到服务器,读取回应,最后关... 阅读全文
posted @ 2015-04-01 10:21 lintong 阅读(2752) 评论(0) 推荐(0) 编辑
摘要: Publish/SubscribeIn theprevious tutorialwe created a work queue. The assumption behind a work queue is that each task is delivered to exactly one work... 阅读全文
posted @ 2015-03-31 23:16 lintong 阅读(291) 评论(0) 推荐(0) 编辑
摘要: Work QueuesIn thefirst tutorialwe wrote programs to send and receive messages from a named queue. In this one we'll create aWork Queuethat will be use... 阅读全文
posted @ 2015-03-31 23:00 lintong 阅读(699) 评论(0) 推荐(0) 编辑
摘要: IntroductionRabbitMQ is a message broker. The principal idea is pretty simple: it accepts and forwards messages.RabbitMQ, and messaging in general, us... 阅读全文
posted @ 2015-03-31 22:41 lintong 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 本文转载自:http://blog.nosqlfan.com/html/955.htmlBitcask是一个日志型的基于hash表结构和key-value存储模型。1.日志型的数据文件何谓日志型?就是append only,所有写操作只追加而不修改老的数据,就像我们的各种服务器日志一样。在Bitca... 阅读全文
posted @ 2015-03-31 22:02 lintong 阅读(465) 评论(0) 推荐(0) 编辑