Skip to content

Up to 7x faster Appwrite Storage uploads with parallel chunks_

Appwrite SDKs now upload Storage chunks in parallel on runtimes with native concurrency. Our Node SDK benchmarks show up to 7.10x faster uploads on large files, with no API changes.

9 min read

Uploading large files to Appwrite Storage should feel snappy on a good connection and bearable on real-world networks. Until now, SDKs typically sent file chunks one after another. That approach is simple and reliable, but it leaves performance on the table. Each chunk waits for the previous one, so you rarely saturate bandwidth or use the browser's ability to run several HTTP requests in parallel.

We are releasing updated Appwrite SDKs that upload multiple chunks at the same time, with defaults tuned for how browsers and HTTP clients actually behave. The speedup scales with file size: in our Node SDK benchmarks, a 1.28 GB upload dropped from 4 minutes 44 seconds to under 40 seconds, a 7.10x improvement at the default concurrency of 8.

Why sequential chunks cap your speed

Chunked uploads exist so large files do not need to live entirely in memory and so failures can be retried at chunk granularity. The tradeoff is that strictly sequential chunking means:

  • Underused bandwidth - the connection often sits idle while the client waits on the next chunk.
  • Latency stacked in series - every chunk pays its own round trip one after another.
  • Browser limits left unused - browsers allow multiple connections per origin, but a single in-flight upload does not use that capacity.

The server must accept chunks in a well-defined way and assemble a complete file safely. Making uploads parallel required both smarter clients and a backend that could handle out-of-order and concurrent chunk writes without corrupting metadata or final assembly.

What we shipped

The same establish-then-parallelize pattern is implemented everywhere the host runtime supports it. Each SDK uses that language's native concurrency primitives so multiple chunk requests run together without blocking each other on the wire. The updated SDKs:

  • Establish the upload by sending the first chunk in a controlled way to obtain an upload identifier.
  • Upload the remaining chunks concurrently up to a fixed maximum parallelism.

The examples below are the same createFile calls you use today. Point them at a large file, bump the SDK and server, and uploads get faster with no extra parameters for parallelism.

Benchmarks

We benchmarked the Node SDK uploading files from 10 MB up to 1.28 GB, comparing the old sequential client against the new parallel client at the default concurrency of 8.

File sizeSequentialParallelSpeedupConcurrencyChunks
10 MB2,650 ms2,472 ms1.07x12
20 MB4,589 ms2,434 ms1.89x34
40 MB9,413 ms2,680 ms3.51x78
80 MB18,233 ms4,037 ms4.52x816
160 MB36,606 ms6,545 ms5.59x832
320 MB71,036 ms11,451 ms6.20x864
640 MB141,923 ms20,863 ms6.80x8128
1.28 GB283,823 ms39,956 ms7.10x8256

The pattern is clear:

  • Small files (a single chunk or two) cannot benefit from concurrency and stay close to the sequential baseline.
  • Large files have enough chunks to saturate the worker pool, so the speedup climbs steeply, reaching up to 7.10x at 1.28 GB.

Your mileage will vary with region, device, bucket location, and network, but the larger the file, the larger the win.

Get started

Parallel chunked uploads are now available on Appwrite Cloud. Upgrade your Appwrite SDK to the latest release for your language and your existing createFile calls inherit the faster uploads automatically - no API migration, no extra configuration.

The Appwrite Console also uses parallel chunking, so file uploads through the Console are faster too.

More resources

Read next

Ready to build?_