Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .optimize-cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@
"static/images/blog/everything-new-with-appwrite-1.5/1.5-recap.png": "1d3c646f6902757152d98861630c1952631a54f222af7f8476f53f4d0d3c59f2",
"static/images/blog/everything-new-with-appwrite-1.5/messaging-console.png": "769b7df74c9107a5ccacfe87722293adbfbd91ab702c79b03838c2368e9971ac",
"static/images/blog/examples-of-vibe-coding/cover.png": "745d0e65c7981fe852b2e1797c3163cd4e4c147227b906cf305019137cb4624f",
"static/images/blog/faster-storage-uploads-parallel-chunks/cover.png": "4565a9b19b4cafad3ed9ca3f2d4c6e4437379c5d10de6bad64dc1fb85590e49b",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 The cache entry records cover.png, but the actual image added in this PR is cover.avif. This means the optimize-cache will never match the real file on disk, so the image either goes un-optimized or causes a spurious cache miss on every build.

Suggested change
"static/images/blog/faster-storage-uploads-parallel-chunks/cover.png": "4565a9b19b4cafad3ed9ca3f2d4c6e4437379c5d10de6bad64dc1fb85590e49b",
"static/images/blog/faster-storage-uploads-parallel-chunks/cover.avif": "4565a9b19b4cafad3ed9ca3f2d4c6e4437379c5d10de6bad64dc1fb85590e49b",

"static/images/blog/february-and-march-product-update-realtime-queries-appwrite-skills-and-new-database-features/Announcing_Appwrite_Skills__Give_your_AI_agents_Appwrite_expertise.png": "f6556f4786b55f53d06ca4c1a74ce0e488fa898099bf6458cab3e525f0a05d54",
"static/images/blog/february-and-march-product-update-realtime-queries-appwrite-skills-and-new-database-features/Announcing_Realtime_Channel_helpers__Type-safe_subscriptions_made_simple.png": "a937f5b617fcbaa1d8d6af38f061f132a7590b85f93b104ee22119e80d5ed6d2",
"static/images/blog/february-and-march-product-update-realtime-queries-appwrite-skills-and-new-database-features/comm_recoggg.png": "207e8acd544ebdd118f9aafb9d049dfa7fbb87868947d3df8b0fe86288848df0",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/generated/github-stars.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"stars": 55973,
"fetchedAt": "2026-05-04T21:03:24.879Z"
"stars": 55982,
"fetchedAt": "2026-05-05T10:41:28.857Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,363 @@
---
layout: post
title: "Up to 7x faster Appwrite Storage uploads with parallel chunks"
description: 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.
date: 2026-05-18
cover: /images/blog/faster-storage-uploads-parallel-chunks/cover.avif
timeToRead: 9
author: eldad-fux
category: announcement
featured: false
---

Uploading large files to [Appwrite Storage](/docs/products/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.

{% multicode %}
```client-web
import { Client, Storage, ID } from 'appwrite';

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const storage = new Storage(client);

const uploaded = await storage.createFile({
bucketId: 'videos',
fileId: ID.unique(),
file: document.getElementById('uploader').files[0]
});
```
```client-flutter
import 'package:appwrite/appwrite.dart';

final client = Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

final storage = Storage(client);

final uploaded = await storage.createFile(
bucketId: 'videos',
fileId: ID.unique(),
file: InputFile.fromPath(
path: './large-video.mp4',
filename: 'large-video.mp4',
),
);
```
```client-react-native
import { Client, Storage, ID } from 'react-native-appwrite';

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>');

const storage = new Storage(client);

const uploaded = await storage.createFile({
bucketId: 'videos',
fileId: ID.unique(),
file: {
name: 'large-video.mp4',
type: 'video/mp4',
size: fileSize,
uri: fileUri
}
});
```
```client-apple
import Appwrite

let client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")

let storage = Storage(client)

let uploaded = try await storage.createFile(
bucketId: "videos",
fileId: ID.unique(),
file: InputFile.fromPath("./large-video.mp4")
)
```
```client-android-kotlin
import io.appwrite.Client
import io.appwrite.ID
import io.appwrite.models.InputFile
import io.appwrite.services.Storage

suspend fun upload() {
val client = Client(applicationContext)
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")

val storage = Storage(client)

val uploaded = storage.createFile(
bucketId = "videos",
fileId = ID.unique(),
file = InputFile.fromPath("./large-video.mp4")
)
}
```
```server-nodejs
import { Client, Storage, ID } from 'node-appwrite';
import { InputFile } from 'node-appwrite/file';

const client = new Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>')
.setKey('<API_KEY>');

const storage = new Storage(client);

const uploaded = await storage.createFile({
bucketId: 'videos',
fileId: ID.unique(),
file: InputFile.fromPath('./large-video.mp4', 'large-video.mp4')
});
```
```server-python
from appwrite.client import Client
from appwrite.services.storage import Storage
from appwrite.id import ID
from appwrite.input_file import InputFile

client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1')
client.set_project('<PROJECT_ID>')
client.set_key('<API_KEY>')

storage = Storage(client)

uploaded = storage.create_file(
bucket_id='videos',
file_id=ID.unique(),
file=InputFile.from_path('./large-video.mp4'),
)
```
```server-dart
import 'package:dart_appwrite/dart_appwrite.dart';

final client = Client()
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
.setProject('<PROJECT_ID>')
.setKey('<API_KEY>');

final storage = Storage(client);

final uploaded = await storage.createFile(
bucketId: 'videos',
fileId: ID.unique(),
file: InputFile.fromPath(
path: './large-video.mp4',
filename: 'large-video.mp4',
),
);
```
```server-php
<?php

use Appwrite\Client;
use Appwrite\ID;
use Appwrite\InputFile;
use Appwrite\Services\Storage;

$client = (new Client())
->setEndpoint('https://<REGION>.cloud.appwrite.io/v1')
->setProject('<PROJECT_ID>')
->setKey('<API_KEY>');

$storage = new Storage($client);

$uploaded = $storage->createFile(
bucketId: 'videos',
fileId: ID::unique(),
file: InputFile::withPath('./large-video.mp4'),
);
```
```server-ruby
require 'appwrite'

include Appwrite

client = Client.new
.set_endpoint('https://<REGION>.cloud.appwrite.io/v1')
.set_project('<PROJECT_ID>')
.set_key('<API_KEY>')

storage = Storage.new(client)

uploaded = storage.create_file(
bucket_id: 'videos',
file_id: ID.unique,
file: InputFile.from_path('./large-video.mp4'),
)
```
```server-go
package main

import (
"github.com/appwrite/sdk-for-go/client"
"github.com/appwrite/sdk-for-go/file"
"github.com/appwrite/sdk-for-go/id"
"github.com/appwrite/sdk-for-go/storage"
)

func main() {
clt := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1"),
client.WithProject("<PROJECT_ID>"),
client.WithKey("<API_KEY>"),
)

service := storage.New(clt)

uploaded, err := service.CreateFile(
"videos",
id.Unique(),
file.NewInputFile("./large-video.mp4", "large-video.mp4"),
)
_ = uploaded
_ = err
}
```
```server-rust
use appwrite::Client;
use appwrite::services::Storage;
use appwrite::InputFile;
use appwrite::id::ID;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new()
.set_endpoint("https://<REGION>.cloud.appwrite.io/v1")
.set_project("<PROJECT_ID>")
.set_key("<API_KEY>");

let storage = Storage::new(&client);

let file = InputFile::from_path("./large-video.mp4", None).await?;

let uploaded = storage.create_file(
"videos",
ID::unique(),
file,
None,
).await?;

let _ = uploaded;
Ok(())
}
```
```server-kotlin
import io.appwrite.Client
import io.appwrite.ID
import io.appwrite.models.InputFile
import io.appwrite.services.Storage

suspend fun upload() {
val client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")
.setKey("<API_KEY>")

val storage = Storage(client)

val uploaded = storage.createFile(
bucketId = "videos",
fileId = ID.unique(),
file = InputFile.fromPath("./large-video.mp4")
)
}
```
```server-swift
import Appwrite

let client = Client()
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1")
.setProject("<PROJECT_ID>")
.setKey("<API_KEY>")

let storage = Storage(client)

let uploaded = try await storage.createFile(
bucketId: "videos",
fileId: ID.unique(),
file: InputFile.fromPath("./large-video.mp4")
)
```
```server-dotnet
using Appwrite;
using Appwrite.Models;
using Appwrite.Services;

Client client = new Client()
.SetEndPoint("https://<REGION>.cloud.appwrite.io/v1")
.SetProject("<PROJECT_ID>")
.SetKey("<API_KEY>");

Storage storage = new Storage(client);

File uploaded = await storage.CreateFile(
bucketId: "videos",
fileId: ID.Unique(),
file: InputFile.FromPath("./large-video.mp4")
);
```
{% /multicode %}

# 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 size | Sequential | Parallel | Speedup | Concurrency | Chunks |
| --- | --- | --- | --- | --- | --- |
| 10 MB | 2,650 ms | 2,472 ms | 1.07x | 1 | 2 |
| 20 MB | 4,589 ms | 2,434 ms | 1.89x | 3 | 4 |
| 40 MB | 9,413 ms | 2,680 ms | 3.51x | 7 | 8 |
| 80 MB | 18,233 ms | 4,037 ms | 4.52x | 8 | 16 |
| 160 MB | 36,606 ms | 6,545 ms | 5.59x | 8 | 32 |
| 320 MB | 71,036 ms | 11,451 ms | 6.20x | 8 | 64 |
| 640 MB | 141,923 ms | 20,863 ms | 6.80x | 8 | 128 |
| 1.28 GB | 283,823 ms | 39,956 ms | **7.10x** | 8 | 256 |

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

- [Appwrite Storage documentation](/docs/products/storage)
- [The easiest way to add file uploads to your app](/blog/post/easiest-file-uploads)
17 changes: 17 additions & 0 deletions src/routes/changelog/(entries)/2026-05-18-1.markdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
layout: changelog
title: "Up to 7x faster Appwrite Storage uploads with parallel chunks"
description: 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 for developers.
date: 2026-05-18
cover: /images/blog/faster-storage-uploads-parallel-chunks/cover.avif
Comment on lines +1 to +6
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Filename/date mismatch

The file is named 2026-05-15-1.markdoc but its frontmatter declares date: 2026-05-18. Looking at the existing entry pattern (e.g. 2026-05-15.markdoc has date: 2026-05-15), the filename is used as the sort key for rendering the changelog. This entry will be sorted and displayed as May 15, three days before its stated publication date, causing it to appear out of order relative to other May 18 content.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot address this, change the file name to the date in frontmatter

---

Appwrite SDKs now upload **Storage** file chunks **in parallel** where the host runtime supports overlapping HTTP requests. Chunking, concurrency limits, and ordering are handled **inside the client**; your **`createFile`** calls stay the same.

In our Node SDK benchmarks, a 1.28 GB upload dropped from 4 minutes 44 seconds to under 40 seconds, up to a **7.10x** improvement at the default concurrency of 8. Smaller files see proportionally smaller gains since they have fewer chunks to overlap.

Available on Appwrite Cloud today.

{% arrow_link href="/blog/post/faster-storage-uploads-parallel-chunks" %}
Read the announcement
{% /arrow_link %}
Loading