Skip to content

Media upload and message support #3

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Media upload and message support #3

wants to merge 7 commits into from

Conversation

zfedoran
Copy link
Contributor

@zfedoran zfedoran commented Jan 21, 2025

@jeffyanta take a look and let me know if you would make any changes here.

I threw in audio/video just to try to get a feel for what it might require if we ever go down those paths. Not going to implement those now.

Roughly chasing after this:
image

@zfedoran
Copy link
Contributor Author

Related PR:
code-payments/flipchat-server#12

message UploadRequest {
common.v1.UserId owner_id = 1;
BlobType blob_type = 2;
bytes raw_data = 3;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Note that max gRPC message size is 4MB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Honestly, that is probably fine for the non-chunked flow. I don't think we should increase that. Also, clients should probably add some kind of compression on their end as well to reduce network latency to the server.

@@ -0,0 +1,39 @@
syntax = "proto3";
Copy link
Collaborator

Choose a reason for hiding this comment

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

In general, I think everything looks good. Probably just need to add proto validation to the applicable fields.

@zfedoran zfedoran changed the title blob: early blob upload service and models [wip] Media upload and message support Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants