5. 故障经常出现
故障难以预知
故障不能避免
直面故障
The 8 fallacies
1. The network is reliable.
2. Latency is zero.
3. Bandwidth is infinite.
4. The network is secure.
5. Topology doesn't change.
6. There is one administrator.
7. Transport cost is zero.
8. The network is homogeneous.
可以提前准备 !
但是…
9. Web Platform
4 mo
Admin
LBS
CDN
Payment
Member
v1.0
fnd services
Consul
Config
(git2consul)
Monitor
CI
(gitlab ci)NOS
Git
Web
v1.1
Platform
v1.0
LBS
CDN
2 mo fnd services
ConsulGit
8 mo
Payment
v1.6
Order
v1.4
Member
v1.6
Investment
v1.4
Admin
v1.12.1
Gate
v1.0
Comments
v1.0
Promotion
v1.3
Web
v1.23.1
Platform
v1.13LBS
CDN
fnd services
Deploy
Consul Config
MonitorCI
Git
NOS
Web
v1.0
1 mo
LBS
CDN
开发一个互联网产品…
11. 面向产品(而非软件项目)
易于替换(而非重用)
自包含,低耦合(而非相互依赖)
围绕业务能力(而非业务模型,也非技术分层)
足够小(系统和每次变更,易于理解和实现)
理解微服务
Our intellectual powers are rather geared to master static relations and that
our powers to visualize processes evolving in time are relatively
poorly developed.
— Dijkstra (1968)
"A Case against the GO TO Statement"