How does Dropbox work? [closed]

可紊 提交于 2019-12-03 07:22:32

问题


How does Dropbox work? Is it just an FTP client with an easy-to-use web interface and support for many plarforms?

What makes it so useful to programmers, even for those who are working on web-based applications and who have FTP access to a server by default?

Does Dropbox come with an improved algorithm to facilitate file transfer for a better speed? What is the difference between an FTP client and Dropbox from a programmer's point of view?


回答1:


FTP is just a way of copying files. And copying is not the same as synchronizing, which I believe is Dropbox's biggest strength.

Dropbox is a multiway synchronization system. This means if you are using your Dropbox account on many machines and editing different files on each machine, they will all be synchronised appropriately. With FTP you would have to delicately pick and choose which files need to be removed or added from each client to the server.

Another main difference is that synchronisation happens automatically whenever a file changes, which FTP does not do.

In terms of algorithms, I would guess that Dropbox uses file deltas for file transfer, which makes it much more efficient than FTP. This means only the parts of the file that changed are transferred instead of transferring the entire file every time it changes (see rsync).

I believe you are only asking about Dropbox's core functionality. Beyond that, Dropbox has lots of cool features that FTP does not like some revision control, photo gallery sharing, etc.




回答2:


Dropbox files are not accessible by FTP. The API uses a REST-style architecture over the HTTP protocol. See Build the power of Dropbox into your app.



来源:https://stackoverflow.com/questions/3554680/how-does-dropbox-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!