Distributed System lecture1

本文介绍了分布式系统的定义,将其描述为一组自治计算元素的集合,这些元素对外呈现为统一的系统。文章探讨了分布式读写、中间件在分布式系统构建中的作用,以及两个将军问题等挑战。中间件作为分布式系统中的操作系统,提供了组件间通信和数据管理的服务。

What is Distributed System?

It is a collection of autonomous computing elements(hardware devices eg.computers, or software processes) that appears to its users as a single coherent system.

The definition also is :
A distributed system is a network that consists of autonomous computers which are connected using a distribution middleware. They help in sharing different resources and capabilities to provide users with a single and integrated coherent network.

Some challenges in Distributed Systems.

1.Distributed reads and writes.

Write: Broadcast values after a write.
Read: Wait until all server apply the write operation.

clipboard.png

2.How to build distributed systems --- Middleware

Middleware is software, in the context of distributed system, that provides services to enable various components of a distributed system to communicate and manage data.(wiki))

Middleware layer is the software layer that lies between operating system and the applicants on each side of a distributed computer network.(Quora)

It can be considered as the OS of Distributed Systems.

clipboard.png

3.Two Generals Problem.

Two Roman Generals want to co-ordinate an attack on the enemy. Both must attack simultaneously. Otherwise, both will lose. Only way to communicate is via a messenger. But messengers can get captured/lost.

Is it possible to design a protocol that ensures the two generals always attack simultaneously?

The answer is NO.

clipboard.png

Solving the Two Generals Problem requires common knowledge.

Common knowledge is a special kind of knowledge for a group of agents. There is common knowledge of p in a group of agents G when all the agents in G know p, they all know that they know p, they all know that they all know that they know p, and so on ad infinitum.

However, common knowledge cannot be achieved with unreliable communication channels.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值