Quaz is a very common library for us to use to scheudle regular jobs. Just record the paradism to use the Quarz 1, SchedulerFactory to initialize a scheduler to use, there might be several kinds of schedulers to use base on the property configuration, for example the thread pool size, the thread po…
2016-06-14 14:26 · 企业架构
Do not use locks in the main transaction flow because they cause context switches, and therefore latency and unpredictable jitter. Never have more threads that need to run than you have cores available. Set affinity of threads to cores, or at least sockets, to avoid cache pollution by avoiding migr…
2016-06-08 15:53 · Java 并发编程
从 github上下载好dubbo2.5.3 的源代码后, 可以没有办法编译。 从出错信息看 是找不到parent opensesame pom 文件。 这个pom 文件还是比较好解决的, 从 github.com/alibaba 上面能够找到这个parent pom 文件。 一般来讲开源的公司都会有一个公共的parent pom 文件从项目管理角度定义它的整个license, source code 的repository, binary 的repository, 以及所有项目都会用到的一些公共的定义。但是把这个pom 文件install 到我的local repository 后问题还是…
2016-05-21 13:29