Enhance TCP transmission, at least when transferring attachment files within notes. #341
Open
3 tasks done
Labels
enhancement
New feature or request
Have you read a contributing guide?
Clear and concise description of the problem
Currently, Anytype’s file transmission heavily relies on the UDP protocol. When the UDP transmission quality is poor — for example, due to cross-province QoS (Quality of Service) restrictions or when certain cloud bandwidth providers disable UDP to prevent DDoS attacks — the file transfer speed can drastically decrease. After numerous self-hosted deployment troubleshooting sessions, I’ve concluded that poor UDP transmission quality severely impacts Anytype’s file upload and download speeds. When I disabled UDP and used TCP exclusively, the transfer speed became unbearably slow.
I believe we should make better use of the TCP protocol for transmission, as it remains the primary communication protocol for cloud servers. While the issue isn’t as noticeable with plain text or smaller images, it becomes painfully slow when dealing with files over 100 MB, especially when uploading files via mobile. I suggest that we should optimize TCP transmission, at least for attachments within the notes.
Related community post: https://community.anytype.io/t/why-is-my-self-hosting-so-slow/24991/6
Suggested solution
Enhanced TCP transfer of files
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: