什么是分布式系统,分布式系统例子?
链接:https://www.zhihu.com/question/66003492/answer/237094916
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
这个问题,要研究一下。
------------------------
Client/Server
When two parties communicate with each other, if they don't play the same role. We call one of them client, the other server. For example, Git, there could be many clones of same repository, and by design no clone is superior to others. However, when pushing some commits from clone A to clone B, clone A plays as the client, clone B plays as the server. And when pushing some commits from clone B to clone A, clone B plays as the client, clone A plays as the server.
Furthermore, they may play different roles at one layer, and play the same role at another. For example, BitTorrent, at TCP layer, two nodes play different roles if the connection is not opened simultaneously, however at application layer, they always play the same role.
So whether or not there are clients and servers has nothing to do with whether it is distributed or not.
Distributed
As opposed to centralized systems, distributed systems would distribute work load to more than one machine, to scale out or to tolerate failures or both. For example, Google's GFS is to scale out and to tolerate failures, but Chubby alone is just to tolerate failures.
Programming
Most often, a program which by design is centralized, would not automatically make good use of more than one machine, unless you have a sufficiently smart compiler.
-------------------------------------------------------------------
作者:Allen
链接:https://www.zhihu.com/question/66003492/answer/237259213
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 25岁的心里话
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
2017-03-28 influxDB系列(二)
2017-03-28 influxDB系列(一)