没有合适的资源?快使用搜索试试~ 我知道了~
High-Performance.Java.Persistence
5星 · 超过95%的资源 需积分: 9 116 下载量 67 浏览量
2017-07-25
22:47:21
上传
评论 2
收藏 15.59MB PDF 举报
温馨提示
试读
245页
High-Performance.Java.Persistence.pdf
资源推荐
资源详情
资源评论
High-Performance Java Persistence
Get the most out of your persistence layer
Vlad Mihalcea
© 2015 - 2016 Vlad Mihalcea
To my wife and kids
Contents
I Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1. Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1 The database server and the connectivity layer . . . . . . . . . . . . . . . . . . . . 3
1.2 The application data access layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.1 The ORM framework . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.2 The native query builder framework . . . . . . . . . . . . . . . . . . . . . . 4
2. Performance and Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 Response time and throughput . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 Database connections boundaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.3 Scaling up and scaling out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3.1 Master-Slave replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3.2 Multi-Master replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3.3 Sharding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
II JDBC and Database Essentials . . . . . . . . . . . . . . . . . 14
3. JDBC Connection Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.1 DriverManager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2 DataSource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.2.1 Why is pooling so much faster? . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.3 Queuing theory capacity planning . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.4 Practical database connection provisioning . . . . . . . . . . . . . . . . . . . . . . 26
3.4.1 A real-life connection pool monitoring example . . . . . . . . . . . . . . . . 27
3.4.1.1 Concurrent connection request count metric . . . . . . . . . . . . . . 28
3.4.1.2 Concurrent connection count metric . . . . . . . . . . . . . . . . . . . 29
3.4.1.3 Maximum pool size metric . . . . . . . . . . . . . . . . . . . . . . . . 30
3.4.1.4 Connection acquisition time metric . . . . . . . . . . . . . . . . . . . 30
3.4.1.5 Retry attempts metric . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.4.1.6 Overall connection acquisition time metric . . . . . . . . . . . . . . . 31
3.4.1.7 Connection lease time metric . . . . . . . . . . . . . . . . . . . . . . . 32
4. Batch Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
剩余244页未读,继续阅读
资源评论
- zhenfanwu2017-11-14为了再次下载
- xshalk2017-10-31还不错,可以了解
- weixin_416407022018-02-05为了再次下载
- luogl_19832017-10-30为了再次下载
wj120943839
- 粉丝: 1
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功