Skip to content

Question: What would be the best way to batch to workaround gRPC message size limitationΒ #958

@rchoffardet

Description

@rchoffardet

Hello,
Firstly, thanks for your awesome library πŸ™Œ
I have a use case when I send back a huge payload (basically an equivalent of a huge number of lines from a database table).
Obviously, I'm hitting the limit of 4MB, and to batch efficiently, I'm seeking a way to determine what size would take the current batch (and if I need to send it immediately or if I can stack more rows).

In gRPC/protobuf, it's possible to workaround it by using CalculateSize() but I can't find a way to do this with MagicOnion.
Would you know of a way to achieve this?

Regards,
Robin

Metadata

Metadata

Assignees

No one assigned

    Labels

    stalestale not updated issue & pr

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions