- 博客(7)
- 资源 (4)
- 收藏
- 关注
原创 为什么基于TCP的应用需要心跳包(TCP keep-alive原理分析)
TCP keep-alive的三个参数用man命令,可以查看linux的tcp的参数:man 7 tcp其中keep-alive相关的参数有三个: tcp_keepalive_intvl (integer; default: 75; since Linux 2.4) The number of seconds between TCP keep-alive pr
2015-03-16 19:12:50 31835
原创 基于redis的分布式ID生成器
项目地址https://github.com/hengyunabc/redis-id-generator基于redis的分布式ID生成器。准备首先,要知道redis的EVAL,EVALSHA命令:http://redis.readthedocs.org/en/latest/script/eval.htmlhttp://redis.readthedocs.org/en/latest/script/ev
2015-03-13 19:22:59 42135 23
原创 Cookie & Session & CSRF
新blog地址:http://hengyunabc.github.io/cookie-and-session-and-csrf/在线幻灯片地址: Cookie & Session & CSRF
2015-03-09 19:42:52 2593
原创 防止页面被iframe恶意嵌套
新blog地址:http://hengyunabc.github.io/prevent-iframe-stealing/缘起在看资料时,看到这样的防止iframe嵌套的代码:try { if (window.top != window.self) { var ref = document.referer; if (ref.substring(0, 2) ===
2015-03-09 19:40:21 11197 2
原创 kafka manager安装
项目信息https://github.com/yahoo/kafka-manager这个项目比 https://github.com/claudemamo/kafka-web-console 要好用一些,显示的信息更加丰富,kafka-manager本身可以是一个集群。不过kafka-manager也没有权限管理功能。Kafka web console的安装可以参考之前的blog:http://b
2015-03-09 19:35:59 26226 7
原创 基于dropwizard/metrics ,kafka,zabbix构建应用统计数据收集展示系统
新blog地址:http://hengyunabc.github.io/about-metrics/想要实现的功能应用可以用少量的代码,实现统计某类数据的功能统计的数据可以很方便地展示metricsmetrics,按字面意思是度量,指标。举具体的例子来说,一个web服务器: - 一分钟内请求多少次? - 平均请求耗时多长? - 最长请求时间? - 某个方法的被调用次数,时长?以缓存为例
2015-03-05 23:13:47 11089
原创 一步一步用jenkins,ansible,supervisor打造一个web构建发布系统
新blog地址:http://hengyunabc.github.io/deploy-system-build-with-jenkins-ansible-supervisor/一步一步用jenkins,ansible,supervisor打造一个web构建发布系统。本来应该还有gitlab这一环节的,但是感觉加上,内容会增加很多。所以直接用github上的spring-mvc-showcase项目来
2015-03-05 01:08:04 36293
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人