Distributed System
Last updated
Last updated
Synchronous vs Asynchronous
Blocking vs Nonblocking
If the thread will not give out a signal when it's finished, synchronous
If the thread will give out a signal when it's finished, asynchronous
If the process wait the thread to be finished, blocking
If the process doesn't wait the thread to be finished, nonblocking.
Reference:
Scale out (Horizontally Scale),即通过添加更多的机器,来满足更大的需求
Scale up (Vertically Scale),即通过对单一机器增添CPU、RAM等,来满足更大的需求
通常情况下,先采取 Scale up 的方式,扩展单个服务器的性能,来满足业务的需求。但一旦遇到服务器性能的上限,那么就需要 Scale out 的方式来进一步满足需求。
如何解决分布式系统的沟通问题。
Paxos
Raft
如何解决分布式系统负载均衡问题。
Consistent Hashing
server down