└── README.md /README.md: -------------------------------------------------------------------------------- 1 | 2 |

《后端架构师技术图谱》

3 | 4 | [![知识共享协议(CC协议)](https://img.shields.io/badge/License-Creative%20Commons-DC3D24.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh) 5 | [![GitHub stars](https://img.shields.io/github/stars/xingshaocheng/architect-awesome.svg?style=flat&label=Star)](https://github.com/xingshaocheng/architect-awesome/stargazers) 6 | [![GitHub forks](https://img.shields.io/github/forks/xingshaocheng/architect-awesome.svg?style=flat&label=Fork)](https://github.com/xingshaocheng/architect-awesome/fork) 7 | [![GitHub watchers](https://img.shields.io/github/watchers/xingshaocheng/architect-awesome.svg?style=flat&label=Watch)](https://github.com/xingshaocheng/architect-awesome/watchers) 8 | 9 | **更新于20180513** 10 | * [数据结构](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据结构) 11 | * [队列](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#队列) 12 | * [集合](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#集合) 13 | * [链表、数组](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#链表数组) 14 | * [字典、关联数组](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#字典关联数组) 15 | * [栈](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#栈) 16 | * [树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#树) 17 | * [二叉树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#二叉树) 18 | * [完全二叉树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#完全二叉树) 19 | * [平衡二叉树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#平衡二叉树) 20 | * [二叉查找树(BST)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#二叉查找树bst) 21 | * [红黑树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#红黑树) 22 | * [B-,B+,B*树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#b-bb树) 23 | * [LSM 树](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#lsm-树) 24 | * [BitSet](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#bitset) 25 | * [常用算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#常用算法) 26 | * [排序、查找算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#排序查找算法) 27 | * [选择排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#选择排序) 28 | * [冒泡排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#冒泡排序) 29 | * [插入排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#插入排序) 30 | * [快速排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#快速排序) 31 | * [归并排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#归并排序) 32 | * [希尔排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#希尔排序) 33 | * [堆排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#堆排序) 34 | * [计数排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#计数排序) 35 | * [桶排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#桶排序) 36 | * [基数排序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#基数排序) 37 | * [二分查找](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#二分查找) 38 | * [Java 中的排序工具](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#java-中的排序工具) 39 | * [布隆过滤器](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#布隆过滤器) 40 | * [字符串比较](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#字符串比较) 41 | * [KMP 算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#kmp-算法) 42 | * [深度优先、广度优先](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#深度优先广度优先) 43 | * [贪心算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#贪心算法) 44 | * [回溯算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#回溯算法) 45 | * [剪枝算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#剪枝算法) 46 | * [动态规划](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#动态规划) 47 | * [朴素贝叶斯](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#朴素贝叶斯) 48 | * [推荐算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#推荐算法) 49 | * [最小生成树算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#最小生成树算法) 50 | * [最短路径算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#最短路径算法) 51 | * [并发](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#并发) 52 | * [多线程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#多线程) 53 | * [线程安全](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#线程安全) 54 | * [一致性、事务](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#一致性事务) 55 | * [事务 ACID 特性](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#事务-acid-特性) 56 | * [事务的隔离级别](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#事务的隔离级别) 57 | * [MVCC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#mvcc) 58 | * [锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#锁) 59 | * [Java中的锁和同步类](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#java中的锁和同步类) 60 | * [公平锁 & 非公平锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#公平锁--非公平锁) 61 | * [悲观锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#悲观锁) 62 | * [乐观锁 & CAS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#乐观锁--cas) 63 | * [ABA 问题](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#aba-问题) 64 | * [CopyOnWrite容器](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#copyonwrite容器) 65 | * [RingBuffer](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ringbuffer) 66 | * [可重入锁 & 不可重入锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#可重入锁--不可重入锁) 67 | * [互斥锁 & 共享锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#互斥锁--共享锁) 68 | * [死锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#死锁) 69 | * [操作系统](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#操作系统) 70 | * [计算机原理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#计算机原理) 71 | * [CPU](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#cpu) 72 | * [多级缓存](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#多级缓存) 73 | * [进程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#进程) 74 | * [线程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#线程) 75 | * [协程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#协程) 76 | * [Linux](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#linux) 77 | * [设计模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#设计模式) 78 | * [设计模式的六大原则](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#设计模式的六大原则) 79 | * [23种常见设计模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#23种常见设计模式) 80 | * [应用场景](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#应用场景) 81 | * [单例模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#单例模式) 82 | * [责任链模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#责任链模式) 83 | * [MVC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#mvc) 84 | * [IOC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ioc) 85 | * [AOP](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#aop) 86 | * [UML](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#uml) 87 | * [微服务思想](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#微服务思想) 88 | * [康威定律](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#康威定律) 89 | * [运维 & 统计 & 技术支持](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#运维--统计--技术支持) 90 | * [常规监控](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#常规监控) 91 | * [APM](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#apm) 92 | * [统计分析](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#统计分析) 93 | * [持续集成(CI/CD)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#持续集成cicd) 94 | * [Jenkins](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#jenkins) 95 | * [环境分离](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#环境分离) 96 | * [自动化运维](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#自动化运维) 97 | * [Ansible](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ansible) 98 | * [puppet](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#puppet) 99 | * [chef](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#chef) 100 | * [测试](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#测试) 101 | * [TDD 理论](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#tdd-理论) 102 | * [单元测试](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#单元测试) 103 | * [压力测试](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#压力测试) 104 | * [全链路压测](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#全链路压测) 105 | * [A/B 、灰度、蓝绿测试](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ab-灰度蓝绿测试) 106 | * [虚拟化](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#虚拟化) 107 | * [KVM](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#kvm) 108 | * [Xen](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#xen) 109 | * [OpenVZ](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#openvz) 110 | * [容器技术](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#容器技术) 111 | * [Docker](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#docker) 112 | * [云技术](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#云技术) 113 | * [OpenStack](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#openstack) 114 | * [DevOps](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#devops) 115 | * [文档管理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#文档管理) 116 | * [中间件](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#中间件) 117 | * [Web Server](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#web-server) 118 | * [Nginx](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#nginx) 119 | * [OpenResty](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#openresty) 120 | * [Apache Httpd](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#apache-httpd) 121 | * [Tomcat](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#tomcat) 122 | * [架构原理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#架构原理) 123 | * [调优方案](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#调优方案) 124 | * [Jetty](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#jetty) 125 | * [缓存](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#缓存) 126 | * [本地缓存](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#本地缓存) 127 | * [客户端缓存](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#客户端缓存) 128 | * [服务端缓存](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#服务端缓存) 129 | * [Web缓存](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#web缓存) 130 | * [Memcached](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#memcached) 131 | * [Redis](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#redis) 132 | * [架构](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#架构) 133 | * [回收策略](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#回收策略) 134 | * [Tair](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#tair) 135 | * [消息队列](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#消息队列) 136 | * [消息总线](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#消息总线) 137 | * [消息的顺序](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#消息的顺序) 138 | * [RabbitMQ](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rabbitmq) 139 | * [RocketMQ](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rocketmq) 140 | * [ActiveMQ](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#activemq) 141 | * [Kafka](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#kafka) 142 | * [Redis 消息推送](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#redis-消息推送) 143 | * [ZeroMQ](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#zeromq) 144 | * [定时调度](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#定时调度) 145 | * [单机定时调度](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#单机定时调度) 146 | * [分布式定时调度](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式定时调度) 147 | * [RPC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rpc) 148 | * [Dubbo](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#dubbo) 149 | * [Thrift](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#thrift) 150 | * [gRPC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#grpc) 151 | * [数据库中间件](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据库中间件) 152 | * [Sharding Jdbc](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#sharding-jdbc) 153 | * [日志系统](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#日志系统) 154 | * [日志搜集](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#日志搜集) 155 | * [配置中心](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#配置中心) 156 | * [API 网关](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#api-网关) 157 | * [网络](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#网络) 158 | * [协议](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#协议) 159 | * [OSI 七层协议](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#osi-七层协议) 160 | * [TCP/IP](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#tcpip) 161 | * [HTTP](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#http) 162 | * [HTTP2.0](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#http20) 163 | * [HTTPS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#https) 164 | * [网络模型](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#网络模型) 165 | * [Epoll](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#epoll) 166 | * [Java NIO](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#java-nio) 167 | * [kqueue](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#kqueue) 168 | * [连接和短连接](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#连接和短连接) 169 | * [框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#框架) 170 | * [零拷贝(Zero-copy)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#零拷贝zero-copy) 171 | * [序列化(二进制协议)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#序列化二进制协议) 172 | * [Hessian](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#hessian) 173 | * [Protobuf](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#protobuf) 174 | * [数据库](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据库) 175 | * [基础理论](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#基础理论) 176 | * [数据库设计的三大范式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据库设计的三大范式) 177 | * [MySQL](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#mysql) 178 | * [原理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#原理) 179 | * [InnoDB](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#innodb) 180 | * [优化](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#优化) 181 | * [索引](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#索引) 182 | * [聚集索引, 非聚集索引](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#聚集索引-非聚集索引) 183 | * [复合索引](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#复合索引) 184 | * [自适应哈希索引(AHI)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#自适应哈希索引ahi) 185 | * [explain](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#explain) 186 | * [NoSQL](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#nosql) 187 | * [MongoDB](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#mongodb) 188 | * [Hbase](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#hbase) 189 | * [搜索引擎](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#搜索引擎) 190 | * [搜索引擎原理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#搜索引擎原理) 191 | * [Lucene](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#lucene) 192 | * [Elasticsearch](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#elasticsearch) 193 | * [Solr](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#solr) 194 | * [sphinx](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#sphinx) 195 | * [性能](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#性能) 196 | * [性能优化方法论](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#性能优化方法论) 197 | * [容量评估](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#容量评估) 198 | * [CDN 网络](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#cdn-网络) 199 | * [连接池](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#连接池) 200 | * [性能调优](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#性能调优) 201 | * [大数据](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#大数据) 202 | * [流式计算](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#流式计算) 203 | * [Storm](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#storm) 204 | * [Flink](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#flink) 205 | * [Kafka Stream](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#kafka-stream) 206 | * [应用场景](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#应用场景-1) 207 | * [Hadoop](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#hadoop) 208 | * [HDFS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#hdfs) 209 | * [MapReduce](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#mapreduce) 210 | * [Yarn](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#yarn) 211 | * [Spark](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#spark) 212 | * [安全](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#安全) 213 | * [web 安全](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#web-安全) 214 | * [XSS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#xss) 215 | * [CSRF](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#csrf) 216 | * [SQL 注入](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#sql-注入) 217 | * [Hash Dos](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#hash-dos) 218 | * [脚本注入](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#脚本注入) 219 | * [漏洞扫描工具](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#漏洞扫描工具) 220 | * [验证码](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#验证码) 221 | * [DDoS 防范](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ddos-防范) 222 | * [用户隐私信息保护](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#用户隐私信息保护) 223 | * [序列化漏洞](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#序列化漏洞) 224 | * [加密解密](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#加密解密) 225 | * [对称加密](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#对称加密) 226 | * [哈希算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#哈希算法) 227 | * [非对称加密](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#非对称加密) 228 | * [服务器安全](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#服务器安全) 229 | * [数据安全](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据安全) 230 | * [数据备份](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据备份) 231 | * [网络隔离](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#网络隔离) 232 | * [内外网分离](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#内外网分离) 233 | * [登录跳板机](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#登录跳板机) 234 | * [授权、认证](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#授权认证) 235 | * [RBAC](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rbac) 236 | * [OAuth2.0](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#oauth20) 237 | * [双因素认证(2FA)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#双因素认证2fa) 238 | * [单点登录(SSO)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#单点登录sso) 239 | * [常用开源框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#常用开源框架) 240 | * [开源协议](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#开源协议) 241 | * [日志框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#日志框架) 242 | * [Log4j、Log4j2](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#log4jlog4j2) 243 | * [Logback](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#logback) 244 | * [ORM](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#orm) 245 | * [网络框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#网络框架) 246 | * [Web 框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#web-框架) 247 | * [Spring 家族](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#spring-家族) 248 | * [工具框架](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#工具框架) 249 | * [分布式设计](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式设计) 250 | * [扩展性设计](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#扩展性设计) 251 | * [稳定性 & 高可用](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#稳定性--高可用) 252 | * [硬件负载均衡](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#硬件负载均衡) 253 | * [软件负载均衡](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#软件负载均衡) 254 | * [限流](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#限流) 255 | * [应用层容灾](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#应用层容灾) 256 | * [跨机房容灾](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#跨机房容灾) 257 | * [容灾演练流程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#容灾演练流程) 258 | * [平滑启动](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#平滑启动) 259 | * [数据库扩展](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#数据库扩展) 260 | * [读写分离模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#读写分离模式) 261 | * [分片模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分片模式) 262 | * [服务治理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#服务治理) 263 | * [服务注册与发现](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#服务注册与发现) 264 | * [服务路由控制](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#服务路由控制) 265 | * [分布式一致](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式一致) 266 | * [CAP 与 BASE 理论](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#cap-与-base-理论) 267 | * [分布式锁](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式锁) 268 | * [分布式一致性算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式一致性算法) 269 | * [PAXOS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#paxos) 270 | * [Zab](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#zab) 271 | * [Raft](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#raft) 272 | * [Gossip](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#gossip) 273 | * [两阶段提交、多阶段提交](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#两阶段提交多阶段提交) 274 | * [幂等](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#幂等) 275 | * [分布式一致方案](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式一致方案) 276 | * [分布式 Leader 节点选举](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式-leader-节点选举) 277 | * [TCC(Try/Confirm/Cancel) 柔性事务](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#tcctryconfirmcancel-柔性事务) 278 | * [分布式文件系统](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#分布式文件系统) 279 | * [唯一ID 生成](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#唯一id-生成) 280 | * [全局唯一ID](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#全局唯一id) 281 | * [一致性Hash算法](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#一致性hash算法) 282 | * [设计思想 & 开发模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#设计思想--开发模式) 283 | * [DDD(Domain-driven Design - 领域驱动设计)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#ddddomain-driven-design---领域驱动设计) 284 | * [命令查询职责分离(CQRS)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#命令查询职责分离cqrs) 285 | * [贫血,充血模型](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#贫血充血模型) 286 | * [Actor 模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#actor-模式) 287 | * [响应式编程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#响应式编程) 288 | * [Reactor](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#reactor) 289 | * [RxJava](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rxjava) 290 | * [Vert.x](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#vertx) 291 | * [DODAF2.0](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#dodaf20) 292 | * [Serverless](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#serverless) 293 | * [Service Mesh](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#service-mesh) 294 | * [项目管理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#项目管理) 295 | * [架构评审](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#架构评审) 296 | * [重构](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#重构) 297 | * [代码规范](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#代码规范) 298 | * [代码 Review](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#代码-review) 299 | * [RUP](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#rup) 300 | * [看板管理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#看板管理) 301 | * [SCRUM](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#scrum) 302 | * [敏捷开发](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#敏捷开发) 303 | * [极限编程(XP)](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#极限编程xp) 304 | * [结对编程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#结对编程) 305 | * [FMEA管理模式](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#fmea管理模式) 306 | * [通用业务术语](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#通用业务术语) 307 | * [技术趋势](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#技术趋势) 308 | * [政策、法规](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#政策法规) 309 | * [法律](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#法律) 310 | * [严格遵守刑法253法条](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#严格遵守刑法253法条) 311 | * [架构师素质](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#架构师素质) 312 | * [团队管理](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#团队管理) 313 | * [招聘](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#招聘) 314 | * [资讯](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#资讯) 315 | * [行业资讯](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#行业资讯) 316 | * [公众号列表](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#公众号列表) 317 | * [博客](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#博客) 318 | * [团队博客](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#团队博客) 319 | * [个人博客](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#个人博客) 320 | * [综合门户、社区](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#综合门户社区) 321 | * [问答、讨论类社区](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#问答讨论类社区) 322 | * [行业数据分析](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#行业数据分析) 323 | * [专项网站](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#专项网站) 324 | * [其他类](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#其他类) 325 | * [推荐参考书](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#推荐参考书) 326 | * [在线电子书](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#在线电子书) 327 | * [纸质书](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#纸质书) 328 | * [开发方面](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#开发方面) 329 | * [架构方面](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#架构方面) 330 | * [技术管理方面](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#技术管理方面) 331 | * [基础理论](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#基础理论-1) 332 | * [工具方面](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#工具方面) 333 | * [大数据方面](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#大数据方面) 334 | * [技术资源](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#技术资源) 335 | * [开源资源](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#开源资源) 336 | * [手册、文档、教程](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#手册文档教程) 337 | * [在线课堂](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#在线课堂) 338 | * [会议、活动](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#会议活动) 339 | * [常用APP](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#常用app) 340 | * [找工作](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#找工作) 341 | * [工具](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#工具) 342 | * [代码托管](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#代码托管) 343 | * [文件服务](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#文件服务) 344 | * [综合云服务商](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#综合云服务商) 345 | * [VPS](https://github.com/xingshaocheng/architect-awesome/blob/master/README.md#vps) 346 | 347 | 348 | **(Toc generated by [simple-php-github-toc](https://github.com/xingshaocheng/simple-php-github-toc) )** 349 | 350 | # 数据结构 351 | 352 | ## 队列 353 | * [《java队列——queue详细分析》](https://www.cnblogs.com/lemon-flm/p/7877898.html) 354 | * 非阻塞队列:ConcurrentLinkedQueue(无界线程安全),采用CAS机制(compareAndSwapObject原子操作)。 355 | * 阻塞队列:ArrayBlockingQueue(有界)、LinkedBlockingQueue(无界)、DelayQueue、PriorityBlockingQueue,采用锁机制;使用 ReentrantLock 锁。 356 | 357 | * [《LinkedList、ConcurrentLinkedQueue、LinkedBlockingQueue对比分析》](https://www.cnblogs.com/mantu/p/5802393.html) 358 | 359 | ## 集合 360 | * [《Java Set集合的详解》](https://blog.csdn.net/qq_33642117/article/details/52040345) 361 | 362 | ## 链表、数组 363 | * [《Java集合详解--什么是List》](https://blog.csdn.net/wz249863091/article/details/52853360) 364 | 365 | ## 字典、关联数组 366 | * [《Java map 详解 - 用法、遍历、排序、常用API等》](https://baike.xsoftlab.net/view/250.html) 367 | 368 | ## 栈 369 | * [《java数据结构与算法之栈(Stack)设计与实现》](https://blog.csdn.net/javazejian/article/details/53362993) 370 | * [《Java Stack 类》](http://www.runoob.com/java/java-stack-class.html) 371 | * [《java stack的详细实现分析》](https://blog.csdn.net/f2006116/article/details/51375225) 372 | * Stack 是线程安全的。 373 | * 内部使用数组保存数据,不够时翻倍。 374 | 375 | ## 树 376 | 377 | ### 二叉树 378 | 379 | 每个节点最多有两个叶子节点。 380 | * [《二叉树》](https://blog.csdn.net/cai2016/article/details/52589952) 381 | 382 | ### 完全二叉树 383 | * [《完全二叉树》](https://baike.baidu.com/item/%E5%AE%8C%E5%85%A8%E4%BA%8C%E5%8F%89%E6%A0%91/7773232?fr=aladdin) 384 | * 叶节点只能出现在最下层和次下层,并且最下面一层的结点都集中在该层最左边的若干位置的二叉树。 385 | 386 | ### 平衡二叉树 387 | 左右两个子树的高度差的绝对值不超过1,并且左右两个子树都是一棵平衡二叉树。 388 | * [《浅谈数据结构-平衡二叉树》](http://www.cnblogs.com/polly333/p/4798944.html) 389 | * [《浅谈算法和数据结构: 八 平衡查找树之2-3树》](http://www.cnblogs.com/yangecnu/p/Introduce-2-3-Search-Tree.html) 390 | 391 | ### 二叉查找树(BST) 392 | 二叉查找树(Binary Search Tree),也称有序二叉树(ordered binary tree),排序二叉树(sorted binary tree)。 393 | 394 | * [《浅谈算法和数据结构: 七 二叉查找树》](http://www.cnblogs.com/yangecnu/p/Introduce-Binary-Search-Tree.html) 395 | 396 | 397 | ### 红黑树 398 | * [《最容易懂得红黑树》](https://blog.csdn.net/sun_tttt/article/details/65445754) 399 | * 添加阶段后,左旋或者右旋从而再次达到平衡。 400 | * [《浅谈算法和数据结构: 九 平衡查找树之红黑树》](http://www.cnblogs.com/yangecnu/p/Introduce-Red-Black-Tree.html) 401 | 402 | ### B-,B+,B*树 403 | MySQL是基于B+树聚集索引组织表 404 | 405 | * [《B-树,B+树,B\*树详解》](https://blog.csdn.net/aqzwss/article/details/53074186) 406 | * [《B-树,B+树与B\*树的优缺点比较》](https://blog.csdn.net/bigtree_3721/article/details/73632405) 407 | * B+ 树的叶子节点链表结构相比于 B- 树便于扫库,和范围检索。 408 | ### LSM 树 409 | 410 | LSM(Log-Structured Merge-Trees)和 B+ 树相比,是牺牲了部分读的性能来换取写的性能(通过批量写入),实现读写之间的。 411 | Hbase、LevelDB、Tair(Long DB)、nessDB 采用 LSM 树的结构。LSM可以快速建立索引。 412 | 413 | * [《LSM树 VS B+树》](https://blog.csdn.net/dbanote/article/details/8897599) 414 | * B+ 树读性能好,但由于需要有序结构,当key比较分散时,磁盘寻道频繁,造成写性能。 415 | * LSM 是将一个大树拆分成N棵小树,先写到内存(无寻道问题,性能高),在内存中构建一颗有序小树(有序树),随着小树越来越大,内存的小树会flush到磁盘上。当读时,由于不知道数据在哪棵小树上,因此必须遍历(二分查找)所有的小树,但在每颗小树内部数据是有序的。 416 | 417 | * [《LSM树(Log-Structured Merge Tree)存储引擎》](https://blog.csdn.net/u014774781/article/details/52105708) 418 | * 极端的说,基于LSM树实现的HBase的写性能比MySQL高了一个数量级,读性能低了一个数量级。 419 | * 优化方式:Bloom filter 替代二分查找;compact 小数位大树,提高查询性能。 420 | * Hbase 中,内存中达到一定阈值后,整体flush到磁盘上、形成一个文件(B+数),HDFS不支持update操作,所以Hbase做整体flush而不是merge update。flush到磁盘上的小树,定期会合并成一个大树。 421 | 422 | ## BitSet 423 | 424 | 经常用于大规模数据的排重检查。 425 | 426 | * [《Java Bitset类》](http://www.runoob.com/java/java-bitset-class.html) 427 | * [《Java BitSet(位集)》](https://blog.csdn.net/caiandyong/article/details/51581160) 428 | 429 | # 常用算法 430 | 431 | * [《常见排序算法及对应的时间复杂度和空间复杂度》](https://blog.csdn.net/gane_cheng/article/details/52652705) 432 | 433 | ## 排序、查找算法 434 | 435 | * [《常见排序算法及对应的时间复杂度和空间复杂度》](https://blog.csdn.net/gane_cheng/article/details/52652705) 436 | 437 | ### 选择排序 438 | * [《Java中的经典算法之选择排序(SelectionSort)》](https://www.cnblogs.com/shen-hua/p/5424059.html) 439 | * 每一趟从待排序的记录中选出最小的元素,顺序放在已排好序的序列最后,直到全部记录排序完毕。 440 | 441 | ### 冒泡排序 442 | * [《冒泡排序的2种写法》](https://blog.csdn.net/shuaizai88/article/details/73250615) 443 | * 相邻元素前后交换、把最大的排到最后。 444 | * 时间复杂度 O(n²) 445 | 446 | ### 插入排序 447 | * [《排序算法总结之插入排序》](https://www.cnblogs.com/hapjin/p/5517667.html) 448 | 449 | ### 快速排序 450 | * [《坐在马桶上看算法:快速排序》](http://developer.51cto.com/art/201403/430986.htm) 451 | * 一侧比另外一次都大或小。 452 | ### 归并排序 453 | * [《图解排序算法(四)之归并排序》](http://www.cnblogs.com/chengxiao/p/6194356.html) 454 | * 分而治之,分成小份排序,在合并(重建一个新空间进行复制)。 455 | 456 | ### 希尔排序 457 | TODO 458 | 459 | ### 堆排序 460 | * [《图解排序算法(三)之堆排序》](https://www.cnblogs.com/chengxiao/p/6129630.html) 461 | * 排序过程就是构建最大堆的过程,最大堆:每个结点的值都大于或等于其左右孩子结点的值,堆顶元素是最大值。 462 | 463 | ### 计数排序 464 | * [《计数排序和桶排序》](https://www.cnblogs.com/suvllian/p/5495780.html) 465 | * 和桶排序过程比较像,差别在于桶的数量。 466 | 467 | ### 桶排序 468 | * [《【啊哈!算法】最快最简单的排序——桶排序》](http://blog.51cto.com/ahalei/1362789) 469 | * [《排序算法(三):计数排序与桶排序》](https://blog.csdn.net/sunjinshengli/article/details/70738527) 470 | * 桶排序将[0,1)区间划分为n个相同的大小的子区间,这些子区间被称为桶。 471 | * 每个桶单独进行排序,然后再遍历每个桶。 472 | 473 | ### 基数排序 474 | 475 | 按照个位、十位、百位、...依次来排。 476 | 477 | * [《排序算法系列:基数排序》](https://blog.csdn.net/lemon_tree12138/article/details/51695211) 478 | * [《基数排序》](https://www.cnblogs.com/skywang12345/p/3603669.html) 479 | 480 | 481 | ### 二分查找 482 | * [《二分查找(java实现)》](https://www.cnblogs.com/coderising/p/5708632.html) 483 | * 要求待查找的序列有序。 484 | * 时间复杂度 O(logN)。 485 | 486 | * [《java实现二分查找-两种方式》](https://blog.csdn.net/maoyuanming0806/article/details/78176957) 487 | * while + 递归。 488 | ### Java 中的排序工具 489 | * [《Arrays.sort和Collections.sort实现原理解析》](https://blog.csdn.net/u011410529/article/details/56668545?locationnum=6&fps=1) 490 | * Collections.sort算法调用的是合并排序。 491 | * Arrays.sort() 采用了2种排序算法 -- 基本类型数据使用快速排序法,对象数组使用归并排序。 492 | 493 | ## 布隆过滤器 494 | 495 | 常用于大数据的排重,比如email,url 等。 496 | 核心原理:将每条数据通过计算产生一个指纹(一个字节或多个字节,但一定比原始数据要少很多),其中每一位都是通过随机计算获得,在将指纹映射到一个大的按位存储的空间中。注意:会有一定的错误率。 497 | 优点:空间和时间效率都很高。 498 | 缺点:随着存入的元素数量增加,误算率随之增加。 499 | 500 | * [《布隆过滤器 -- 空间效率很高的数据结构》](https://segmentfault.com/a/1190000002729689) 501 | * [《大量数据去重:Bitmap和布隆过滤器(Bloom Filter)》](https://blog.csdn.net/zdxiq000/article/details/57626464) 502 | * [《基于Redis的布隆过滤器的实现》](https://blog.csdn.net/qq_30242609/article/details/71024458) 503 | * 基于 Redis 的 Bitmap 数据结构。 504 | * [《网络爬虫:URL去重策略之布隆过滤器(BloomFilter)的使用》](https://blog.csdn.net/lemon_tree12138/article/details/47973715) 505 | * 使用Java中的 BitSet 类 和 加权和hash算法。 506 | 507 | ## 字符串比较 508 | 509 | ### KMP 算法 510 | KMP:Knuth-Morris-Pratt算法(简称KMP) 511 | 核心原理是利用一个“部分匹配表”,跳过已经匹配过的元素。 512 | * [《字符串匹配的KMP算法》](http://www.ruanyifeng.com/blog/2013/05/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm.html) 513 | 514 | ## 深度优先、广度优先 515 | * [《广度优先搜索BFS和深度优先搜索DFS》](https://www.cnblogs.com/0kk470/p/7555033.html) 516 | 517 | ## 贪心算法 518 | * [《算法:贪婪算法基础》](https://www.cnblogs.com/MrSaver/p/8641971.html) 519 | * [《常见算法及问题场景——贪心算法》](https://blog.csdn.net/a345017062/article/details/52443781) 520 | 521 | ## 回溯算法 522 | * [《 五大常用算法之四:回溯法》](https://blog.csdn.net/qfikh/article/details/51960331) 523 | 524 | ## 剪枝算法 525 | * [《α-β剪枝算法》](https://blog.csdn.net/luningcsdn/article/details/50930276) 526 | 527 | ## 动态规划 528 | * [《详解动态规划——邹博讲动态规划》](https://www.cnblogs.com/little-YTMM/p/5372680.html) 529 | * [《动态规划算法的个人理解》](https://blog.csdn.net/yao_zi_jie/article/details/54580283) 530 | 531 | ## 朴素贝叶斯 532 | 533 | * [《带你搞懂朴素贝叶斯分类算法》](https://blog.csdn.net/amds123/article/details/70173402) 534 | * P(B|A)=P(A|B)P(B)/P(A) 535 | 536 | * [《贝叶斯推断及其互联网应用1》](http://www.ruanyifeng.com/blog/2011/08/bayesian_inference_part_one.html) 537 | * [《贝叶斯推断及其互联网应用2》](http://www.ruanyifeng.com/blog/2011/08/bayesian_inference_part_two.html) 538 | 539 | 540 | ## 推荐算法 541 | * [《推荐算法综述》](http://www.infoq.com/cn/articles/recommendation-algorithm-overview-part01) 542 | * [《TOP 10 开源的推荐系统简介》](https://www.oschina.net/news/51297/top-10-open-source-recommendation-systems) 543 | 544 | ## 最小生成树算法 545 | * [《算法导论--最小生成树(Kruskal和Prim算法)》](https://blog.csdn.net/luoshixian099/article/details/51908175) 546 | 547 | ## 最短路径算法 548 | 549 | * [《Dijkstra算法详解》](https://blog.csdn.net/qq_35644234/article/details/60870719) 550 | 551 | # 并发 552 | 553 | ## Java 并发 554 | 555 | * [Java 并发知识合集](https://github.com/CL0610/Java-concurrency) 556 | * [JAVA并发知识图谱](https://github.com/CL0610/Java-concurrency/blob/master/Java并发知识图谱.png) 557 | 558 | ## 多线程 559 | 560 | * [《40个Java多线程问题总结》](http://www.importnew.com/18459.html) 561 | 562 | ## 线程安全 563 | 564 | * [《Java并发编程——线程安全及解决机制简介》](https://www.cnblogs.com/zhanht/p/5450325.html) 565 | 566 | ## 一致性、事务 567 | 568 | ### 事务 ACID 特性 569 | * [《数据库事务ACID特性》](https://blog.csdn.net/u012440687/article/details/52116108) 570 | 571 | ### 事务的隔离级别 572 | 573 | * 未提交读:一个事务可以读取另一个未提交的数据,容易出现脏读的情况。 574 | * 读提交:一个事务等另外一个事务提交之后才可以读取数据,但会出现不可重复读的情况(多次读取的数据不一致),读取过程中出现UPDATE操作,会多。(大多数数据库默认级别是RC,比如SQL Server,Oracle),读取的时候不可以修改。 575 | * 可重复读: 同一个事务里确保每次读取的时候,获得的是同样的数据,但不保障原始数据被其他事务更新(幻读),Mysql InnoDB 就是这个级别。 576 | * 序列化:所有事物串行处理(牺牲了效率) 577 | 578 | * [《理解事务的4种隔离级别》](https://blog.csdn.net/qq_33290787/article/details/51924963) 579 | * [数据库事务的四大特性及事务隔离级别](https://www.cnblogs.com/z-sm/p/7245981.html) 580 | 581 | * [《MySQL的InnoDB的幻读问题 》](http://blog.sina.com.cn/s/blog_499740cb0100ugs7.html) 582 | * 幻读的例子非常清楚。 583 | * 通过 SELECT ... FOR UPDATE 解决。 584 | 585 | * [《一篇文章带你读懂MySQL和InnoDB》](http://database.51cto.com/art/201804/570101.htm) 586 | * 图解脏读、不可重复读、幻读问题。 587 | 588 | 589 | ### MVCC 590 | 591 | 592 | * [《【mysql】关于innodb中MVCC的一些理解》](https://www.cnblogs.com/chenpingzhao/p/5065316.html) 593 | * innodb 中 MVCC 用在 Repeatable-Read 隔离级别。 594 | * MVCC 会产生幻读问题(更新时异常。) 595 | 596 | * [《轻松理解MYSQL MVCC 实现机制》](https://blog.csdn.net/whoamiyang/article/details/51901888) 597 | 598 | * 通过隐藏版本列来实现 MVCC 控制,一列记录创建时间、一列记录删除时间,这里的时间 599 | * 每次只操作比当前版本小(或等于)的 行。 600 | 601 | 602 | 603 | ## 锁 604 | 605 | ### Java中的锁和同步类 606 | 607 | * [《Java中的锁分类》](https://www.cnblogs.com/qifengshi/p/6831055.html) 608 | * 主要包括 synchronized、ReentrantLock、和 ReadWriteLock。 609 | 610 | * [《Java并发之AQS详解》](https://www.cnblogs.com/waterystone/p/4920797.html) 611 | 612 | * [《Java中信号量 Semaphore》](http://cuisuqiang.iteye.com/blog/2020146) 613 | * 有数量控制 614 | * 申请用 acquire,申请不要则阻塞;释放用 release。 615 | 616 | * [《java开发中的Mutex vs Semaphore》](https://www.cnblogs.com/davidwang456/p/6094947.html) 617 | * 简单的说 就是Mutex是排它的,只有一个可以获取到资源, Semaphore也具有排它性,但可以定义多个可以获取的资源的对象。 618 | 619 | ### 公平锁 & 非公平锁 620 | 621 | 公平锁的作用就是严格按照线程启动的顺序来执行的,不允许其他线程插队执行的;而非公平锁是允许插队的。 622 | 623 | * [《公平锁与非公平锁》](https://blog.csdn.net/EthanWhite/article/details/55508357) 624 | * 默认情况下 ReentrantLock 和 synchronized 都是非公平锁。ReentrantLock 可以设置成公平锁。 625 | 626 | ### 悲观锁 627 | 628 | 悲观锁如果使用不当(锁的条数过多),会引起服务大面积等待。推荐优先使用乐观锁+重试。 629 | 630 | * [《【MySQL】悲观锁&乐观锁》](https://www.cnblogs.com/zhiqian-ali/p/6200874.html) 631 | * 乐观锁的方式:版本号+重试方式 632 | * 悲观锁:通过 select ... for update 进行行锁(不可读、不可写,share 锁可读不可写)。 633 | 634 | * [《Mysql查询语句使用select.. for update导致的数据库死锁分析》](https://www.cnblogs.com/Lawson/p/5008741.html) 635 | * mysql的innodb存储引擎实务锁虽然是锁行,但它内部是锁索引的。 636 | * 锁相同数据的不同索引条件可能会引起死锁。 637 | 638 | * [《Mysql并发时经典常见的死锁原因及解决方法》](https://www.cnblogs.com/zejin2008/p/5262751.html) 639 | 640 | ### 乐观锁 & CAS 641 | 642 | * [《乐观锁的一种实现方式——CAS》](http://www.importnew.com/20472.html) 643 | * 和MySQL乐观锁方式相似,只不过是通过和原值进行比较。 644 | 645 | ### ABA 问题 646 | 647 | 由于高并发,在CAS下,更新后可能此A非彼A。通过版本号可以解决,类似于上文Mysql 中提到的的乐观锁。 648 | 649 | * [《Java CAS 和ABA问题》](https://www.cnblogs.com/549294286/p/3766717.html) 650 | * [《Java 中 ABA问题及避免》](https://blog.csdn.net/li954644351/article/details/50511879) 651 | * AtomicStampedReference 和 AtomicStampedReference。 652 | 653 | ### CopyOnWrite容器 654 | 655 | 可以对CopyOnWrite容器进行并发的读,而不需要加锁。CopyOnWrite并发容器用于读多写少的并发场景。比如白名单,黑名单,商品类目的访问和更新场景,不适合需要数据强一致性的场景。 656 | 657 | * [《JAVA中写时复制(Copy-On-Write)Map实现》](https://www.cnblogs.com/hapjin/p/4840107.html) 658 | * 实现读写分离,读取发生在原始数据上,写入发生在副本上。 659 | * 不用加锁,通过最终一致实现一致性。 660 | 661 | * [《聊聊并发-Java中的Copy-On-Write容器》](https://blog.csdn.net/a494303877/article/details/53404623) 662 | 663 | ### RingBuffer 664 | * [《线程安全的无锁RingBuffer的实现【一个读线程,一个写线程】》](http://www.cnblogs.com/l00l/p/4115001.html) 665 | 666 | ### 可重入锁 & 不可重入锁 667 | 668 | * [《可重入锁和不可重入锁》](https://www.cnblogs.com/dj3839/p/6580765.html) 669 | * 通过简单代码举例说明可重入锁和不可重入锁。 670 | * 可重入锁指同一个线程可以再次获得之前已经获得的锁。 671 | * 可重入锁可以用户避免死锁。 672 | * Java中的可重入锁:synchronized 和 java.util.concurrent.locks.ReentrantLock 673 | 674 | * [《ReenTrantLock可重入锁(和synchronized的区别)总结》](https://www.cnblogs.com/baizhanshi/p/7211802.html) 675 | * synchronized 使用方便,编译器来加锁,是非公平锁。 676 | * ReenTrantLock 使用灵活,锁的公平性可以定制。 677 | * 相同加锁场景下,推荐使用 synchronized。 678 | 679 | ### 互斥锁 & 共享锁 680 | 681 | 互斥锁:同时只能有一个线程获得锁。比如,ReentrantLock 是互斥锁,ReadWriteLock 中的写锁是互斥锁。 682 | 共享锁:可以有多个线程同时或的锁。比如,Semaphore、CountDownLatch 是共享锁,ReadWriteLock 中的读锁是共享锁。 683 | 684 | * [《ReadWriteLock场景应用》](https://www.cnblogs.com/liang1101/p/6475555.html) 685 | 686 | ### 死锁 687 | * [《“死锁”四个必要条件的合理解释》](https://blog.csdn.net/yunfenglw/article/details/45950305) 688 | * 互斥、持有、不可剥夺、环形等待。 689 | * [Java如何查看死锁?](https://blog.csdn.net/u014039577/article/details/52351626) 690 | * JConsole 可以识别死锁。 691 | 692 | * [java多线程系列:死锁及检测](https://blog.csdn.net/bohu83/article/details/51135061) 693 | * jstack 可以显示死锁。 694 | 695 | # 操作系统 696 | 697 | ## 计算机原理 698 | 699 | * [《操作系统基础知识——操作系统的原理,类型和结构》](https://segmentfault.com/a/1190000003692840) 700 | 701 | ## CPU 702 | 703 | ### 多级缓存 704 | 典型的 CPU 有三级缓存,距离核心越近,速度越快,空间越小。L1 一般 32k,L2 一般 256k,L3 一般12M。内存速度需要200个 CPU 周期,CPU 缓存需要1个CPU周期。 705 | 706 | * [《从Java视角理解CPU缓存和伪共享》](https://blog.csdn.net/zero__007/article/details/54089730) 707 | 708 | ## 进程 709 | 710 | TODO 711 | 712 | ## 线程 713 | 714 | * [《线程的生命周期及状态转换详解》](https://blog.csdn.net/asdf_1024/article/details/78978437) 715 | 716 | ## 协程 717 | 718 | * [《终结python协程----从yield到actor模型的实现》](https://www.thinksaas.cn/group/topic/839375/) 719 | * 线程的调度是由操作系统负责,协程调度是程序自行负责 720 | * 与线程相比,协程减少了无谓的操作系统切换. 721 | * 实际上当遇到IO操作时做切换才更有意义,(因为IO操作不用占用CPU),如果没遇到IO操作,按照时间片切换. 722 | 723 | ## Linux 724 | 725 | * [《Linux 命令大全》](http://www.runoob.com/linux/linux-command-manual.html) 726 | 727 | # 设计模式 728 | 729 | ## 设计模式的六大原则 730 | * [《设计模式的六大原则》](https://blog.csdn.net/q291611265/article/details/48465113) 731 | * 开闭原则:对扩展开放,对修改关闭,多使用抽象类和接口。 732 | * 里氏替换原则:基类可以被子类替换,使用抽象类继承,不使用具体类继承。 733 | * 依赖倒转原则:要依赖于抽象,不要依赖于具体,针对接口编程,不针对实现编程。 734 | * 接口隔离原则:使用多个隔离的接口,比使用单个接口好,建立最小的接口。 735 | * 迪米特法则:一个软件实体应当尽可能少地与其他实体发生相互作用,通过中间类建立联系。 736 | * 合成复用原则:尽量使用合成/聚合,而不是使用继承。 737 | 738 | ## 23种常见设计模式 739 | * [《设计模式》](http://www.runoob.com/design-pattern/design-pattern-tutorial.html) 740 | * [《23种设计模式全解析》](https://www.cnblogs.com/susanws/p/5510229.html) 741 | 742 | ## 应用场景 743 | * [《细数JDK里的设计模式》](http://blog.jobbole.com/62314/) 744 | * 结构型模式: 745 | * 适配器:用来把一个接口转化成另一个接口,如 java.util.Arrays#asList()。 746 | * 桥接模式:这个模式将抽象和抽象操作的实现进行了解耦,这样使得抽象和实现可以独立地变化,如JDBC; 747 | * 组合模式:使得客户端看来单个对象和对象的组合是同等的。换句话说,某个类型的方法同时也接受自身类型作为参数,如 Map.putAll,List.addAll、Set.addAll。 748 | * 装饰者模式:动态的给一个对象附加额外的功能,这也是子类的一种替代方式,如 java.util.Collections#checkedList|Map|Set|SortedSet|SortedMap。 749 | * 享元模式:使用缓存来加速大量小对象的访问时间,如 valueOf(int)。 750 | * 代理模式:代理模式是用一个简单的对象来代替一个复杂的或者创建耗时的对象,如 java.lang.reflect.Proxy 751 | 752 | * 创建模式: 753 | * 抽象工厂模式:抽象工厂模式提供了一个协议来生成一系列的相关或者独立的对象,而不用指定具体对象的类型,如 java.util.Calendar#getInstance()。 754 | * 建造模式(Builder):定义了一个新的类来构建另一个类的实例,以简化复杂对象的创建,如:java.lang.StringBuilder#append()。 755 | * 工厂方法:就是 **一个返*** 回具体对象的方法,而不是多个,如 java.lang.Object#toString()、java.lang.Class#newInstance()。 756 | * 原型模式:使得类的实例能够生成自身的拷贝、如:java.lang.Object#clone()。 757 | * 单例模式:全局只有一个实例,如 java.lang.Runtime#getRuntime()。 758 | * 行为模式: 759 | * 责任链模式:通过把请求从一个对象传递到链条中下一个对象的方式,直到请求被处理完毕,以实现对象间的解耦。如 javax.servlet.Filter#doFilter()。 760 | * 命令模式:将操作封装到对象内,以便存储,传递和返回,如:java.lang.Runnable。 761 | * 解释器模式:定义了一个语言的语法,然后解析相应语法的语句,如,java.text.Format,java.text.Normalizer。 762 | * 迭代器模式:提供一个一致的方法来顺序访问集合中的对象,如 java.util.Iterator。 763 | * 中介者模式:通过使用一个中间对象来进行消息分发以及减少类之间的直接依赖,java.lang.reflect.Method#invoke()。 764 | * 空对象模式:如 java.util.Collections#emptyList()。 765 | * 观察者模式:它使得一个对象可以灵活的将消息发送给感兴趣的对象,如 java.util.EventListener。 766 | * 模板方法模式:让子类可以重写方法的一部分,而不是整个重写,如 java.util.Collections#sort()。 767 | 768 | * [《Spring-涉及到的设计模式汇总》](https://www.cnblogs.com/hwaggLee/p/4510687.html) 769 | * [《Mybatis使用的设计模式》](https://blog.csdn.net/u012387062/article/details/54719114) 770 | 771 | ## 单例模式 772 | * [《单例模式的三种实现 以及各自的优缺点》](https://blog.csdn.net/YECrazy/article/details/79481964) 773 | * [《单例模式--反射--防止序列化破坏单例模式》](https://www.cnblogs.com/ttylinux/p/6498822.html) 774 | * 使用枚举类型。 775 | 776 | ## 责任链模式 777 | TODO 778 | 779 | ## MVC 780 | * [《MVC 模式》](http://www.runoob.com/design-pattern/mvc-pattern.html) 781 | * 模型(model)-视图(view)-控制器(controller) 782 | 783 | ## IOC 784 | * [《理解 IOC》](https://www.zhihu.com/question/23277575) 785 | * [《IOC 的理解与解释》](https://www.cnblogs.com/NancyStartOnce/p/6813162.html) 786 | * 正向控制:传统通过new的方式。反向控制,通过容器注入对象。 787 | * 作用:用于模块解耦。 788 | * DI:Dependency Injection,即依赖注入,只关心资源使用,不关心资源来源。 789 | 790 | ## AOP 791 | 792 | * [《轻松理解AOP(面向切面编程)》](https://my.oschina.net/yanquan345/blog/203415) 793 | * [《Spring AOP详解》](https://www.cnblogs.com/hongwz/p/5764917.html) 794 | * [《Spring AOP的实现原理》](http://www.importnew.com/24305.html) 795 | * Spring AOP使用的动态代理,主要有两种方式:JDK动态代理和CGLIB动态代理。 796 | * [《Spring AOP 实现原理与 CGLIB 应用》](https://www.ibm.com/developerworks/cn/java/j-lo-springaopcglib/) 797 | * Spring AOP 框架对 AOP 代理类的处理原则是:如果目标对象的实现类实现了接口,Spring AOP 将会采用 JDK 动态代理来生成 AOP 代理类;如果目标对象的实现类没有实现接口,Spring AOP 将会采用 CGLIB 来生成 AOP 代理类 798 | 799 | 800 | ## UML 801 | 802 | * [《UML教程》](https://www.w3cschool.cn/uml_tutorial/) 803 | 804 | ## 微服务思想 805 | * [《微服务架构设计》](https://www.cnblogs.com/wintersun/p/6219259.html) 806 | * [《微服务架构技术栈选型手册》](http://www.infoq.com/cn/articles/micro-service-technology-stack) 807 | 808 | ### 康威定律 809 | * [《微服务架构的理论基础 - 康威定律》](https://yq.aliyun.com/articles/8611) 810 | * 定律一:组织沟通方式会通过系统设计表达出来,就是说架构的布局和组织结构会有相似。 811 | * 定律二:时间再多一件事情也不可能做的完美,但总有时间做完一件事情。一口气吃不成胖子,先搞定能搞定的。 812 | * 定律三:线型系统和线型组织架构间有潜在的异质同态特性。种瓜得瓜,做独立自治的子系统减少沟通成本。 813 | * 定律四:大的系统组织总是比小系统更倾向于分解。合久必分,分而治之。 814 | 815 | * [《微服务架构核⼼20讲》](https://static.geekbang.org/PDF-%E4%BF%AE%E6%94%B9%E7%89%88-%E6%9E%81%E5%AE%A2%E6%97%B6%E9%97%B4-%E5%9B%BE%E7%89%87-%E6%9D%A8%E6%B3%A2-%E5%BE%AE%E6%9C%8D%E5%8A%A1%E6%9E%B6%E6%9E%84.pdf) 816 | 817 | # 运维 & 统计 & 技术支持 818 | 819 | ## 常规监控 820 | 821 | * [《腾讯业务系统监控的修炼之路》](https://blog.csdn.net/enweitech/article/details/77849205) 822 | * 监控的方式:主动、被动、旁路(比如舆情监控) 823 | * 监控类型: 基础监控、服务端监控、客户端监控、 824 | 监控、用户端监控 825 | * 监控的目标:全、块、准 826 | * 核心指标:请求量、成功率、耗时 827 | 828 | * [《开源还是商用?十大云运维监控工具横评》](https://www.oschina.net/news/67525/monitoring-tools) 829 | * Zabbix、Nagios、Ganglia、Zenoss、Open-falcon、监控宝、 360网站服务监控、阿里云监控、百度云观测、小蜜蜂网站监测等。 830 | 831 | * [《监控报警系统搭建及二次开发经验》](http://developer.51cto.com/art/201612/525373.htm) 832 | 833 | **命令行监控工具** 834 | 835 | * [《常用命令行监控工具》](https://coderxing.gitbooks.io/architecture-evolution/di-er-pian-ff1a-feng-kuang-yuan-shi-ren/44-an-quan-yu-yun-wei/445-fu-wu-qi-zhuang-tai-jian-ce/4451-ming-ling-xing-gong-ju.html) 836 | * top、sar、tsar、nload 837 | 838 | * [《20个命令行工具监控 Linux 系统性能》](http://blog.jobbole.com/96846/) 839 | 840 | * [《JVM性能调优监控工具jps、jstack、jmap、jhat、jstat、hprof使用详解》](https://my.oschina.net/feichexia/blog/196575) 841 | 842 | ## APM 843 | 844 | APM — Application Performance Management 845 | 846 | * [《Dapper,大规模分布式系统的跟踪系统》](http://bigbully.github.io/Dapper-translation/) 847 | 848 | * [CNCF OpenTracing](http://opentracing.io),[中文版](https://github.com/opentracing-contrib/opentracing-specification-zh) 849 | 850 | * 主要开源软件,按字母排序 851 | * [Apache SkyWalking](https://github.com/apache/incubator-skywalking) 852 | * [CAT](https://github.com/dianping/cat) 853 | * [CNCF jaeger](https://github.com/jaegertracing/jaeger) 854 | * [Pinpoint](https://github.com/naver/pinpoint) 855 | * [Zipkin](https://github.com/openzipkin/zipkin) 856 | 857 | * [《开源APM技术选型与实战》](http://www.infoq.com/cn/articles/apm-Pinpoint-practice) 858 | * 主要基于 Google的Dapper(大规模分布式系统的跟踪系统) 思想。 859 | 860 | 861 | 862 | ## 统计分析 863 | 864 | * [《流量统计的基础:埋点》](https://zhuanlan.zhihu.com/p/25195217) 865 | * 常用指标:访问与访客、停留时长、跳出率、退出率、转化率、参与度 866 | 867 | * [《APP埋点常用的统计工具、埋点目标和埋点内容》](http://www.25xt.com/company/17066.html) 868 | * 第三方统计:友盟、百度移动、魔方、App Annie、talking data、神策数据等。 869 | 870 | * [《美团点评前端无痕埋点实践》](https://tech.meituan.com/mt-mobile-analytics-practice.html) 871 | * 所谓无痕、即通过可视化工具配置采集节点,在前端自动解析配置并上报埋点数据,而非硬编码。 872 | 873 | 874 | ## 持续集成(CI/CD) 875 | 876 | * [《持续集成是什么?》](http://www.ruanyifeng.com/blog/2015/09/continuous-integration.html) 877 | * [《8个流行的持续集成工具》](https://www.testwo.com/article/1170) 878 | 879 | ### Jenkins 880 | 881 | * [《使用Jenkins进行持续集成》](https://www.liaoxuefeng.com/article/001463233913442cdb2d1bd1b1b42e3b0b29eb1ba736c5e000) 882 | 883 | ### 环境分离 884 | 885 | 开发、测试、生成环境分离。 886 | 887 | * [《开发环境、生产环境、测试环境的基本理解和区》](https://my.oschina.net/sancuo/blog/214904) 888 | 889 | ## 自动化运维 890 | 891 | ### Ansible 892 | * [《Ansible中文权威指南》](http://www.ansible.com.cn/) 893 | * [《Ansible基础配置和企业级项目实用案例》](https://www.cnblogs.com/heiye123/articles/7855890.html) 894 | 895 | ### puppet 896 | * [《自动化运维工具——puppet详解》](https://www.cnblogs.com/keerya/p/8040071.html) 897 | 898 | ### chef 899 | * [《Chef 的安装与使用》](https://www.ibm.com/developerworks/cn/cloud/library/1407_caomd_chef/) 900 | 901 | ## 测试 902 | 903 | ### TDD 理论 904 | 905 | * [《深度解读 - TDD(测试驱动开发)》](https://www.jianshu.com/p/62f16cd4fef3) 906 | * 基于测试用例编码功能代码,XP(Extreme Programming)的核心实践. 907 | * 好处:一次关注一个点,降低思维负担;迎接需求变化或改善代码的设计;提前澄清需求;快速反馈; 908 | 909 | ### 单元测试 910 | 911 | * [《Java单元测试之JUnit篇》](https://www.cnblogs.com/happyzm/p/6482886.html) 912 | * [《JUnit 4 与 TestNG 对比》](https://blog.csdn.net/hotdust/article/details/53406086) 913 | * TestNG 覆盖 JUnit 功能,适用于更复杂的场景。 914 | * [《单元测试主要的测试功能点》](https://blog.csdn.net/wqetfg/article/details/50900512) 915 | * 模块接口测试、局部数据结构测试、路径测试 、错误处理测试、边界条件测试 。 916 | 917 | ### 压力测试 918 | 919 | * [《Apache ab 测试使用指南》](https://blog.csdn.net/blueheart20/article/details/52170790) 920 | * [《大型网站压力测试及优化方案》](https://www.cnblogs.com/binyue/p/6141088.html) 921 | * [《10大主流压力/负载/性能测试工具推荐》](http://news.chinabyte.com/466/14126966.shtml) 922 | * [《真实流量压测工具 tcpcopy应用浅析》](http://quentinxxz.iteye.com/blog/2249799) 923 | * [《nGrinder 简易使用教程》](https://www.cnblogs.com/jwentest/p/7136727.html) 924 | 925 | 926 | ### 全链路压测 927 | * [《京东618:升级全链路压测方案,打造军演机器人ForceBot》](http://www.infoq.com/cn/articles/jd-618-upgrade-full-link-voltage-test-program-forcebot) 928 | * [《饿了么全链路压测的探索与实践》](https://zhuanlan.zhihu.com/p/30306892) 929 | * [《四大语言,八大框架|滴滴全链路压测解决之道》](https://zhuanlan.zhihu.com/p/28355759) 930 | * [《全链路压测经验》](https://www.jianshu.com/p/27060fd61f72) 931 | 932 | 933 | ### A/B 、灰度、蓝绿测试 934 | 935 | * [《技术干货 | AB 测试和灰度发布探索及实践》](https://testerhome.com/topics/11165) 936 | * [《nginx 根据IP 进行灰度发布》](http://blog.51cto.com/purplegrape/1403123) 937 | 938 | * [《蓝绿部署、A/B 测试以及灰度发布》](https://www.v2ex.com/t/344341) 939 | 940 | ## 虚拟化 941 | 942 | * [《VPS的三种虚拟技术OpenVZ、Xen、KVM优缺点比较》](https://blog.csdn.net/enweitech/article/details/52910082) 943 | 944 | ### KVM 945 | * [《KVM详解,太详细太深入了,经典》](http://blog.chinaunix.net/uid-20201831-id-5775661.html) 946 | * [《【图文】KVM 虚拟机安装详解》](https://www.coderxing.com/kvm-install.html) 947 | 948 | ### Xen 949 | * [《Xen虚拟化基本原理详解》](https://www.cnblogs.com/sddai/p/5931201.html) 950 | 951 | ### OpenVZ 952 | * [《开源Linux容器 OpenVZ 快速上手指南》](https://blog.csdn.net/longerzone/article/details/44829255) 953 | 954 | ## 容器技术 955 | 956 | ### Docker 957 | * [《几张图帮你理解 docker 基本原理及快速入门》](https://www.cnblogs.com/SzeCheng/p/6822905.html) 958 | * [《Docker 核心技术与实现原理》](https://draveness.me/docker) 959 | * [《Docker 教程》](http://www.runoob.com/docker/docker-tutorial.html) 960 | 961 | ## 云技术 962 | 963 | ### OpenStack 964 | * [《OpenStack构架知识梳理》](https://www.cnblogs.com/klb561/p/8660264.html) 965 | 966 | ## DevOps 967 | * [《一分钟告诉你究竟DevOps是什么鬼?》](https://www.cnblogs.com/jetzhang/p/6068773.html) 968 | * [《DevOps详解》](http://www.infoq.com/cn/articles/detail-analysis-of-devops) 969 | 970 | ## 文档管理 971 | 972 | * [Confluence-收费文档管理系统](http://www.confluence.cn/) 973 | * GitLab? 974 | * Wiki 975 | 976 | # 中间件 977 | 978 | ## Web Server 979 | 980 | ### Nginx 981 | * [《Ngnix的基本学习-多进程和Apache的比较》](https://blog.csdn.net/qq_25797077/article/details/52200722) 982 | * Nginx 通过异步非阻塞的事件处理机制实现高并发。Apache 每个请求独占一个线程,非常消耗系统资源。 983 | * 事件驱动适合于IO密集型服务(Nginx),多进程或线程适合于CPU密集型服务(Apache),所以Nginx适合做反向代理,而非web服务器使用。 984 | 985 | * [《nginx与Apache的对比以及优缺点》](https://www.cnblogs.com/cunkouzh/p/5410154.html) 986 | * nginx只适合静态和反向代理,不适合处理动态请求。 987 | 988 | ### OpenResty 989 | * [官方网站](http://openresty.org/cn/) 990 | * [《浅谈 OpenResty》](http://www.linkedkeeper.com/detail/blog.action?bid=1034) 991 | * 通过 Lua 模块可以在Nginx上进行开发。 992 | 993 | ### Apache Httpd 994 | * [官方网站](http://httpd.apache.org/) 995 | 996 | ### Tomcat 997 | 998 | #### 架构原理 999 | * [《TOMCAT原理详解及请求过程》](https://www.cnblogs.com/hggen/p/6264475.html) 1000 | * [《Tomcat服务器原理详解》](https://www.cnblogs.com/crazylqy/p/4706223.html) 1001 | * [《Tomcat 系统架构与设计模式,第 1 部分: 工作原理》](https://www.ibm.com/developerworks/cn/java/j-lo-tomcat1/) 1002 | 1003 | * [《四张图带你了解Tomcat系统架构》](https://blog.csdn.net/xlgen157387/article/details/79006434) 1004 | 1005 | * [《JBoss vs. Tomcat: Choosing A Java Application Server》](https://www.futurehosting.com/blog/jboss-vs-tomcat-choosing-a-java-application-server/) 1006 | * Tomcat 是轻量级的 Serverlet 容器,没有实现全部 JEE 特性(比如持久化和事务处理),但可以通过其他组件代替,比如Srping。 1007 | * Jboss 实现全部了JEE特性,软件开源免费、文档收费。 1008 | 1009 | #### 调优方案 1010 | 1011 | * [《Tomcat 调优方案》](https://www.cnblogs.com/sunfenqing/p/7339058.html) 1012 | * 启动NIO模式(或者APR);调整线程池;禁用AJP连接器(Nginx+tomcat的架构,不需要AJP); 1013 | 1014 | * [《tomcat http协议与ajp协议》](http://blog.chinaunix.net/uid-20662363-id-3012760.html) 1015 | * [《AJP与HTTP比较和分析》](http://dmouse.iteye.com/blog/1354527) 1016 | * AJP 协议(8009端口)用于降低和前端Server(如Apache,而且需要支持AJP协议)的连接数(前端),通过长连接提高性能。 1017 | * 并发高时,AJP协议优于HTTP协议。 1018 | 1019 | ### Jetty 1020 | * [《Jetty 的工作原理以及与 Tomcat 的比较》](https://www.ibm.com/developerworks/cn/java/j-lo-jetty/) 1021 | * [《jetty和tomcat优势比较》](https://blog.csdn.net/doutao6677/article/details/51957288) 1022 | * 架构比较:Jetty的架构比Tomcat的更为简单。 1023 | * 性能比较:Jetty和Tomcat性能方面差异不大,Jetty默认采用NIO结束在处理I/O请求上更占优势,Tomcat默认采用BIO处理I/O请求,Tomcat适合处理少数非常繁忙的链接,处理静态资源时性能较差。 1024 | * 其他方面:Jetty的应用更加快速,修改简单,对新的Servlet规范的支持较好;Tomcat 对JEE和Servlet 支持更加全面。 1025 | 1026 | 1027 | 1028 | ## 缓存 1029 | 1030 | * [《缓存失效策略(FIFO 、LRU、LFU三种算法的区别)》](https://blog.csdn.net/clementad/article/details/48229243) 1031 | 1032 | ### 本地缓存 1033 | 1034 | * [《HashMap本地缓存》](https://coderxing.gitbooks.io/architecture-evolution/di-er-pian-ff1a-feng-kuang-yuan-shi-ren/42-xing-neng-zhi-ben-di-huan-cun/421-ying-yong-ceng-ben-di-huan-cun/4211.html) 1035 | 1036 | * [《EhCache本地缓存》](https://coderxing.gitbooks.io/architecture-evolution/di-er-pian-ff1a-feng-kuang-yuan-shi-ren/42-xing-neng-zhi-ben-di-huan-cun/421-ying-yong-ceng-ben-di-huan-cun/4212-ehcache.html) 1037 | * 堆内、堆外、磁盘三级缓存。 1038 | * 可按照缓存空间容量进行设置。 1039 | * 按照时间、次数等过期策略。 1040 | 1041 | * [《Guava Cache》](https://coderxing.gitbooks.io/architecture-evolution/di-er-pian-ff1a-feng-kuang-yuan-shi-ren/42-xing-neng-zhi-ben-di-huan-cun/421-ying-yong-ceng-ben-di-huan-cun/4213-guava-cache.html) 1042 | * 简单轻量、无堆外、磁盘缓存。 1043 | 1044 | 1045 | * [《Nginx本地缓存》](https://coderxing.gitbooks.io/architecture-evolution/di-er-pian-ff1a-feng-kuang-yuan-shi-ren/42-xing-neng-zhi-ben-di-huan-cun/422-fu-wu-duan-ben-di-huan-cun/nginx-ben-di-huan-cun.html) 1046 | 1047 | * [《Pagespeed—懒人工具,服务器端加速》](https://coderxing.gitbooks.io/architecture-evolution/di-er-pian-ff1a-feng-kuang-yuan-shi-ren/42-xing-neng-zhi-ben-di-huan-cun/422-fu-wu-duan-ben-di-huan-cun/4222-pagespeed.html) 1048 | 1049 | ## 客户端缓存 1050 | 1051 | * [《浏览器端缓存》](https://coderxing.gitbooks.io/architecture-evolution/di-er-pian-ff1a-feng-kuang-yuan-shi-ren/42-xing-neng-zhi-ben-di-huan-cun/423-ke-hu-duan-huan-cun.html) 1052 | * 主要是利用 Cache-Control 参数。 1053 | 1054 | * [《H5 和移动端 WebView 缓存机制解析与实战》](https://mp.weixin.qq.com/s/qHm_dJBhVbv0pJs8Crp77w) 1055 | 1056 | ## 服务端缓存 1057 | 1058 | ### Web缓存 1059 | 1060 | * [nuster](https://github.com/jiangwenyuan/nuster) - nuster cache 1061 | * [varnish](https://github.com/varnishcache/varnish-cache) - varnish cache 1062 | * [squid](https://github.com/squid-cache/squid) - squid cache 1063 | 1064 | ### Memcached 1065 | * [《Memcached 教程》](http://www.runoob.com/Memcached/Memcached-tutorial.html) 1066 | * [《深入理解Memcached原理》](https://blog.csdn.net/chenleixing/article/details/47035453) 1067 | * 采用多路复用技术提高并发性。 1068 | * slab分配算法: memcached给Slab分配内存空间,默认是1MB。分配给Slab之后 把slab的切分成大小相同的chunk,Chunk是用于缓存记录的内存空间,Chunk 的大小默认按照1.25倍的速度递增。好处是不会频繁申请内存,提高IO效率,坏处是会有一定的内存浪费。 1069 | * [《Memcached软件工作原理》](https://www.jianshu.com/p/36e5cd400580) 1070 | * [《Memcache技术分享:介绍、使用、存储、算法、优化、命中率》](http://zhihuzeye.com/archives/2361) 1071 | 1072 | * [《memcache 中 add 、 set 、replace 的区别》](https://blog.csdn.net/liu251890347/article/details/37690045) 1073 | * 区别在于当key存在还是不存在时,返回值是true和false的。 1074 | 1075 | * [**《memcached全面剖析》**](https://pan.baidu.com/s/1qX00Lti?errno=0&errmsg=Auth%20Login%20Sucess&&bduss=&ssnerror=0&traceid=) 1076 | 1077 | ### Redis 1078 | 1079 | * [《Redis 教程》](http://www.runoob.com/redis/redis-tutorial.html) 1080 | * [《redis底层原理》](https://blog.csdn.net/wcf373722432/article/details/78678504) 1081 | * 使用 ziplist 存储链表,ziplist是一种压缩链表,它的好处是更能节省内存空间,因为它所存储的内容都是在连续的内存区域当中的。 1082 | * 使用 skiplist(跳跃表)来存储有序集合对象、查找上先从高Level查起、时间复杂度和红黑树相当,实现容易,无锁、并发性好。 1083 | * [《Redis持久化方式》](http://doc.redisfans.com/topic/persistence.html) 1084 | * RDB方式:定期备份快照,常用于灾难恢复。优点:通过fork出的进程进行备份,不影响主进程、RDB 在恢复大数据集时的速度比 AOF 的恢复速度要快。缺点:会丢数据。 1085 | * AOF方式:保存操作日志方式。优点:恢复时数据丢失少,缺点:文件大,回复慢。 1086 | * 也可以两者结合使用。 1087 | 1088 | * [《分布式缓存--序列3--原子操作与CAS乐观锁》](https://blog.csdn.net/chunlongyu/article/details/53346436) 1089 | 1090 | #### 架构 1091 | * [《Redis单线程架构》](https://blog.csdn.net/sunhuiliang85/article/details/73656830) 1092 | 1093 | #### 回收策略 1094 | * [《redis的回收策略》](https://blog.csdn.net/qq_29108585/article/details/63251491) 1095 | 1096 | ### Tair 1097 | 1098 | * [官方网站](https://github.com/alibaba/tair) 1099 | * [《Tair和Redis的对比》](http://blog.csdn.net/farphone/article/details/53522383) 1100 | * 特点:可以配置备份节点数目,通过异步同步到备份节点 1101 | * 一致性Hash算法。 1102 | * 架构:和Hadoop 的设计思想类似,有Configserver,DataServer,Configserver 通过心跳来检测,Configserver也有主备关系。 1103 | 1104 | 1105 | 几种存储引擎: 1106 | * MDB,完全内存性,可以用来存储Session等数据。 1107 | * Rdb(类似于Redis),轻量化,去除了aof之类的操作,支持Restfull操作 1108 | * LDB(LevelDB存储引擎),持久化存储,LDB 作为rdb的持久化,google实现,比较高效,理论基础是LSM(Log-Structured-Merge Tree)算法,现在内存中修改数据,达到一定量时(和内存汇总的旧数据一同写入磁盘)再写入磁盘,存储更加高效,县比喻Hash算法。 1109 | * Tair采用共享内存来存储数据,如果服务挂掉(非服务器),重启服务之后,数据亦然还在。 1110 | 1111 | ## 消息队列 1112 | 1113 | * [《消息队列-推/拉模式学习 & ActiveMQ及JMS学习》](https://www.cnblogs.com/charlesblc/p/6045238.html) 1114 | * RabbitMQ 消费者默认是推模式(也支持拉模式)。 1115 | * Kafka 默认是拉模式。 1116 | * Push方式:优点是可以尽可能快地将消息发送给消费者,缺点是如果消费者处理能力跟不上,消费者的缓冲区可能会溢出。 1117 | * Pull方式:优点是消费端可以按处理能力进行拉去,缺点是会增加消息延迟。 1118 | 1119 | * [《Kafka、RabbitMQ、RocketMQ等消息中间件的对比 —— 消息发送性能和区别》](https://blog.csdn.net/yunfeng482/article/details/72856762) 1120 | 1121 | ### 消息总线 1122 | 1123 | 消息总线相当于在消息队列之上做了一层封装,统一入口,统一管控、简化接入成本。 1124 | 1125 | * [《消息总线VS消息队列》](https://blog.csdn.net/yanghua_kobe/article/details/43877281) 1126 | 1127 | ### 消息的顺序 1128 | * [《如何保证消费者接收消息的顺序》](https://www.cnblogs.com/cjsblog/p/8267892.html) 1129 | 1130 | ### RabbitMQ 1131 | 1132 | 支持事务,推拉模式都是支持、适合需要可靠性消息传输的场景。 1133 | 1134 | * [《RabbitMQ的应用场景以及基本原理介绍》](https://blog.csdn.net/whoamiyang/article/details/54954780) 1135 | * [《消息队列之 RabbitMQ》](https://www.jianshu.com/p/79ca08116d57) 1136 | * [《RabbitMQ之消息确认机制(事务+Confirm)》](https://blog.csdn.net/u013256816/article/details/55515234) 1137 | 1138 | ### RocketMQ 1139 | Java实现,推拉模式都是支持,吞吐量逊于Kafka。可以保证消息顺序。 1140 | * [《RocketMQ 实战之快速入门》](https://www.jianshu.com/p/824066d70da8) 1141 | * [《RocketMQ 源码解析》](http://www.iocoder.cn/categories/RocketMQ/?vip&architect-awesome) 1142 | 1143 | ### ActiveMQ 1144 | 纯Java实现,兼容JMS,可以内嵌于Java应用中。 1145 | * [《ActiveMQ消息队列介绍》](https://www.cnblogs.com/wintersun/p/3962302.html) 1146 | 1147 | ### Kafka 1148 | 高吞吐量、采用拉模式。适合高IO场景,比如日志同步。 1149 | 1150 | * [官方网站](http://kafka.apache.org/) 1151 | * [《各消息队列对比,Kafka深度解析,众人推荐,精彩好文!》](https://blog.csdn.net/allthesametome/article/details/47362451) 1152 | * [《Kafka分区机制介绍与示例》](http://lxw1234.com/archives/2015/10/538.htm) 1153 | 1154 | ### Redis 消息推送 1155 | 1156 | 生产者、消费者模式完全是客户端行为,list 和 拉模式实现,阻塞等待采用 blpop 指令。 1157 | 1158 | * [《Redis学习笔记之十:Redis用作消息队列》](https://blog.csdn.net/qq_34212276/article/details/78455004) 1159 | 1160 | ### ZeroMQ 1161 | TODO 1162 | 1163 | 1164 | ## 定时调度 1165 | 1166 | ### 单机定时调度 1167 | 1168 | * [《linux定时任务cron配置》](https://www.cnblogs.com/shuaiqing/p/7742382.html) 1169 | 1170 | * [《Linux cron运行原理》](https://my.oschina.net/daquan/blog/483305) 1171 | * fork 进程 + sleep 轮询 1172 | 1173 | * [《Quartz使用总结》](https://www.cnblogs.com/drift-ice/p/3817269.html) 1174 | * [《Quartz源码解析 ---- 触发器按时启动原理》](https://blog.csdn.net/wenniuwuren/article/details/42082981/) 1175 | * [《quartz原理揭秘和源码解读》](https://www.jianshu.com/p/bab8e4e32952) 1176 | * 定时调度在 QuartzSchedulerThread 代码中,while()无限循环,每次循环取出时间将到的trigger,触发对应的job,直到调度器线程被关闭。 1177 | 1178 | 1179 | ### 分布式定时调度 1180 | 1181 | * [《这些优秀的国产分布式任务调度系统,你用过几个?》](https://blog.csdn.net/qq_16216221/article/details/70314337) 1182 | * opencron、LTS、XXL-JOB、Elastic-Job、Uncode-Schedule、Antares 1183 | 1184 | * [《Quartz任务调度的基本实现原理》](https://www.cnblogs.com/zhenyuyaodidiao/p/4755649.html) 1185 | * Quartz集群中,独立的Quartz节点并不与另一其的节点或是管理节点通信,而是通过相同的数据库表来感知到另一Quartz应用的 1186 | * [《Elastic-Job-Lite 源码解析》](http://www.iocoder.cn/categories/Elastic-Job-Lite/?vip&architect-awesome) 1187 | * [《Elastic-Job-Cloud 源码解析》](http://www.iocoder.cn/categories/Elastic-Job-Cloud/?vip&architect-awesome) 1188 | 1189 | 1190 | ## RPC 1191 | 1192 | * [《从零开始实现RPC框架 - RPC原理及实现》](https://blog.csdn.net/top_code/article/details/54615853) 1193 | * 核心角色:Server: 暴露服务的服务提供方、Client: 调用远程服务的服务消费方、Registry: 服务注册与发现的注册中心。 1194 | 1195 | * [《分布式RPC框架性能大比拼 dubbo、motan、rpcx、gRPC、thrift的性能比较》](https://blog.csdn.net/testcs_dn/article/details/78050590) 1196 | 1197 | ### Dubbo 1198 | * [官方网站](http://dubbo.apache.org/) 1199 | * [dubbo实现原理简单介绍](https://www.cnblogs.com/steven520213/p/7606598.html) 1200 | 1201 | ** SPI ** 1202 | TODO 1203 | 1204 | ### Thrift 1205 | * [官方网站](http://thrift.apache.org/) 1206 | * [《Thrift RPC详解》](https://blog.csdn.net/kesonyk/article/details/50924489) 1207 | * 支持多语言,通过中间语言定义接口。 1208 | 1209 | ### gRPC 1210 | 1211 | 服务端可以认证加密,在外网环境下,可以保证数据安全。 1212 | 1213 | * [官方网站](https://grpc.io/) 1214 | * [《你应该知道的RPC原理》](https://www.cnblogs.com/LBSer/p/4853234.html) 1215 | 1216 | 1217 | ## 数据库中间件 1218 | 1219 | ### Sharding Jdbc 1220 | 1221 | * [官网](http://shardingjdbc.io/) 1222 | 1223 | ## 日志系统 1224 | 1225 | ### 日志搜集 1226 | 1227 | * [《从零开始搭建一个ELKB日志收集系统》](http://cjting.me/misc/build-log-system-with-elkb/) 1228 | * [《用ELK搭建简单的日志收集分析系统》](https://blog.csdn.net/lzw_2006/article/details/51280058) 1229 | * [《日志收集系统-探究》](https://www.cnblogs.com/beginmind/p/6058194.html) 1230 | 1231 | ## 配置中心 1232 | 1233 | * [Apollo - 携程开源的配置中心应用](https://github.com/ctripcorp/apollo) 1234 | * Spring Boot 和 Spring Cloud 1235 | * 支持推、拉模式更新配置 1236 | * 支持多种语言 1237 | 1238 | * [《基于zookeeper实现统一配置管理》](https://blog.csdn.net/u011320740/article/details/78742625) 1239 | 1240 | * [《 Spring Cloud Config 分布式配置中心使用教程》](https://www.cnblogs.com/shamo89/p/8016908.html) 1241 | 1242 | servlet 3.0 异步特性可用于配置中心的客户端 1243 | * [《servlet3.0 新特性——异步处理》](https://www.cnblogs.com/dogdogwang/p/7151866.html) 1244 | 1245 | ## API 网关 1246 | 1247 | 主要职责:请求转发、安全认证、协议转换、容灾。 1248 | 1249 | * [《API网关那些儿》](http://yunlzheng.github.io/2017/03/14/the-things-about-api-gateway/) 1250 | * [《谈API网关的背景、架构以及落地方案》](http://www.infoq.com/cn/news/2016/07/API-background-architecture-floo) 1251 | 1252 | * [《使用Zuul构建API Gateway》](https://blog.csdn.net/zhanglh046/article/details/78651993) 1253 | * [《Spring Cloud Gateway 源码解析》](http://www.iocoder.cn/categories/Spring-Cloud-Gateway/?vip&architect-awesome) 1254 | * [《HTTP API网关选择之一Kong介绍》](https://mp.weixin.qq.com/s/LIq2CiXJQmmjBC0yvYLY5A) 1255 | 1256 | # 网络 1257 | 1258 | 1259 | ## 协议 1260 | 1261 | ### OSI 七层协议 1262 | 1263 | * [《OSI七层协议模型、TCP/IP四层模型学习笔记》](https://www.cnblogs.com/Robin-YB/p/6668762.html) 1264 | 1265 | ### TCP/IP 1266 | * [《深入浅出 TCP/IP 协议》](https://www.cnblogs.com/onepixel/p/7092302.html) 1267 | * [《TCP协议中的三次握手和四次挥手》](https://blog.csdn.net/whuslei/article/details/6667471/) 1268 | 1269 | ### HTTP 1270 | * [《http协议详解(超详细)》](https://www.cnblogs.com/wangning528/p/6388464.html) 1271 | 1272 | ### HTTP2.0 1273 | * [《HTTP 2.0 原理详细分析》](https://blog.csdn.net/zhuyiquan/article/details/69257126) 1274 | * [《HTTP2.0的基本单位为二进制帧》](https://blog.csdn.net/u012657197/article/details/77877840) 1275 | * 利用二进制帧负责传输。 1276 | * 多路复用。 1277 | 1278 | ### HTTPS 1279 | * [《https原理通俗了解》](https://www.cnblogs.com/zhangshitong/p/6478721.html) 1280 | * 使用非对称加密协商加密算法 1281 | * 使用对称加密方式传输数据 1282 | * 使用第三方机构签发的证书,来加密公钥,用于公钥的安全传输、防止被中间人串改。 1283 | 1284 | * [《八大免费SSL证书-给你的网站免费添加Https安全加密》](https://blog.csdn.net/enweitech/article/details/53213862) 1285 | 1286 | ## 网络模型 1287 | 1288 | * [《web优化必须了解的原理之I/o的五种模型和web的三种工作模式》](http://blog.51cto.com/litaotao/1289790) 1289 | * 五种I/O模型:阻塞I/O,非阻塞I/O,I/O复用、事件(信号)驱动I/O、异步I/O,前四种I/O属于同步操作,I/O的第一阶段不同、第二阶段相同,最后的一种则属于异步操作。 1290 | * 三种 Web Server 工作方式:Prefork(多进程)、Worker方式(线程方式)、Event方式。 1291 | 1292 | * [《select、poll、epoll之间的区别总结》](http://www.cnblogs.com/Anker/p/3265058.html) 1293 | * select,poll,epoll本质上都是同步I/O,因为他们都需要在读写事件就绪后自己负责进行读写,也就是说这个读写过程是阻塞的。 1294 | * select 有打开文件描述符数量限制,默认1024(2048 for x64),100万并发,就要用1000个进程、切换开销大;poll采用链表结构,没有数量限制。 1295 | * select,poll “醒着”的时候要遍历整个fd集合,而epoll在“醒着”的时候只要判断一下就绪链表是否为空就行了,通过回调机制节省大量CPU时间;select,poll每次调用都要把fd集合从用户态往内核态拷贝一次,而epoll只要一次拷贝。 1296 | * poll会随着并发增加,性能逐渐下降,epoll采用红黑树结构,性能稳定,不会随着连接数增加而降低。 1297 | 1298 | * [《select,poll,epoll比较 》](http://xingyunbaijunwei.blog.163.com/blog/static/76538067201241685556302/) 1299 | * 在连接数少并且连接都十分活跃的情况下,select和poll的性能可能比epoll好,毕竟epoll的通知机制需要很多函数回调。 1300 | 1301 | * [《深入理解Java NIO》](https://www.cnblogs.com/geason/p/5774096.html) 1302 | * NIO 是一种同步非阻塞的 IO 模型。同步是指线程不断轮询 IO 事件是否就绪,非阻塞是指线程在等待 IO 的时候,可以同时做其他任务 1303 | 1304 | * [《BIO与NIO、AIO的区别》](https://blog.csdn.net/skiof007/article/details/52873421) 1305 | 1306 | * [《两种高效的服务器设计模型:Reactor和Proactor模型》](https://blog.csdn.net/u013074465/article/details/46276967) 1307 | 1308 | ### Epoll 1309 | 1310 | * [《epoll使用详解(精髓)》](https://www.cnblogs.com/fnlingnzb-learner/p/5835573.html) 1311 | 1312 | ### Java NIO 1313 | * [《深入理解Java NIO》](https://www.cnblogs.com/geason/p/5774096.html) 1314 | * [《Java NIO编写Socket服务器的一个例子》](https://blog.csdn.net/xidianliuy/article/details/51612676) 1315 | 1316 | ### kqueue 1317 | * [《kqueue用法简介》](http://www.cnblogs.com/luminocean/p/5631336.html) 1318 | 1319 | ## 连接和短连接 1320 | 1321 | * [《TCP/IP系列——长连接与短连接的区别》](https://www.cnblogs.com/pangguoping/p/5571422.html) 1322 | 1323 | ## 框架 1324 | 1325 | * [《Netty原理剖析》](https://blog.csdn.net/excellentyuxiao/article/details/53390408) 1326 | * Reactor 模式介绍。 1327 | * Netty 是 Reactor 模式的一种实现。 1328 | 1329 | ## 零拷贝(Zero-copy) 1330 | * [《对于 Netty ByteBuf 的零拷贝(Zero Copy) 的理解》](https://www.cnblogs.com/xys1228/p/6088805.html) 1331 | * 多个物理分离的buffer,通过逻辑上合并成为一个,从而避免了数据在内存之间的拷贝。 1332 | 1333 | ## 序列化(二进制协议) 1334 | 1335 | ### Hessian 1336 | * [《Hessian原理分析》](https://www.cnblogs.com/happyday56/p/4268249.html) 1337 | Binary-RPC;不仅仅是序列化 1338 | 1339 | ### Protobuf 1340 | * [《Protobuf协议的Java应用例子》](https://blog.csdn.net/antgan/article/details/52103966) 1341 | Goolge出品、占用空间和效率完胜其他序列化类库,如Hessian;需要编写 .proto 文件。 1342 | * [《Protocol Buffers序列化协议及应用》](https://worktile.com/tech/share/prototol-buffers) 1343 | * 关于协议的解释;缺点:可读性差; 1344 | 1345 | * [《简单的使用 protobuf 和 protostuff》](https://blog.csdn.net/eric520zenobia/article/details/53766571) 1346 | * protostuff 的好处是不用写 .proto 文件,Java 对象直接就可以序列化。 1347 | 1348 | # 数据库 1349 | ## 基础理论 1350 | ### 数据库设计的三大范式 1351 | * [《数据库的三大范式以及五大约束》](https://www.cnblogs.com/waj6511988/p/7027127.html) 1352 | * 第一范式:数据表中的每一列(每个字段)必须是不可拆分的最小单元,也就是确保每一列的原子性; 1353 | * 第二范式(2NF):满足1NF后,要求表中的所有列,都必须依赖于主键,而不能有任何一列与主键没有关系,也就是说一个表只描述一件事情; 1354 | * 第三范式:必须先满足第二范式(2NF),要求:表中的每一列只与主键直接相关而不是间接相关,(表中的每一列只能依赖于主键); 1355 | 1356 | ## MySQL 1357 | 1358 | ### 原理 1359 | * [《MySQL的InnoDB索引原理详解》](http://www.admin10000.com/document/5372.html) 1360 | 1361 | * [《MySQL存储引擎--MyISAM与InnoDB区别》](https://blog.csdn.net/xifeijian/article/details/20316775) 1362 | * 两种类型最主要的差别就是Innodb 支持事务处理与外键和行级锁 1363 | 1364 | * [《myisam和innodb索引实现的不同》](https://www.2cto.com/database/201211/172380.html) 1365 | 1366 | ### InnoDB 1367 | 1368 | * [《一篇文章带你读懂Mysql和InnoDB》](https://my.oschina.net/kailuncen/blog/1504217) 1369 | 1370 | ### 优化 1371 | 1372 | * [《MySQL36条军规》](http://vdisk.weibo.com/s/muWOT) 1373 | 1374 | * [《MYSQL性能优化的最佳20+条经验》](https://www.cnblogs.com/zhouyusheng/p/8038224.html) 1375 | * [《SQL优化之道》](https://blog.csdn.net/when_less_is_more/article/details/70187459) 1376 | * [《mysql数据库死锁的产生原因及解决办法》](https://www.cnblogs.com/sivkun/p/7518540.html) 1377 | * [《导致索引失效的可能情况》](https://blog.csdn.net/monkey_d_feilong/article/details/52291556) 1378 | * [《 MYSQL分页limit速度太慢优化方法》](https://blog.csdn.net/zy_281870667/article/details/51604540) 1379 | * 原则上就是缩小扫描范围。 1380 | 1381 | 1382 | ### 索引 1383 | 1384 | #### 聚集索引, 非聚集索引 1385 | 1386 | * [《MySQL 聚集索引/非聚集索引简述》](https://blog.csdn.net/no_endless/article/details/77073549) 1387 | * [《MyISAM和InnoDB的索引实现》](https://www.cnblogs.com/zlcxbb/p/5757245.html) 1388 | 1389 | MyISAM 是非聚集,InnoDB 是聚集 1390 | 1391 | #### 复合索引 1392 | 1393 | * [《复合索引的优点和注意事项》](https://www.cnblogs.com/summer0space/p/7247778.html) 1394 | 1395 | #### 自适应哈希索引(AHI) 1396 | 1397 | * [《InnoDB存储引擎——自适应哈希索引》](https://blog.csdn.net/Linux_ever/article/details/62043708) 1398 | 1399 | 1400 | ### explain 1401 | * [《MySQL 性能优化神器 Explain 使用分析》](https://segmentfault.com/a/1190000008131735) 1402 | 1403 | ## NoSQL 1404 | 1405 | ### MongoDB 1406 | 1407 | * [MongoDB 教程](http://www.runoob.com/mongodb/mongodb-tutorial.html) 1408 | * [《Mongodb相对于关系型数据库的优缺点》](http://mxdxm.iteye.com/blog/2093603) 1409 | * 优点:弱一致性(最终一致),更能保证用户的访问速度;内置GridFS,支持大容量的存储;Schema-less 数据库,不用预先定义结构;内置Sharding;相比于其他NoSQL,第三方支持丰富;性能优越; 1410 | * 缺点:mongodb不支持事务操作;mongodb占用空间过大;MongoDB没有如MySQL那样成熟的维护工具,这对于开发和IT运营都是个值得注意的地方; 1411 | 1412 | ### Hbase 1413 | 1414 | * [《简明 HBase 入门教程(开篇)》](http://www.thebigdata.cn/HBase/35831.html) 1415 | * [《深入学习HBase架构原理》](https://www.cnblogs.com/qiaoyihang/p/6246424.html) 1416 | * [《传统的行存储和(HBase)列存储的区别》](https://blog.csdn.net/youzhouliu/article/details/67632882) 1417 | 1418 | 1419 | * [《Hbase与传统数据库的区别》](https://blog.csdn.net/lifuxiangcaohui/article/details/39891099) 1420 | * 空数据不存储,节省空间,且适用于并发。 1421 | 1422 | * [《HBase Rowkey设计》](https://blog.csdn.net/u014091123/article/details/73163088) 1423 | * rowkey 按照字典顺序排列,便于批量扫描。 1424 | * 通过散列可以避免热点。 1425 | 1426 | # 搜索引擎 1427 | 1428 | ## 搜索引擎原理 1429 | 1430 | * [《倒排索引--搜索引擎入门》](https://www.jianshu.com/p/0193dc44135b) 1431 | 1432 | ## Lucene 1433 | * [《Lucene入门简介》](https://www.cnblogs.com/rodge-run/p/6551152.html) 1434 | 1435 | ## Elasticsearch 1436 | 1437 | * [《Elasticsearch学习,请先看这一篇!》](https://blog.csdn.net/laoyang360/article/details/52244917) 1438 | * [《Elasticsearch索引原理》](https://blog.csdn.net/cyony/article/details/65437708) 1439 | 1440 | ## Solr 1441 | * [《 Apache Solr入门教程》](https://blog.csdn.net/u011936655/article/details/51960005) 1442 | * [《elasticsearch与solr比较》](https://blog.csdn.net/convict_eva/article/details/53537837) 1443 | 1444 | ## sphinx 1445 | * [《Sphinx 的介绍和原理探索》](http://blog.jobbole.com/101672/) 1446 | 1447 | # 性能 1448 | 1449 | ## 性能优化方法论 1450 | 1451 | * [《15天的性能优化工作,5方面的调优经验》](https://blog.csdn.net/huangwenyi1010/article/details/72673447?ref=myread) 1452 | * 代码层面、业务层面、数据库层面、服务器层面、前端优化。 1453 | 1454 | * [《系统性能优化的几个方面》](https://blog.csdn.net/tenglizhe/article/details/44563135) 1455 | 1456 | ## 容量评估 1457 | * [《联网性能与容量评估的方法论和典型案例》](https://blog.csdn.net/u012528360/article/details/70054156) 1458 | * [《互联网架构,如何进行容量设计?》](https://mp.weixin.qq.com/s?__biz=MjM5ODYxMDA5OQ==&mid=2651959542&idx=1&sn=2494bbea9a855e0e1c3ccd6d2562a600&scene=21#wechat_redirect) 1459 | * 评估总访问量、评估平均访问量QPS、评估高峰QPS、评估系统、单机极限QPS 1460 | 1461 | ## CDN 网络 1462 | 1463 | * [《CDN加速原理》](https://www.cnblogs.com/wxiaona/p/5867685.html) 1464 | * [《国内有哪些比较好的 CDN?》](https://www.zhihu.com/question/20536932) 1465 | 1466 | ## 连接池 1467 | 1468 | * [《主流Java数据库连接池比较与开发配置实战》](https://blog.csdn.net/fysuccess/article/details/66972554) 1469 | 1470 | ## 性能调优 1471 | 1472 | * [《九大Java性能调试工具,必备至少一款》](https://blog.csdn.net/yethyeth/article/details/73266455) 1473 | 1474 | 1475 | # 大数据 1476 | 1477 | ## 流式计算 1478 | 1479 | ### Storm 1480 | * [官方网站](http://storm.apache.org/) 1481 | * [《最详细的Storm入门教程》](https://blog.csdn.net/uisoul/article/details/77989927) 1482 | 1483 | ### Flink 1484 | * [《Flink之一 Flink基本原理介绍》](https://blog.csdn.net/lisi1129/article/details/54844919) 1485 | 1486 | ### Kafka Stream 1487 | * [《Kafka Stream调研:一种轻量级流计算模式》](https://yq.aliyun.com/articles/58382) 1488 | 1489 | ### 应用场景 1490 | 1491 | 例如: 1492 | 1493 | * 广告相关实时统计; 1494 | * 推荐系统用户画像标签实时更新; 1495 | * 线上服务健康状况实时监测; 1496 | * 实时榜单; 1497 | * 实时数据统计。 1498 | 1499 | ## Hadoop 1500 | 1501 | * [《用通俗易懂的话说下hadoop是什么,能做什么》](https://blog.csdn.net/houbin0912/article/details/72967178) 1502 | * [《史上最详细的Hadoop环境搭建》](http://gitbook.cn/books/5954c9600326c7705af8a92a/index.html) 1503 | 1504 | ### HDFS 1505 | * [《【Hadoop学习】HDFS基本原理》](https://segmentfault.com/a/1190000011575458) 1506 | 1507 | ### MapReduce 1508 | * [《用通俗易懂的大白话讲解Map/Reduce原理》](https://blog.csdn.net/oppo62258801/article/details/72884633) 1509 | * [《 简单的map-reduce的java例子》](https://blog.csdn.net/foye12/article/details/78358292) 1510 | 1511 | ### Yarn 1512 | * [《初步掌握Yarn的架构及原理》](http://www.cnblogs.com/codeOfLife/p/5492740.html) 1513 | 1514 | ## Spark 1515 | * [《Spark(一): 基本架构及原理》](http://www.cnblogs.com/tgzhu/p/5818374.html) 1516 | 1517 | 1518 | # 安全 1519 | 1520 | ## web 安全 1521 | 1522 | ### XSS 1523 | * [《xss攻击原理与解决方法》](https://blog.csdn.net/qq_21956483/article/details/54377947) 1524 | ### CSRF 1525 | * [《CSRF原理及防范》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/641-web-an-quan-fang-fan/6412-csrf.html) 1526 | 1527 | ### SQL 注入 1528 | 1529 | * [《SQL注入》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/641-web-an-quan-fang-fan/6413-sql-zhu-ru.html) 1530 | 1531 | ### Hash Dos 1532 | 1533 | 1534 | * [《邪恶的JAVA HASH DOS攻击》](http://www.freebuf.com/articles/web/14199.html) 1535 | * 利用JsonObjet 上传大Json,JsonObject 底层使用HashMap;不同的数据产生相同的hash值,使得构建Hash速度变慢,耗尽CPU。 1536 | * [《一种高级的DoS攻击-Hash碰撞攻击》](https://yq.aliyun.com/articles/92194?t=t1) 1537 | * [《关于Hash Collision DoS漏洞:解析与解决方案》](http://www.iteye.com/news/23939/) 1538 | 1539 | ### 脚本注入 1540 | 1541 | * [《上传文件漏洞原理及防范》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/641-web-an-quan-fang-fan/6414-shang-chuan-wen-jian-guo-lv.html) 1542 | 1543 | ### 漏洞扫描工具 1544 | * [《DVWA》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/6421-dvwa.html) 1545 | * [W3af](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/w3af.html) 1546 | * [OpenVAS详解](https://blog.csdn.net/xygg0801/article/details/53610640) 1547 | 1548 | ### 验证码 1549 | 1550 | * [《验证码原理分析及实现》](https://blog.csdn.net/niaonao/article/details/51112686) 1551 | 1552 | * [《详解滑动验证码的实现原理》](https://my.oschina.net/jiangbianwanghai/blog/1031031) 1553 | * 滑动验证码是根据人在滑动滑块的响应时间,拖拽速度,时间,位置,轨迹,重试次数等来评估风险。 1554 | 1555 | * [《淘宝滑动验证码研究》](https://www.cnblogs.com/xcj26/p/5242758.html) 1556 | 1557 | ## DDoS 防范 1558 | * [《学习手册:DDoS的攻击方式及防御手段》](http://netsecurity.51cto.com/art/201601/503799.htm) 1559 | * [《免费DDoS攻击测试工具大合集》](http://netsecurity.51cto.com/art/201406/442756.htm) 1560 | 1561 | ## 用户隐私信息保护 1562 | 1563 | 1. 用户密码非明文保存,加动态salt。 1564 | 2. 身份证号,手机号如果要显示,用 “\*” 替代部分字符。 1565 | 3. 联系方式在的显示与否由用户自己控制。 1566 | 4. TODO 1567 | 1568 | * [《个人隐私包括哪些》](https://zhidao.baidu.com/question/1988017976673661587.html) 1569 | * [《在互联网上,隐私的范围包括哪些?》](https://www.zhihu.com/question/20137108) 1570 | 1571 | * [《用户密码保存》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/642-shu-ju-jia-mi/6425-jia-mi-chang-jing-ff1a-yong-hu-mi-ma-bao-cun.html) 1572 | 1573 | ## 序列化漏洞 1574 | * [《Lib之过?Java反序列化漏洞通用利用分析》](https://blog.chaitin.cn/2015-11-11_java_unserialize_rce/) 1575 | 1576 | ## 加密解密 1577 | 1578 | ### 对称加密 1579 | 1580 | * [《常见对称加密算法》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/642-shu-ju-jia-mi/6421-chang-jian-dui-cheng-jia-mi-suan-fa.html) 1581 | * DES、3DES、Blowfish、AES 1582 | * DES 采用 56位秘钥,Blowfish 采用1到448位变长秘钥,AES 128,192和256位长度的秘钥。 1583 | * DES 秘钥太短(只有56位)算法目前已经被 AES 取代,并且 AES 有硬件加速,性能很好。 1584 | 1585 | ### 哈希算法 1586 | * [《常用的哈希算法》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/642-shu-ju-jia-mi/6422-chang-jian-ha-xi-suan-fa-and-hmac.html) 1587 | * MD5 和 SHA-1 已经不再安全,已被弃用。 1588 | * 目前 SHA-256 是比较安全的。 1589 | 1590 | * [《基于Hash摘要签名的公网URL签名验证设计方案》](https://blog.csdn.net/zhangruhong168/article/details/78033202) 1591 | 1592 | ### 非对称加密 1593 | * [《常见非对称加密算法》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/642-shu-ju-jia-mi/6424-chang-yong-fei-dui-cheng-jia-mi-suan-fa.html) 1594 | * RSA、DSA、ECDSA(螺旋曲线加密算法) 1595 | * 和 RSA 不同的是 DSA 仅能用于数字签名,不能进行数据加密解密,其安全性和RSA相当,但其性能要比RSA快。 1596 | * 256位的ECC秘钥的安全性等同于3072位的RSA秘钥。 1597 | 1598 | [《区块链的加密技术》](http://baijiahao.baidu.com/s?id=1578348858092033763&wfr=spider&for=pc) 1599 | 1600 | 1601 | ## 服务器安全 1602 | * [《Linux强化论:15步打造一个安全的Linux服务器》](http://www.freebuf.com/articles/system/121540.html) 1603 | 1604 | ## 数据安全 1605 | 1606 | ### 数据备份 1607 | 1608 | TODO 1609 | 1610 | ## 网络隔离 1611 | 1612 | ### 内外网分离 1613 | 1614 | TODO 1615 | 1616 | ### 登录跳板机 1617 | 在内外环境中通过跳板机登录到线上主机。 1618 | * [《搭建简易堡垒机》](http://blog.51cto.com/zero01/2062618) 1619 | 1620 | ## 授权、认证 1621 | ### RBAC 1622 | * [《基于组织角色的权限设计》](https://www.cnblogs.com/zq8024/p/5003050.html) 1623 | * [《权限系统与RBAC模型概述》](https://www.cnblogs.com/shijiaqi1066/p/3793894.html) 1624 | * [《Spring整合Shiro做权限控制模块详细案例分析》](https://blog.csdn.net/he90227/article/details/38663553) 1625 | 1626 | ### OAuth2.0 1627 | * [《理解OAuth 2.0》](http://www.ruanyifeng.com/blog/2014/05/oauth_2_0.html) 1628 | * [《一张图搞定OAuth2.0》](https://www.cnblogs.com/flashsun/p/7424071.html) 1629 | 1630 | ### 双因素认证(2FA) 1631 | 1632 | 2FA - Two-factor authentication,用于加强登录验证 1633 | 1634 | 常用做法是 登录密码 + 手机验证码(或者令牌Key,类似于与网银的 USB key) 1635 | 1636 | * 【《双因素认证(2FA)教程》】(http://www.ruanyifeng.com/blog/2017/11/2fa-tutorial.html) 1637 | 1638 | ### 单点登录(SSO) 1639 | 1640 | * [《单点登录原理与简单实现》](https://www.cnblogs.com/ywlaker/p/6113927.html) 1641 | 1642 | * [CAS单点登录框架](https://github.com/apereo/cas) 1643 | 1644 | # 常用开源框架 1645 | 1646 | ## 开源协议 1647 | 1648 | * [《开源协议的选择》](https://coderxing.gitbooks.io/architecture-evolution/chapter1/di-yi-zhang-ff1a-zhun-bei-qi-cheng/12-guan-yu-kai-yuan/123-kai-yuan-xie-yi-de-xuan-ze.html) 1649 | 1650 | * [如何选择一个开源软件协议](http://choosealicense.online/) 1651 | 1652 | ## 日志框架 1653 | 1654 | ### Log4j、Log4j2 1655 | * [《log4j 详细讲解》](https://blog.csdn.net/u012422446/article/details/51199724) 1656 | * [《log4j2 实际使用详解》](https://blog.csdn.net/vbirdbest/article/details/71751835) 1657 | * [《Log4j1,Logback以及Log4j2性能测试对比》](https://my.oschina.net/OutOfMemory/blog/789267) 1658 | * Log4J 异步日志性能优异。 1659 | 1660 | ### Logback 1661 | * [《最全LogBack 详解、含java案例和配置说明》](https://blog.csdn.net/rulon147/article/details/52620541) 1662 | 1663 | ## ORM 1664 | 1665 | * [《ORM框架使用优缺点》](https://blog.csdn.net/sinat_34093604/article/details/53082000) 1666 | * 主要目的是为了提高开发效率。 1667 | 1668 | **MyBatis:** 1669 | 1670 | * [《mybatis缓存机制详解》](https://www.cnblogs.com/winclpt/articles/7511672.html) 1671 | * 一级缓存是SqlSession级别的缓存,缓存的数据只在SqlSession内有效 1672 | * 二级缓存是mapper级别的缓存,同一个namespace公用这一个缓存,所以对SqlSession是共享的;使用 LRU 机制清理缓存,通过 cacheEnabled 参数开启。 1673 | 1674 | * [《MyBatis学习之代码生成器Generator》](https://blog.csdn.net/baidu_32877851/article/details/53959268) 1675 | 1676 | ## 网络框架 1677 | 1678 | TODO 1679 | 1680 | ## Web 框架 1681 | 1682 | ### Spring 家族 1683 | **Spring** 1684 | * [Spring 简明教程](https://www.w3cschool.cn/wkspring/) 1685 | 1686 | **Spring Boot** 1687 | * [官方网站](http://projects.spring.io/spring-boot/) 1688 | * [《Spring Boot基础教程》](http://blog.didispace.com/Spring-Boot%E5%9F%BA%E7%A1%80%E6%95%99%E7%A8%8B/) 1689 | 1690 | **Spring Cloud** 1691 | 1692 | * [Spring Boot 中文索引站](http://springboot.fun/) 1693 | * [Spring Cloud 中文文档](https://springcloud.cc/) 1694 | * [《Spring Cloud基础教程》](http://blog.didispace.com/Spring-Cloud%E5%9F%BA%E7%A1%80%E6%95%99%E7%A8%8B/) 1695 | 1696 | ## 工具框架 1697 | 1698 | * [《Apache Commons 工具类介绍及简单使用》](https://www.cnblogs.com/crazylqy/p/4872236.html) 1699 | * [《Google guava 中文教程》](http://ifeve.com/google-guava/) 1700 | 1701 | 1702 | # 分布式设计 1703 | 1704 | ## 扩展性设计 1705 | 1706 | * [《架构师不可不知的十大可扩展架构》](https://blog.csdn.net/hemin1003/article/details/53633926) 1707 | * 总结下来,通用的套路就是分布、缓存及异步处理。 1708 | 1709 | * [《可扩展性设计之数据切分》](https://yq.aliyun.com/articles/38119) 1710 | * 水平切分+垂直切分 1711 | * 利用中间件进行分片如,MySQL Proxy。 1712 | * 利用分片策略进行切分,如按照ID取模。 1713 | * [《说说如何实现可扩展性的大型网站架构》](https://blog.csdn.net/deniro_li/article/details/78458306) 1714 | * 分布式服务+消息队列。 1715 | 1716 | * [《大型网站技术架构(七)--网站的可扩展性架构》](https://blog.csdn.net/chaofanwei/article/details/29191073) 1717 | 1718 | ## 稳定性 & 高可用 1719 | 1720 | * [《系统设计:关于高可用系统的一些技术方案》](https://blog.csdn.net/hustspy1990/article/details/78008324) 1721 | * 可扩展:水平扩展、垂直扩展。 通过冗余部署,避免单点故障。 1722 | * 隔离:避免单一业务占用全部资源。避免业务之间的相互影响 2. 机房隔离避免单点故障。 1723 | * 解耦:降低维护成本,降低耦合风险。减少依赖,减少相互间的影响。 1724 | * 限流:滑动窗口计数法、漏桶算法、令牌桶算法等算法。遇到突发流量时,保证系统稳定。 1725 | * 降级:紧急情况下释放非核心功能的资源。牺牲非核心业务,保证核心业务的高可用。 1726 | * 熔断:异常情况超出阈值进入熔断状态,快速失败。减少不稳定的外部依赖对核心服务的影响。 1727 | * 自动化测试:通过完善的测试,减少发布引起的故障。 1728 | * 灰度发布:灰度发布是速度与安全性作为妥协,能够有效减少发布故障。 1729 | 1730 | 1731 | * [《关于高可用的系统》](https://coolshell.cn/articles/17459.html) 1732 | * 设计原则:数据不丢(持久化);服务高可用(服务副本);绝对的100%高可用很难,目标是做到尽可能多的9,如99.999%(全年累计只有5分钟)。 1733 | 1734 | ### 硬件负载均衡 1735 | 1736 | * [《转!!负载均衡器技术Nginx和F5的优缺点对比》](https://www.cnblogs.com/wuyun-blog/p/6186198.html) 1737 | * 主要是和F5对比。 1738 | 1739 | * [《软/硬件负载均衡产品 你知多少?》](https://www.cnblogs.com/lcword/p/5773296.html) 1740 | 1741 | ### 软件负载均衡 1742 | 1743 | * [《几种负载均衡算法》](https://www.cnblogs.com/tianzhiliang/articles/2317808.html) 1744 | 轮寻、权重、负载、最少连接、QoS 1745 | * [《DNS负载均衡》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/611-dns-fang-shi.html) 1746 | * 配置简单,更新速度慢。 1747 | * [《Nginx负载均衡》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/613-nginx-fu-zai-jun-heng.html) 1748 | * 简单轻量、学习成本低;主要适用于web应用。 1749 | 1750 | * [《借助LVS+Keepalived实现负载均衡 》](https://www.cnblogs.com/edisonchou/p/4281978.html) 1751 | * 配置比较负载、只支持到4层,性能较高。 1752 | 1753 | * [《HAProxy用法详解 全网最详细中文文档》](http://www.ttlsa.com/linux/haproxy-study-tutorial/) 1754 | * 支持到七层(比如HTTP)、功能比较全面,性能也不错。 1755 | 1756 | * [《Haproxy+Keepalived+MySQL实现读均衡负载》](http://blog.itpub.net/25704976/viewspace-1319781/) 1757 | * 主要是用户读请求的负载均衡。 1758 | 1759 | * [《rabbitmq+haproxy+keepalived实现高可用集群搭建》](https://www.cnblogs.com/lylife/p/5584019.html) 1760 | 1761 | ### 限流 1762 | 1763 | * [《谈谈高并发系统的限流》](https://www.cnblogs.com/haoxinyue/p/6792309.html) 1764 | * 计数器:通过滑动窗口计数器,控制单位时间内的请求次数,简单粗暴。 1765 | * 漏桶算法:固定容量的漏桶,漏桶满了就丢弃请求,比较常用。 1766 | * 令牌桶算法:固定容量的令牌桶,按照一定速率添加令牌,处理请求前需要拿到令牌,拿不到令牌则丢弃请求,或进入丢队列,可以通过控制添加令牌的速率,来控制整体速度。Guava 中的 RateLimiter 是令牌桶的实现。 1767 | * Nginx 限流:通过 `limit_req` 等模块限制并发连接数。 1768 | 1769 | ### 应用层容灾 1770 | 1771 | * [《防雪崩利器:熔断器 Hystrix 的原理与使用》](https://segmentfault.com/a/1190000005988895) 1772 | * 雪崩效应原因:硬件故障、硬件故障、程序Bug、重试加大流量、用户大量请求。 1773 | * 雪崩的对策:限流、改进缓存模式(缓存预加载、同步调用改异步)、自动扩容、降级。 1774 | * Hystrix设计原则: 1775 | * 资源隔离:Hystrix通过将每个依赖服务分配独立的线程池进行资源隔离, 从而避免服务雪崩。 1776 | * 熔断开关:服务的健康状况 = 请求失败数 / 请求总数,通过阈值设定和滑动窗口控制开关。 1777 | * 命令模式:通过继承 HystrixCommand 来包装服务调用逻辑。 1778 | 1779 | * [《缓存穿透,缓存击穿,缓存雪崩解决方案分析》](https://blog.csdn.net/zeb_perfect/article/details/54135506) 1780 | * [《缓存击穿、失效以及热点key问题》](https://blog.csdn.net/zeb_perfect/article/details/54135506) 1781 | * 主要策略:失效瞬间:单机使用锁;使用分布式锁;不过期; 1782 | * 热点数据:热点数据单独存储;使用本地缓存;分成多个子key; 1783 | 1784 | ### 跨机房容灾 1785 | 1786 | * [《“异地多活”多机房部署经验谈》](http://dc.idcquan.com/ywgl/71559.shtml) 1787 | * 通过自研中间件进行数据同步。 1788 | 1789 | * [《异地多活(异地双活)实践经验》](https://blog.csdn.net/jeffreynicole/article/details/48135093) 1790 | * 注意延迟问题,多次跨机房调用会将延时放大数倍。 1791 | * 建房间专线很大概率会出现问题,做好运维和程序层面的容错。 1792 | * 不能依赖于程序端数据双写,要有自动同步方案。 1793 | * 数据永不在高延迟和较差网络质量下,考虑同步质量问题。 1794 | * 核心业务和次要业务分而治之,甚至只考虑核心业务。 1795 | * 异地多活监控部署、测试也要跟上。 1796 | * 业务允许的情况下考虑用户分区,尤其是游戏、邮箱业务。 1797 | * 控制跨机房消息体大小,越小越好。 1798 | * 考虑使用docker容器虚拟化技术,提高动态调度能力。 1799 | 1800 | * [容灾技术及建设经验介绍](https://blog.csdn.net/yoara/article/details/38013751) 1801 | 1802 | 1803 | ### 容灾演练流程 1804 | 1805 | * [《依赖治理、灰度发布、故障演练,阿里电商故障演练系统的设计与实战经验》](https://mp.weixin.qq.com/s?__biz=MjM5MDE0Mjc4MA==&mid=2650996320&idx=1&sn=0ed3be190bbee4a9277886ef88cbb2e5) 1806 | * 常见故障画像 1807 | * 案例:预案有效性、预案有效性、故障复现、架构容灾测试、参数调优、参数调优、故障突袭、联合演练。 1808 | 1809 | ### 平滑启动 1810 | 1811 | * 平滑重启应用思路 1812 | 1.端流量(如vip层)、2. flush 数据(如果有)、3, 重启应用 1813 | 1814 | * [《JVM安全退出(如何优雅的关闭java服务)》](https://blog.csdn.net/u011001084/article/details/73480432) 1815 | 推荐推出方式:System.exit,Kill SIGTERM;不推荐 kill-9;用 Runtime.addShutdownHook 注册钩子。 1816 | * [《常见Java应用如何优雅关闭》](http://ju.outofmemory.cn/entry/337235) 1817 | Java、Srping、Dubbo 优雅关闭方式。 1818 | 1819 | ## 数据库扩展 1820 | 1821 | ### 读写分离模式 1822 | 1823 | * [《Mysql主从方案的实现》](https://www.cnblogs.com/houdj/p/6563771.html) 1824 | * [《搭建MySQL主从复制经典架构》](https://www.cnblogs.com/edisonchou/p/4133148.html) 1825 | * [《Haproxy+多台MySQL从服务器(Slave) 实现负载均衡》](https://blog.csdn.net/nimasike/article/details/48048341) 1826 | 1827 | * [《DRBD+Heartbeat+Mysql高可用读写分离架构》](https://www.cnblogs.com/zhangsubai/p/6801764.html) 1828 | * DRDB 进行磁盘复制,避免单点问题。 1829 | 1830 | * [《MySQL Cluster 方式》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/62-ke-kuo-zhan-de-shu-ju-ku-jia-gou/621-gao-ke-yong-mysql-de-ji-zhong-fang-an/6214-mysql-cluster-fang-an.html) 1831 | 1832 | ### 分片模式 1833 | * [《分库分表需要考虑的问题及方案》](https://www.jianshu.com/p/32b3e91aa22c) 1834 | * 中间件: 轻量级:sharding-jdbc、TSharding;重量级:Atlas、MyCAT、Vitess等。 1835 | * 问题:事务、Join、迁移、扩容、ID、分页等。 1836 | * 事务补偿:对数据进行对帐检查;基于日志进行比对;定期同标准数据来源进行同步等。 1837 | * 分库策略:数值范围;取模;日期等。 1838 | * 分库数量:通常 MySQL 单库 5千万条、Oracle 单库一亿条需要分库。 1839 | 1840 | * [《MySql分表和表分区详解》](https://www.2cto.com/database/201503/380348.html) 1841 | * 分区:是MySQL内部机制,对客户端透明,数据存储在不同文件中,表面上看是同一个表。 1842 | * 分表:物理上创建不同的表、客户端需要管理分表路由。 1843 | 1844 | ## 服务治理 1845 | ### 服务注册与发现 1846 | 1847 | * [《永不失联!如何实现微服务架构中的服务发现?》](https://blog.csdn.net/jiaolongdy/article/details/51188798) 1848 | * 客户端服务发现模式:客户端直接查询注册表,同时自己负责负载均衡。Eureka 采用这种方式。 1849 | * 服务器端服务发现模式:客户端通过负载均衡查询服务实例。 1850 | * [《SpringCloud服务注册中心比较:Consul vs Zookeeper vs Etcd vs Eureka》](https://blog.csdn.net/u010963948/article/details/71730165) 1851 | * CAP支持:Consul(CA)、zookeeper(cp)、etcd(cp) 、euerka(ap) 1852 | * 作者认为目前 Consul 对 Spring cloud 的支持比较好。 1853 | 1854 | * [《基于Zookeeper的服务注册与发现》](http://mobile.51cto.com/news-502394.htm) 1855 | * 优点:API简单、Pinterest,Airbnb 在用、多语言、通过watcher机制来实现配置PUSH,能快速响应配置变化。 1856 | 1857 | ### 服务路由控制 1858 | * [《分布式服务框架学习笔记4 服务路由》](https://blog.csdn.net/xundh/article/details/59492750) 1859 | * 原则:透明化路由 1860 | * 负载均衡策略:随机、轮询、服务调用延迟、一致性哈希、粘滞连接 1861 | * 本地路由有限策略:injvm(优先调用jvm内部的服务),innative(优先使用相同物理机的服务),原则上找距离最近的服务。 1862 | * 配置方式:统一注册表;本地配置;动态下发。 1863 | 1864 | ## 分布式一致 1865 | 1866 | ### CAP 与 BASE 理论 1867 | 1868 | * [《从分布式一致性谈到CAP理论、BASE理论》](http://www.cnblogs.com/szlbm/p/5588543.html) 1869 | * 一致性分类:强一致(立即一致);弱一致(可在单位时间内实现一致,比如秒级);最终一致(弱一致的一种,一定时间内最终一致) 1870 | * CAP:一致性、可用性、分区容错性(网络故障引起) 1871 | * BASE:Basically Available(基本可用)、Soft state(软状态)和Eventually consistent(最终一致性) 1872 | * BASE理论的核心思想是:即使无法做到强一致性,但每个应用都可以根据自身业务特点,采用适当的方式来使系统达到最终一致性。 1873 | 1874 | ### 分布式锁 1875 | 1876 | * [《分布式锁的几种实现方式》](http://www.hollischuang.com/archives/1716) 1877 | * 基于数据库的分布式锁:优点:操作简单、容易理解。缺点:存在单点问题、数据库性能够开销较大、不可重入; 1878 | * 基于缓存的分布式锁:优点:非阻塞、性能好。缺点:操作不好容易造成锁无法释放的情况。 1879 | * Zookeeper 分布式锁:通过有序临时节点实现锁机制,自己对应的节点需要最小,则被认为是获得了锁。优点:集群可以透明解决单点问题,避免锁不被释放问题,同时锁可以重入。缺点:性能不如缓存方式,吞吐量会随着zk集群规模变大而下降。 1880 | * [《基于Zookeeper的分布式锁》](https://www.tuicool.com/articles/VZJr6fY) 1881 | * 清楚的原理描述 + Java 代码示例。 1882 | 1883 | * [《jedisLock—redis分布式锁实现》](https://www.cnblogs.com/0201zcr/p/5942748.html) 1884 | * 基于 setnx(set if ont exists),有则返回false,否则返回true。并支持过期时间。 1885 | 1886 | * [《Memcached 和 Redis 分布式锁方案》](https://blog.csdn.net/albertfly/article/details/77412333) 1887 | * 利用 memcached 的 add(有别于set)操作,当key存在时,返回false。 1888 | 1889 | ### 分布式一致性算法 1890 | 1891 | #### PAXOS 1892 | * [《分布式系列文章——Paxos算法原理与推导》](https://www.cnblogs.com/linbingdong/p/6253479.html) 1893 | * [《Paxos-->Fast Paxos-->Zookeeper分析》](https://blog.csdn.net/u010039929/article/details/70171672) 1894 | * [《【分布式】Zookeeper与Paxos》](https://www.cnblogs.com/leesf456/p/6012777.html) 1895 | 1896 | #### Zab 1897 | * [《Zab:Zookeeper 中的分布式一致性协议介绍》](https://www.jianshu.com/p/fb527a64deee) 1898 | 1899 | #### Raft 1900 | * [《Raft 为什么是更易理解的分布式一致性算法》](http://www.cnblogs.com/mindwind/p/5231986.html) 1901 | * 三种角色:Leader(领袖)、Follower(群众)、Candidate(候选人) 1902 | * 通过随机等待的方式发出投票,得票多的获胜。 1903 | 1904 | #### Gossip 1905 | * [《Gossip算法》](http://blog.51cto.com/tianya23/530743) 1906 | 1907 | #### 两阶段提交、多阶段提交 1908 | 1909 | * [《关于分布式事务、两阶段提交协议、三阶提交协议》](http://blog.jobbole.com/95632/) 1910 | 1911 | ### 幂等 1912 | 1913 | * [《分布式系统---幂等性设计》](https://www.cnblogs.com/wxgblogs/p/6639272.html) 1914 | * 幂等特性的作用:该资源具备幂等性,请求方无需担心重复调用会产生错误。 1915 | * 常见保证幂等的手段:MVCC(类似于乐观锁)、去重表(唯一索引)、悲观锁、一次性token、序列号方式。 1916 | 1917 | ### 分布式一致方案 1918 | * [《分布式系统事务一致性解决方案》](http://www.infoq.com/cn/articles/solution-of-distributed-system-transaction-consistency) 1919 | * [《保证分布式系统数据一致性的6种方案》](https://weibo.com/ttarticle/p/show?id=2309403965965003062676) 1920 | 1921 | ### 分布式 Leader 节点选举 1922 | * [《利用zookeeper实现分布式leader节点选举》](https://blog.csdn.net/johnson_moon/article/details/78809995) 1923 | 1924 | ### TCC(Try/Confirm/Cancel) 柔性事务 1925 | * [《传统事务与柔性事务》](https://www.jianshu.com/p/ab1a1c6b08a1) 1926 | * 基于BASE理论:基本可用、柔性状态、最终一致。 1927 | * 解决方案:记录日志+补偿(正向补充或者回滚)、消息重试(要求程序要幂等);“无锁设计”、采用乐观锁机制。 1928 | 1929 | ## 分布式文件系统 1930 | 1931 | * [说说分布式文件存储系统-基本架构](https://zhuanlan.zhihu.com/p/27666295) ? 1932 | * [《各种分布式文件系统的比较》](https://blog.csdn.net/gatieme/article/details/44982961) ? 1933 | * HDFS:大批量数据读写,用于高吞吐量的场景,不适合小文件。 1934 | * FastDFS:轻量级、适合小文件。 1935 | 1936 | ## 唯一ID 生成 1937 | 1938 | ### 全局唯一ID 1939 | * [《高并发分布式系统中生成全局唯一Id汇总》](https://www.cnblogs.com/baiwa/p/5318432.html) 1940 | * Twitter 方案(Snowflake 算法):41位时间戳+10位机器标识(比如IP,服务器名称等)+12位序列号(本地计数器) 1941 | * Flicker 方案:MySQL自增ID + "REPLACE INTO XXX:SELECT LAST_INSERT_ID();" 1942 | * UUID:缺点,无序,字符串过长,占用空间,影响检索性能。 1943 | * MongoDB 方案:利用 ObjectId。缺点:不能自增。 1944 | 1945 | * [《TDDL 在分布式下的SEQUENCE原理》](https://blog.csdn.net/hdu09075340/article/details/79103851) 1946 | * 在数据库中创建 sequence 表,用于记录,当前已被占用的id最大值。 1947 | * 每台客户端主机取一个id区间(比如 1000~2000)缓存在本地,并更新 sequence 表中的id最大值记录。 1948 | * 客户端主机之间取不同的id区间,用完再取,使用乐观锁机制控制并发。 1949 | 1950 | ## 一致性Hash算法 1951 | 1952 | * [《一致性哈希算法》](https://coderxing.gitbooks.io/architecture-evolution/di-san-pian-ff1a-bu-luo/631-yi-zhi-xing-ha-xi.html) 1953 | 1954 | # 设计思想 & 开发模式 1955 | 1956 | ## DDD(Domain-driven Design - 领域驱动设计) 1957 | 1958 | * [《浅谈我对DDD领域驱动设计的理解》](https://www.cnblogs.com/netfocus/p/5548025.html) 1959 | * 概念:DDD 主要对传统软件开发流程(分析-设计-编码)中各阶段的割裂问题而提出,避免由于一开始分析不明或在软件开发过程中的信息流转不一致而造成软件无法交付(和需求方设想不一致)的问题。DDD 强调一切以领域(Domain)为中心,强调领域专家(Domain Expert)的作用,强调先定义好领域模型之后在进行开发,并且领域模型可以指导开发(所谓的驱动)。 1960 | * 过程:理解领域、拆分领域、细化领域,模型的准确性取决于模型的理解深度。 1961 | * 设计:DDD 中提出了建模工具,比如聚合、实体、值对象、工厂、仓储、领域服务、领域事件来帮助领域建模。 1962 | 1963 | * [《领域驱动设计的基础知识总结》](https://www.cnblogs.com/butterfly100/p/7827870.html) 1964 | * 领域(Doamin)本质上就是问题域,比如一个电商系统,一个论坛系统等。 1965 | * 界限上下文(Bounded Context):阐述子域之间的关系,可以简单理解成一个子系统或组件模块。 1966 | * 领域模型(Domain Model):DDD的核心是建立(用通用描述语言、工具—领域通用语言)正确的领域模型;反应业务需求的本质,包括实体和过程;其贯穿软件分析、设计、开发 的整个过程;常用表达领域模型的方式:图、代码或文字; 1967 | * 领域通用语言:领域专家、开发设计人员都能立即的语言或工具。 1968 | * 经典分层架构:用户界面/展示层、应用层、领域层、基础设施层,是四层架构模式。 1969 | * 使用的模式: 1970 | * 关联尽量少,尽量单项,尽量降低整体复杂度。 1971 | * 实体(Entity):领域中的唯一标示,一个实体的属性尽量少,少则清晰。 1972 | * 值对象(Value Object):没有唯一标识,且属性值不可变,小二简单的对象,比如Date。 1973 | * 领域服务(Domain Service): 协调多个领域对象,只有方法没有状态(不存数据);可以分为应用层服务,领域层服务、基础层服务。 1974 | * 聚合及聚合根(Aggregate,Aggregate Root):聚合定义了一组具有内聚关系的相关对象的集合;聚合根是对聚合引用的唯一元素;当修改一个聚合时,必须在事务级别;大部分领域模型中,有70%的聚合通常只有一个实体,30%只有2~3个实体;如果一个聚合只有一个实体,那么这个实体就是聚合根;如果有多个实体,那么我们可以思考聚合内哪个对象有独立存在的意义并且可以和外部直接进行交互; 1975 | * 工厂(Factory):类似于设计模式中的工厂模式。 1976 | * 仓储(Repository):持久化到DB,管理对象,且只对聚合设计仓储。 1977 | 1978 | * [《领域驱动设计(DDD)实现之路》](http://www.cnblogs.com/Leo_wl/p/3866629.html) 1979 | * 聚合:比如一辆汽车(Car)包含了引擎(Engine)、车轮(Wheel)和油箱(Tank)等组件,缺一不可。 1980 | 1981 | * [《领域驱动设计系列(2)浅析VO、DTO、DO、PO的概念、区别和用处》](http://www.hollischuang.com/archives/553) 1982 | 1983 | 1984 | ### 命令查询职责分离(CQRS) 1985 | 1986 | CQRS — Command Query Responsibility Seperation 1987 | 1988 | * [《领域驱动设计系列 (六):CQRS》](https://www.cnblogs.com/cnblogsfans/p/4551990.html) 1989 | * 核心思想:读写分离(查询和更新在不同的方法中),不同的流程只是不同的设计方式,CQ代码分离,分布式环境中会有明显体现(有冗余数据的情况下),目的是为了高性能。 1990 | 1991 | * [《DDD CQRS架构和传统架构的优缺点比较》](http://www.techweb.com.cn/network/system/2017-07-07/2553563.shtml) 1992 | * 最终一致的设计理念;依赖于高可用消息中间件。 1993 | 1994 | * [《CQRS架构简介》](http://www.cnblogs.com/netfocus/p/4055346.html) 1995 | * 一个实现 CQRS 的抽象案例。 1996 | 1997 | * [《深度长文:我对CQRS/EventSourcing架构的思考》](http://www.uml.org.cn/zjjs/201609221.asp) 1998 | * CQRS 模式分析 + 12306 抢票案例 1999 | 2000 | ### 贫血,充血模型 2001 | 2002 | * [《贫血,充血模型的解释以及一些经验》](https://kb.cnblogs.com/page/520743/) 2003 | * 失血模型:老子和儿子分别定义,相互不知道,二者实体定义中完全没有业务逻辑,通过外部Service进行关联。 2004 | * 贫血模型:老子知道儿子,儿子也知道老子;部分业务逻辑放到实体中;优点:各层单项依赖,结构清楚,易于维护;缺点:不符合OO思想,相比于充血模式,Service层较为厚重; 2005 | * 充血模型:和贫血模型类似,区别在于如何划分业务逻辑。优点:Service层比较薄,只充当Facade的角色,不和DAO打交道、复合OO思想;缺点:非单项依赖,DO和DAO之间双向依赖、和Service层的逻辑划分容易造成混乱。 2006 | * 肿胀模式:是一种极端情况,取消Service层、全部业务逻辑放在DO中;优点:符合OO思想、简化了分层;缺点:暴露信息过多、很多非DO逻辑也会强行并入DO。这种模式应该避免。 2007 | * 作者主张使用贫血模式。 2008 | 2009 | ## Actor 模式 2010 | 2011 | TODO 2012 | 2013 | ## 响应式编程 2014 | 2015 | ### Reactor 2016 | TODO 2017 | ### RxJava 2018 | TODO 2019 | ### Vert.x 2020 | TODO 2021 | 2022 | ## DODAF2.0 2023 | 2024 | * [《DODAF2.0方法论》](http://www.360doc.com/content/16/0627/19/33945750_571201779.shtml) 2025 | * [《DODAF2.0之能力视角如何落地》](http://blog.51cto.com/xiaoyong/1553164) 2026 | 2027 | ## Serverless 2028 | 2029 | 无需过多关系服务器的服务架构理念。 2030 | 2031 | * [《什么是Serverless无服务器架构?》](http://www.jdon.com/soa/serverless.html) 2032 | * Serverless 不代表出去服务器,而是去除对服务器运行状态的关心。 2033 | * Serverless 代表一思维方式的转变,从“构建一套服务在一台服务器上,对对个事件进行响应转变为构建一个为服务器,来响应一个事件”。 2034 | * Serverless 不代表某个具体的框架。 2035 | 2036 | * [《如何理解Serverless?》](http://www.infoq.com/cn/news/2017/10/how-to-understand-serverless) 2037 | * 依赖于 Baas ((Mobile) Backend as a Service) 和 Faas (Functions as a service) 2038 | 2039 | 2040 | 2041 | ## Service Mesh 2042 | 2043 | * [《什么是Service Mesh?》](https://time.geekbang.org/article/2355) 2044 | * [《初识 Service Mesh》](https://www.jianshu.com/p/e23e3e74538e) 2045 | 2046 | * [《什么是Service Mesh?》](https://time.geekbang.org/article/2355) 2047 | 2048 | # 项目管理 2049 | 2050 | ## 架构评审 2051 | * [《架构设计之如何评审架构设计说明书》](http://developer.51cto.com/art/201506/478486.htm) 2052 | * [《人人都是架构师:非功能性需求》](https://blog.csdn.net/wireless_com/article/details/45935591) 2053 | 2054 | ## 重构 2055 | 2056 | * [《架构之重构的12条军规》](http://www.infoq.com/cn/articles/architect-12-rules-complete/) 2057 | 2058 | ## 代码规范 2059 | 2060 | TODO 2061 | 2062 | ## 代码 Review 2063 | 2064 | 2065 | 制度还是制度! 2066 | 另外,每个公司需要根据自己的需求和目标制定自己的 check list 2067 | 2068 | * [《为什么你做不好 Code Review?》](http://www.sohu.com/a/229745352_181657) 2069 | * 代码 review 做的好,在于制度建设。 2070 | 2071 | * [《从零开始Code Review》](https://blog.csdn.net/uxyheaven/article/details/49773619) 2072 | 2073 | * [《Code Review Checklist》](https://www.cnblogs.com/zuoping/p/5477047.html) 2074 | * [《Java Code Review Checklist》](https://dzone.com/articles/java-code-review-checklist) 2075 | 2076 | * [《如何用 gitlab 做 code review》](https://blog.csdn.net/legend0011/article/details/45585575) 2077 | 2078 | ## RUP 2079 | * [《运用RUP 4+1视图方法进行软件架构设计》](https://blog.csdn.net/apanious/article/details/51011946) 2080 | 2081 | ## 看板管理 2082 | * [《说说看板在项目中的应用》](https://blog.csdn.net/tkchen/article/details/51637643) 2083 | 2084 | ## SCRUM 2085 | 2086 | SCRUM - 争球 2087 | 2088 | * 3个角色:Product Owner(PO) 产品负责人;Scrum Master(SM),推动Scrum执行;Team 开发团队。 2089 | * 3个工件:Product Backlog 产品TODOLIST,含优先级;Sprint Backlog 功能开发 TODO LIST;燃尽图; 2090 | * 五个价值观:专注、勇气、公开、承诺、尊重。 2091 | 2092 | 2093 | * [《敏捷项目管理流程-Scrum框架最全总结!》](https://blog.csdn.net/inny100_100/article/details/54633757) 2094 | 2095 | * [《敏捷其实很简单3---敏捷方法之scrum》](https://blog.csdn.net/superkunkun/article/details/52951142) 2096 | 2097 | ## 敏捷开发 2098 | 2099 | TODO 2100 | 2101 | ## 极限编程(XP) 2102 | 2103 | XP - eXtreme Programming 2104 | 2105 | * [《主流敏捷开发方法:极限编程XP》](http://www.woshipm.com/pmd/406917.html) 2106 | * 是一种指导开发人员的方法论。 2107 | * 4大价值: 2108 | * 沟通:鼓励口头沟通,提高效率。 2109 | * 简单:够用就好。 2110 | * 反馈:及时反馈、通知相关人。 2111 | * 勇气:提倡拥抱变化,敢于重构。 2112 | 2113 | * 5个原则:快速反馈、简单性假设、逐步修改、提倡更改(小步快跑)、优质工作(保证质量的前提下保证小步快跑)。 2114 | * 5个工作:阶段性冲刺;冲刺计划会议;每日站立会议;冲刺后review;回顾会议。 2115 | 2116 | ## 结对编程 2117 | 2118 | 边写码,边review。能够增强代码质量、减少bug。 2119 | 2120 | * [《结对编程》](http://www.baike.com/wiki/%E7%BB%93%E5%AF%B9%E7%BC%96%E7%A8%8B) 2121 | 2122 | ## PDCA 循环质量管理 2123 | 2124 | P——PLAN 策划,D——DO 实施,C——CHECK 检查,A——ACT 改进 2125 | 2126 | * [《PDCA》](http://www.baike.com/wiki/PDCA) 2127 | 2128 | ## FMEA管理模式 2129 | 2130 | TODO 2131 | 2132 | # 通用业务术语 2133 | 2134 | TODO 2135 | 2136 | # 技术趋势 2137 | 2138 | TODO 2139 | 2140 | # 政策、法规 2141 | 2142 | TODO 2143 | ## 法律 2144 | 2145 | ### 严格遵守刑法253法条 2146 | 2147 | 我国刑法第253条之一规定: 2148 | 2149 | > * 国家机关或者金融、电信、交通、教育、医疗等单位的工作人员,违反国家规定,将本单位在履行职责或者提供服务过程中获得的公民个人信息,出售或者非法提供给他人,情节严重的,处3年以下有期徒刑或者拘役,并处或者单处罚金。 2150 | > * 窃取或者以其他方法非法获取上述信息,情节严重的,依照前款的规定处罚。 2151 | > * 单位犯前两款罪的,对单位判处罚金,并对其直接负责的主管人员和其他直接责任人员,依照各该款的规定处罚。 2152 | 2153 | 最高人民法院、最高人民检察院关于执行《中华人民共和国刑法》确定罪名的补充规定(四)规定:触犯刑法第253条之一第1款之规定,构成“出售、非法提供公民个人信息罪”;触犯刑法第253条之一第2款之规定,构成“非法获取公民个人信息罪” 2154 | 2155 | * [《非法获取公民个人信息罪》](https://baike.baidu.com/item/%E9%9D%9E%E6%B3%95%E8%8E%B7%E5%8F%96%E5%85%AC%E6%B0%91%E4%B8%AA%E4%BA%BA%E4%BF%A1%E6%81%AF%E7%BD%AA) 2156 | 2157 | 2158 | # 架构师素质 2159 | 2160 | * [《架构师画像》](http://hellojava.info/?p=430) 2161 | * 业务理解和抽象能力 2162 | * NB的代码能力 2163 | * 全面:1. 在面对业务问题上,架构师脑海里是否会浮现出多种技术方案;2. 在做系统设计时是否考虑到了足够多的方方面面;3. 在做系统设计时是否考虑到了足够多的方方面面; 2164 | * 全局:是否考虑到了对上下游的系统的影响。 2165 | * 权衡:权衡投入产出比;优先级和节奏控制; 2166 | 2167 | * [《关于架构优化和设计,架构师必须知道的事情》](http://www.infoq.com/cn/articles/architecture-optimization-and-design-the-architect-must-know) 2168 | * 要去考虑的细节:模块化、轻耦合、无共享架构;减少各个组件之前的依赖、注意服务之间依赖所有造成的链式失败及影响等。 2169 | * 基础设施、配置、测试、开发、运维综合考虑。 2170 | * 考虑人、团队、和组织的影响。 2171 | 2172 | * [《如何才能真正的提高自己,成为一名出色的架构师?》](https://www.zhihu.com/question/19841397) 2173 | 2174 | * [《架构师的必备素质和成长途径》](https://blog.csdn.net/sanbingyutuoniao123/article/details/54144129) 2175 | * 素质:业务理解、技术广度、技术深度、丰富经验、沟通能力、动手能力、美学素养。 2176 | * 成长路径:2年积累知识、4年积累技能和组内影响力、7年积累部门内影响力、7年以上积累跨部门影响力。 2177 | 2178 | * [《架构设计师—你在哪层楼?》](http://blog.51cto.com/frankfan/1248401) 2179 | * 第一层的架构师看到的只是产品本身 2180 | * 第二层的架构师不仅看到自己的产品,还看到了整体的方案 2181 | * 第三层的架构师看到的是商业价值 2182 | 2183 | # 团队管理 2184 | 2185 | TODO 2186 | 2187 | ## 招聘 2188 | 2189 | # 资讯 2190 | 2191 | ## 行业资讯 2192 | 2193 | * [36kr](http://36kr.com/) 2194 | * [Techweb](http://www.techweb.com.cn/) 2195 | 2196 | ## 公众号列表 2197 | 2198 | TODO 2199 | 2200 | ## 博客 2201 | 2202 | ### 团队博客 2203 | * [阿里中间件博客](http://jm.taobao.org/) 2204 | * [美团点评技术团队博客](https://tech.meituan.com) 2205 | 2206 | ### 个人博客 2207 | 2208 | * [阮一峰的网络日志](http://www.ruanyifeng.com/) 2209 | * [酷壳 - COOLSHELL-陈皓](https://coolshell.cn/) 2210 | * [hellojava-阿里毕玄](http://hellojava.info/) 2211 | * [Cm's Blog](http://cmsblogs.com/) 2212 | * [程序猿DD-翟永超-《Spring Cloud微服务实战》作者](http://blog.didispace.com/) 2213 | 2214 | ## 综合门户、社区 2215 | 2216 | **国内:** 2217 | 2218 | * [CSDN](http://csdn.net) 2219 | 老牌技术社区、不必解释。 2220 | * [51cto.com](http://www.51cto.com/) 2221 | * [ITeye](http://www.iteye.com/) 2222 | * 偏 Java 方向 2223 | * [博客园](https://www.cnblogs.com) 2224 | * [ChinaUnix](http://www.tom.net/) 2225 | * 偏 Linux 方向 2226 | * [开源中国社区](https://www.oschina.net/) 2227 | * [深度开源](http://www.open-open.com/) 2228 | * [伯乐在线](http://www.jobbole.com/) 2229 | * 涵盖 IT职场、Web前端、后端、移动端、数据库等方面内容,偏技术端。 2230 | 2231 | * [ITPUB](http://www.itpub.net/) 2232 | * [腾讯云— 云+社区](https://cloud.tencent.com/developer/column) 2233 | * [阿里云— 云栖社区](https://yq.aliyun.com/) 2234 | * [IBM DeveloperWorks](https://www.ibm.com/developerworks/cn/) 2235 | * [开发者头条](https://toutiao.io/) 2236 | * [LinkedKeeper](http://www.linkedkeeper.com) 2237 | 2238 | **国外:** 2239 | 2240 | * [DZone](https://dzone.com) 2241 | * [Reddit](https://www.reddit.com) 2242 | 2243 | ## 问答、讨论类社区 2244 | 2245 | * [segmentfault](https://segmentfault.com) 2246 | * 问答+专栏 2247 | * [知乎](https://www.zhihu.com/) 2248 | * [stackoverflow](https://stackoverflow.com/) 2249 | 2250 | ## 行业数据分析 2251 | 2252 | * [艾瑞网](http://report.iresearch.cn/) 2253 | * [QUEST MOBILE](https://www.questmobile.com.cn) 2254 | 2255 | * [国家数据](http://data.stats.gov.cn/) 2256 | 2257 | * [TalkingData](http://www.talkingdata.com/) 2258 | 2259 | ## 专项网站 2260 | 2261 | * 测试: 2262 | * [领测国际](http://www.ltesting.net/) 2263 | * [测试窝](https://www.testwo.com/) 2264 | * [TesterHome](https://testerhome.com) 2265 | 2266 | * 运维: 2267 | * [运维派](http://www.yunweipai.com/) 2268 | * [Abcdocker](https://www.abcdocker.com/) 2269 | 2270 | * Java: 2271 | * [ImportNew](http://www.importnew.com/) 2272 | * 专注于 Java 技术分享 2273 | * [HowToDoInJava](https://howtodoinjava.com/) 2274 | * 英文博客 2275 | 2276 | * 安全 2277 | * [红黑联盟](https://www.2cto.com/) 2278 | * [FreeBuf](http://www.freebuf.com/) 2279 | 2280 | * 大数据 2281 | * [中国大数据](http://www.thebigdata.cn/) 2282 | 2283 | * 其他专题网站: 2284 | * [DockerInfo](http://www.dockerinfo.net/) 2285 | * 专注于 Docker 应用及咨询、教程的网站。 2286 | * [Linux公社](https://www.linuxidc.com/) 2287 | * Linux 主题社区 2288 | 2289 | ## 其他类 2290 | 2291 | * [程序员技能图谱](https://github.com/TeamStuQ/skill-map) 2292 | 2293 | ## 推荐参考书 2294 | 2295 | 2296 | ### 在线电子书 2297 | 2298 | * [《深入理解Spring Cloud与微服务构建》](https://github.com/forezp/SpringCloudLearning) 2299 | 2300 | 2301 | * [《阿里技术参考图册-研发篇》](http://techforum-img.cn-hangzhou.oss-pub.aliyun-inc.com/1523849261680/AliTech101_RD.pdf) 2302 | * [《阿里技术参考图册-算法篇》](http://techforum-img.cn-hangzhou.oss-pub.aliyun-inc.com/1523848064814/AliTech101_Algorithms.pdf) 2303 | 2304 | * [《2018美团点评技术年货(合辑)》70M](http://dpurl.cn/n/1lqcX) 2305 | 2306 | * [InfoQ《架构师》月刊](http://www.infoq.com/cn/architect/) 2307 | 2308 | * [《架构师之路》](https://www.w3cschool.cn/architectroad/) 2309 | 2310 | ### 纸质书 2311 | 2312 | #### 开发方面 2313 | 2314 | * 《阿里巴巴Java开发手册》[京东](https://union-click.jd.com/jdc?d=bVKwZQ) [淘宝](https://s.taobao.com/search?q=阿里巴巴Java开发手册) 2315 | 2316 | #### 架构方面 2317 | * 《软件架构师的12项修炼:技术技能篇》[京东](https://union-click.jd.com/jdc?d=gXvRd8) [淘宝](https://s.taobao.com/search?q=软件架构师的12项修炼:技术技能篇) 2318 | * 《架构之美》[京东](https://union-click.jd.com/jdc?d=xJit5I) [淘宝](https://s.taobao.com/search?q=架构之美) 2319 | * 《分布式服务架构》[京东](https://union-click.jd.com/jdc?d=JS5Od9) [淘宝](https://s.taobao.com/search?q=分布式服务架构) 2320 | * 《聊聊架构》 [京东](https://union-click.jd.com/jdc?d=FHooH4) [淘宝](https://s.taobao.com/search?q=聊聊架构) 2321 | * 《云原生应用架构实践》[京东](https://union-click.jd.com/jdc?d=orkJSj) [淘宝](https://s.taobao.com/search?q=云原生应用架构实践) 2322 | * 《亿级流量网站架构核心技术》[京东](https://union-click.jd.com/jdc?d=RnOSP5) [淘宝](https://s.taobao.com/search?q=亿级流量网站架构核心技术) 2323 | * 《淘宝技术这十年》[京东](https://union-click.jd.com/jdc?d=LwrDfD) [淘宝](https://s.taobao.com/search?q=淘宝技术这十年) 2324 | * 《企业IT架构转型之道-中台战略思想与架构实战》 [京东](https://union-click.jd.com/jdc?d=89pAEm) [淘宝](https://s.taobao.com/search?q=企业IT架构转型之道) 2325 | 2326 | * 《高可用架构(第1卷)》[京东](https://item.jd.com/12195481.html) [淘宝](https://s.taobao.com/search?q=高可用架构) 2327 | 2328 | #### 技术管理方面 2329 | * 《CTO说》[京东](https://union-click.jd.com/jdc?d=zhTZyr) [淘宝](https://s.taobao.com/search?q=CTO说) 2330 | * 《技术管理之巅》[京东](https://union-click.jd.com/jdc?d=LgRBUW) [淘宝](https://s.taobao.com/search?q=技术管理之巅) 2331 | * 《网易一千零一夜:互联网产品项目管理实战》[京东](https://union-click.jd.com/jdc?d=jcRz2r) [淘宝](https://s.taobao.com/search?q=网易一千零一夜:互联网产品项目管理实战) 2332 | 2333 | #### 基础理论 2334 | * 《数学之美》[京东](https://union-click.jd.com/jdc?d=ghIES2) [淘宝](https://s.taobao.com/search?q=数学之美) 2335 | * 《编程珠玑》[京东](https://union-click.jd.com/jdc?d=YmhdEu) [淘宝](https://s.taobao.com/search?q=编程珠玑) 2336 | 2337 | #### 工具方面 2338 | TODO 2339 | 2340 | #### 大数据方面 2341 | 2342 | # 技术资源 2343 | 2344 | ## 开源资源 2345 | * [github](https://github.com) 2346 | 2347 | * [Apache 软件基金会](https://www.apache.org/index.html) 2348 | 2349 | ## 手册、文档、教程 2350 | 2351 | **国内:** 2352 | * [W3Cschool](http://w3cschool.cn) 2353 | * [Runoob.com](http://www.runoob.com/) 2354 | * HTML 、 CSS、XML、Java、Python、PHP、设计模式等入门手册。 2355 | 2356 | * [Love2.io](https://love2.io/) 2357 | * 很多很多中文在线电子书,是一个全新的开源技术文档分享平台。 2358 | * [gitbook.cn](http://gitbook.cn/) 2359 | * 付费电子书。 2360 | * [ApacheCN](http://www.apachecn.org/) 2361 | * AI、大数据方面系列中文文档。 2362 | 2363 | **国外:** 2364 | 2365 | * [Quick Code](http://www.quickcode.co/) 2366 | * 免费在线技术教程。 2367 | * [gitbook.com](http://gitbook.com) 2368 | * 有部分中文电子书。 2369 | * [Cheatography](https://www.cheatography.com/) 2370 | * Cheat Sheets 大全,单页文档网站。 2371 | * [Tutorialspoint](https://www.tutorialspoint.com/index.htm) 2372 | * 知名教程网站,提供Java、Python、JS、SQL、大数据等高质量入门教程。 2373 | 2374 | 2375 | ## 在线课堂 2376 | 2377 | * [学徒无忧](http://www.xuetuwuyou.com/) 2378 | * [极客时间](https://time.geekbang.org/) 2379 | * [segmentfault](https://segmentfault.com/lives) 2380 | * [斯达克学院](https://new.stuq.org/course/explore) 2381 | * [牛客网](http://nowcoder.com) 2382 | * [极客学院](https://www.jikexueyuan.com/) 2383 | * [51CTO学院](http://edu.51cto.com/) 2384 | 2385 | ## 会议、活动 2386 | 2387 | * [QCon](http://www.infoq.com/cn/qcon/) 2388 | * [ArchSummit](https://archsummit.com) 2389 | * [GITC全球互联网技术大会](http://www.thegitc.com/) 2390 | 2391 | **活动发布平台:** 2392 | * [活动行](http://www.huodongxing.com/) 2393 | 2394 | ## 常用APP 2395 | 2396 | * [极客时间](https://time.geekbang.org) 2397 | * [得到](https://www.igetget.com) 2398 | 2399 | ## 找工作 2400 | * [Boss直聘](https://www.zhipin.com) 2401 | * [拉勾网](https://www.lagou.com) 2402 | * [猎聘](https://www.liepin.com) 2403 | * [100Offer](https://cn.100offer.com/) 2404 | 2405 | ## 工具 2406 | 2407 | * [极客搜索](https://s.geekbang.org/) 2408 | * 技术文章搜索引擎。 2409 | 2410 | ## 代码托管 2411 | 2412 | * [Coding](https://coding.net) 2413 | * [码云](https://gitee.com/) 2414 | 2415 | ## 文件服务 2416 | * 七牛 2417 | * 又拍云 2418 | 2419 | ## 综合云服务商 2420 | * 阿里云 2421 | * [腾讯云](https://cloud.tencent.com/redirect.php?redirect=1012&cps_key=c2665015d90871c0cb20fef91b7afc3c) 2422 | * 百度云 2423 | * 新浪云 2424 | * 金山云 2425 | * [亚马逊云(AWS)](https://amazonaws-china.com/cn/) 2426 | * [谷歌云](https://cloud.google.com/?hl=zh-cn) 2427 | * [微软云](https://azure.microsoft.com/zh-cn/) 2428 | 2429 | ### VPS 2430 | * [Linode](http://linode.com) 2431 | 2432 | 2433 | --------------------------------------------------------------------------------