03 2016 档案
windows下redis的安装
摘要:转载自:http://www.cnblogs.com/sword-successful/archive/2015/08/02/4696967.html 1、下载地址:https://github.com/downloads/dmajkic/redis/redis-2.4.5-win32-win64. 阅读全文
posted @ 2016-03-23 14:28 hi_rain
常见问题
摘要:阻塞队列:当生产者的速度大于消费者的速度,很容易把内存撑爆,所以必须用阻塞队列。线程池大小因素:硬件的性能,线程任务是cpu密集型还是io密集型,是否有其它任务在执行.经验法则:对于cpu密集型任务:线程池大小应该接近核数,对于IO密集型,线程池可以设置更大一些,最好是压力测试。 阅读全文
posted @ 2016-03-18 15:01 hi_rain
zookeeper应用场景(转)
摘要:转载自:http://www.cnblogs.com/sharpxiajun/archive/2013/06/02/3113923.html Zookeeper是hadoop的一个子项目,虽然源自hadoop,但是我发现zookeeper脱离hadoop的范畴开发分布式框架的运用 越来越多。今天我想 阅读全文
posted @ 2016-03-11 16:18 hi_rain
zookeeper 介绍
摘要:https://www.ibm.com/developerworks/cn/opensource/os-cn-zookeeper/ 阅读全文
posted @ 2016-03-10 16:58 hi_rain
Httpclient 设置读取超时及连接重试等配置 (转载)
摘要:private CloseableHttpClient buildHttpClient() { HttpClientBuilder cb = HttpClientBuilder .create() .disableAutomaticRetries() .setSSLHostnameVerifier( 阅读全文
posted @ 2016-03-08 13:57 hi_rain
设计模式之责任链模式(转)
摘要:转载自:http://alaric.iteye.com/blog/1926447?utm_source=tuicool&utm_medium=referral 责任链(Chain of Responsibility)模式:责任链模式是对象的行为模式。使多个对象都有机会处理请求,从而避免请求的发送者和 阅读全文
posted @ 2016-03-07 17:04 hi_rain