Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
muhanstudio opened this issue Nov 8, 2024 · 0 comments
Open
3 tasks done
Labels
enhancement New feature or request

Comments

@muhanstudio
Copy link

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

@muhanstudio muhanstudio added the enhancement New feature or request label Nov 8, 2024
@muhanstudio muhanstudio reopened this Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant