SCC311: Distributed Systems Week 4

Recap

◻Last week, we tried to roughly figure out what a distributed system is.

◻We found people define and describe distributed systems (DS) using different words.

◻Then, what exactly is it ?

2

Let’s see which are DS ?

◻Which of the following items are Distributed Systems ? And why ? – consider the descriptions of DS of last lecture

(Everyone please think about it for 3 minutes)

  1. Windows Notepad
  2. Mobile weChat app.
  3. Calculator
  4. Web Search Engine – Baidu

◻DS: 2, 4

◻Non-DS: 1, 3

◻Main difference between two types ?

🞑DS – uses more than one computer – how many ? Hard to know.

🞑Non-DS – runs on a single computer

这部分内容通过几个例子让大家区分哪些系统是分布式系统(Distributed Systems, DS),哪些不是,并解释它们之间的主要区别。

  1. 问题
    • 给出了四个选项,要求大家判断哪些是分布式系统,哪些不是:
      1. Windows Notepad(Windows记事本)
      2. Mobile WeChat app(移动版微信应用)
      3. Calculator(计算器)
      4. Web Search Engine – Baidu(百度搜索引擎)
  2. 结果
    • 分布式系统(DS)
      • 选项2:移动版微信应用选项4:百度搜索引擎 被归类为分布式系统。
    • 非分布式系统(Non-DS)
      • 选项1:Windows记事本选项3:计算器 被归类为非分布式系统。
  3. 两者的主要区别
    • 分布式系统(DS)
      • 分布式系统是使用不止一台计算机来完成任务的系统。分布式系统的特点是任务在多个节点上分布,节点之间通过网络通信来共同完成任务。
      • 例如,微信应用不仅涉及手机上的本地操作,还涉及多个服务器的支持(如消息同步、数据存储等)。百度搜索引擎也依赖于多个服务器来处理搜索请求、存储数据和提供搜索结果。
      • 节点数量难以确定,通常视任务需求而定。
    • 非分布式系统(Non-DS)
      • 非分布式系统单台计算机上运行,所有的处理和任务完成都依赖于单个设备。
      • Windows记事本计算器都属于非分布式系统,因为它们只需要在单台计算机上完成所有的功能,没有跨越多台计算机或设备的需求。

总结: 分布式系统的主要特点是使用多个节点协同工作以完成任务,而非分布式系统则只依赖单个设备来完成任务。微信应用和百度搜索引擎是分布式系统的典型例子,因为它们需要多个服务器和节点的协作。而Windows记事本和计算器只需在本地运行,因此属于非分布式系统。

3