Add payload field to Init
message in object.PUT
RPC #9
Labels
No labels
P0
P1
P2
P3
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-api#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For small objects we could send payload + header in one message.
Also, think about one-shot (non-stream) RPC for vNext.
I don't think possible performance gains justify complicating the current streaming interface.
How about having a separate RPC for putting prepared objects?
The compatibility will be preserved, but in some cases (replication, splitting objects on a client) we might want to just send a single message. If we extend the current interface, feels like half-measure. With a separate one we can read and object and "just replicate". This also plays nicely with recent SDK improvements: forming and object and then splitting it again to send feels like a kludge.
cc @alexvanin @realloc
Single message is not a single object. If API introduces new unary RPC request, then it is going to be suitable only for objects with the size of 3-4 MiB to fit in the gRPC message.
While FrostFS has plenty of such small objects (tombstones, secret boxes, small user objects in general), client side should decide which RPC to use based on the object size. I am okay with that as soon as it is hidden in the client implementation, but separate RPC might be a bit confusing for SDK developers.
We can increase gRPC message size.
This is not a part of the FrostFS API, but we can always failback to the old PUT implementation.
PutSingle
implemented