# @tus/server: concatenation extension support

**URL:** <https://community.transloadit.com/t/tus-server-concatenation-extension-support/17255>\
**Category:** Tus\
**Created:** [September 10, 2024, 9:34pm UTC](https://community.transloadit.com/t/tus-server-concatenation-extension-support/17255 "2024-09-10T21:34:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarrvis](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/jarrvis/32/1223_2.png) [@jarrvis](https://community.transloadit.com/u/jarrvis)\
**Post date:** [September 10, 2024, 9:34pm UTC](https://community.transloadit.com/t/tus-server-concatenation-extension-support/17255/1 "2024-09-10T21:34:53Z")

</div>

Is it planned to support concatenation on [tus-node-server](https://github.com/tus/tus-node-server) ? Is ETA for that thing known?  
Background: I’m migrating from custom solution which supported concurrent chunk upload. That feature speeded up the uploads by a lot. I’d like to know whether it makes sense to wait for the feature or port it from tusd on my fork

---

<div class="post-metadata">

**Author:** ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)\
**Post date:** [September 11, 2024, 8:00am UTC](https://community.transloadit.com/t/tus-server-concatenation-extension-support/17255/2 "2024-09-11T08:00:14Z")

</div>

Hi, there is no ETA. Did you compare the speed of your custom solution to tus-node-server already? Depending on your use case the difference might not be that big.

---

<div class="post-metadata">

**Author:** ![jarrvis](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/jarrvis/32/1223_2.png) [@jarrvis](https://community.transloadit.com/u/jarrvis)\
**Post date:** [September 11, 2024, 9:23am UTC](https://community.transloadit.com/t/tus-server-concatenation-extension-support/17255/3 "2024-09-11T09:23:46Z")

</div>

Haven’t done any tests yet. I will do so in next hours/days.  
We were doing quite a lot of tests on a custom solution - obviously for tiny files the difference in upload speed is negligible or even it gets slower when chunked. For larger files (say a 20 MB and more) this was a game changer. Our strategy was to keep the chunk size fixed e.g. 5mb, so 20mb file gets 4 chunks uploaded concurrently. On top of that we cap the server connections from single client to N e.g. 50.  
In js we were using this for capping:

> **[p-queue](https://www.npmjs.com/package/p-queue)**
>
> Promise queue with concurrency control. Latest version: 8.0.1, last published: 9 months ago. Start using p-queue in your project by running \`npm i p-queue\`. There are 1793 other projects in the npm registry using p-queue.

---

<div class="post-metadata">

**Author:** ![jarrvis](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/jarrvis/32/1223_2.png) [@jarrvis](https://community.transloadit.com/u/jarrvis)\
**Post date:** [September 11, 2024, 9:44am UTC](https://community.transloadit.com/t/tus-server-concatenation-extension-support/17255/4 "2024-09-11T09:44:21Z")

</div>

2 more cents… on server, our custom solution was accepting the chunks and combining them with last chunk posted. Problem with that is last call takes more time.  
As a solution we were considering to predeclare the file on disk with first call. Then each chunk that arrives to server fills the byte array on disk. Is that maybe something that you were already experimenting with?

---

<div class="post-metadata">

**Author:** ![marius](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/marius/32/572_2.png) [@marius](https://community.transloadit.com/u/marius)\
**Post date:** [September 11, 2024, 9:49am UTC](https://community.transloadit.com/t/tus-server-concatenation-extension-support/17255/5 "2024-09-11T09:49:56Z")

</div>

We haven’t experimented with reserving space on the disk when an upload is started, but also haven’t seen the need for it so far. I can recommend you to test tusd for now, which implements the concatenation extension.
