dropbox使用的架构 [英] Architecture used by dropbox

查看:208
本文介绍了dropbox使用的架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道Dropbox是否使用客户端 - 服务器点对点架构
这里我的疑问是:
假设我们有两个系统通过dropbox同步。


System1: dropbox> Folder_A> file_1



System2: dropbox> Folder_A> file_1




最初都同步。现在假设,System1上的User在Folder_A中添加了一个file_2。现在这个文件被上传到Dropbox服务器。但我的问题是服务器如何通知System2关于file_2。



我看到 观察者模式 。但是拉或推送机制是否使用?


Point2 :Dropbox服务器推送system2本身上的文件。



< b
$ b

Point3 :包括Dropbox中央系统的所有系统都被视为对等项。形成对等网络。 dropbox中央同步控制要发送到哪个系统的文件。


PS:我的问题不是特定于dropbox,服务提供商网站。我只是使用dropbox作为参考。

解决方案

我怀疑使用pull机制,因为push 本文强烈建议使用pull。当然,最简单的方法是查看wireshark跟踪。


I want to know whether client-server or peer-to-peer architecture is used by dropbox. Here my doubt lies: Suppose we have two systems which are synced via dropbox.

System1: dropbox > Folder_A > file_1

System2: dropbox > Folder_A > file_1

Initially both are synced. Suppose now, User on System1 adds a file_2 in Folder_A. Now this file gets uploaded to dropbox server. But my question is how does server notifies System2 about file_2.

I am seeing Observer Pattern being used here. But Is Pull or Push mechanism used ??

Point1: Does dropbox client on System2 polls dropbox server after some interval to get updates.

Point2: Dropbox server pushes the file on system2 itself.

Point3: All systems including dropbox central system is considered as a peer. peer-to-peer network is formed. dropbox central peer controls which file to be sent to which system.

PS: My question is not specific to dropbox but all the file sync service provider sites. I just used dropbox as reference.

解决方案

I suspect a pull mechanism is used as there are too many firewall issues in push this article strongly suggests that pull is used. Of course, the easiest way to be sure would be to look at a wireshark trace.

这篇关于dropbox使用的架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆