Faster Large-File Uploads with the Dropbox API

For a single small file, a single Dropbox API call is all you need. But when you are moving many large files quickly, the picture changes: you have to account for lock contention and parallelization to keep throughput high.

Batching Multiple Upload Sessions

Dropbox has updated its Performance Guide with guidance on new API functionality designed for exactly this scenario. The key idea is to start multiple upload sessions in batches rather than one after another, and to push further parallelism by issuing multiple requests within each session.

A Reference Implementation

To show the technique in practice, Dropbox also released a new code sample that puts these features to work. The sample lets you tune the thread count parameters so you can match the level of parallel traffic your network connection can actually sustain.