- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: https://github.com/tramchamploo/buffer-slayer
- 软件文档: https://github.com/tramchamploo/buffer-slayer
软件介绍
buffer-slayer 是一个把请求在内存中 buffer 并批量发送的工具,适用于批量能显著提升性能的组件(redis-client、jdbc), 支持一对一的回调。
快速启动
io.bufferslayer
buffer-spring-jdbc
1.1.0
ReporterProperties reporterProperties = new ReporterProperties()
.setBufferedMaxMessages(500)
.setPendingMaxMessages(10000)
.setMetrics("inmemory")
.setMetricsExporter("http")
.setParallelismPerBatch(5)
.setSenderExecutor(new ThreadPoolExecutor(200,
200, 0, TimeUnit.MILLISECONDS, new SynchronousQueue<>()));
BatchedJdbcTemplate template = new BatchedJdbcTemplate(reporterProperties);
template.setDataSource(dataSource);
Promise promise = template.update(...);
promise.done(success -> ...)
.fail(reject -> ...);
吞吐量对比
Benchmark Mode Cnt Score Units
BatchedJdbcTemplateBenchmark.high_contention_batched thrpt 15 8709.042 ops/s
BatchedJdbcTemplateBenchmark.high_contention_unbatched thrpt 15 271.529 ops/s
BatchedJdbcTemplateBenchmark.mild_contention_batched thrpt 15 2146.595 ops/s
BatchedJdbcTemplateBenchmark.mild_contention_unbatched thrpt 15 262.621 ops/s
BatchedJdbcTemplateBenchmark.no_contention_batched thrpt 15 1194.852 ops/s
BatchedJdbcTemplateBenchmark.no_contention_unbatched thrpt 15 201.806 ops/s
JavaScript & jQuery交互式Web前端开发
[美]达克特(Duckett,J.) / 杜伟、柴晓伟、涂曙光 / 清华大学出版社 / 2015-6-9 / 79.80元
欢迎选择一种更高效的学习JavaScript和jQuery的方式。 你是一名JavaScript新手?或是您曾经向自己的Web页面上添加过一些脚本,但想以一种更好的方式来实现它们?本书非常适合您。本书不仅向您展示如何阅读和编写JavaScript代码,同时还会以一种简单且视觉化的方式,教您有关计算机编程的基础知识。阅读本书之前,您只需要对HTML和CSS有一些了解即可。 通过将编程理论......一起来看看 《JavaScript & jQuery交互式Web前端开发》 这本书的介绍吧!
