Skip to content

Media upload and message support#3

Open
zfedoran wants to merge 7 commits into
mainfrom
blobs
Open

Media upload and message support#3
zfedoran wants to merge 7 commits into
mainfrom
blobs

Conversation

@zfedoran
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

Comment thread proto/blob/v1/blob_service.proto Outdated
message UploadRequest {
common.v1.UserId owner_id = 1;
BlobType blob_type = 2;
bytes raw_data = 3;
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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