随笔分类 - 乱七八糟
摘要: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
摘要:本文转载自:http://blog.csdn.net/kongqz/article/details/6695417一、概述 1、我们的memcache客户端使用了一致性hash算法ketama进行数据存储节点的选择。与常规的hash算法思路不同,只是对我们要存储数据的key进行hash计算,分配到不...
阅读全文
posted @ 2015-04-01 11:36
lintong
摘要:转载自: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
摘要:本文转载自: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
摘要:本文转载自:http://www.ccvita.com/306.html协议memcached 的客户端使用TCP链接与服务器通讯。(UDP接口也同样有效,参考后文的 “UDP协议” )一个运行中的memcached服务器监视一些(可设置)端口。客户端连接这些端口,发送命令到服务器,读取回应,最后关...
阅读全文
posted @ 2015-04-01 10:21
lintong
摘要: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
摘要: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
摘要: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
摘要:本文转载自:http://blog.nosqlfan.com/html/955.htmlBitcask是一个日志型的基于hash表结构和key-value存储模型。1.日志型的数据文件何谓日志型?就是append only,所有写操作只追加而不修改老的数据,就像我们的各种服务器日志一样。在Bitca...
阅读全文
posted @ 2015-03-31 22:02
lintong
摘要:本文转载自:http://blog.csdn.net/yuanrxdu/article/details/22474697Merkle Tree是Dynamo中用来同步数据一致性的算法,Merkle Tree是基于数据HASH构建的一个树。它具有以下几个特点:1、数据结构是一个树,可以是二叉树,也可以...
阅读全文
posted @ 2015-03-31 22:00
lintong
摘要:上一章的结尾我们留下了一个问题,就是在上一章所介绍的模型中,恢复管理器必须要通过全篇扫描整个undolog进行日志恢复,这样做显然是没有太大必要的,因为系统中断肯定是在最后几个事务受到影响,前面的事务应该已经完成commit或者rollback了,不会出现abort的情况,那我们如何知道哪些事务受到...
阅读全文
posted @ 2015-03-31 17:32
lintong

浙公网安备 33010602011771号