14

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?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
dole doug
  • 34,070
  • 20
  • 68
  • 87

2 Answers2

17

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Jono
  • 1,690
  • 2
  • 18
  • 29
  • 2
    DropBox does use it's own protocol. But, in case you're curious, you can also try IQBox, which is an open-source sync client like DropBox that uses FTP as a backend. I'm the lead coder: https://code.google.com/p/iqbox-ftp/ – SilentSteel Dec 09 '13 at 06:27
  • @Peter I completly agree dropbox should not be called as mere ftp client. Same thing can be achieved using FTP and other protocols as well. May I know the sources which you are denying they have used FTP? – dejjub-AIS Aug 14 '15 at 17:43
4

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
citrin
  • 725
  • 6
  • 9