Skip to content

Enhance TCP transmission, at least when transferring attachment files within notes.  #341

@muhanstudio

Description

@muhanstudio

Have you read a contributing guide?

  • I have read CONTRIBUTING.md
  • I have searched the existing requests and didn't find any that were similar
  • I have considered creating a pull request instead and want to proceed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions