Niro
08/08/2022, 2:13 PMEntry
struct per write:
ent := &Entry{
Address: entry.PhysicalAddress,
AddressType: addressTypeToProto(entry.AddressType),
Metadata: entry.Metadata,
LastModified: timestamppb.New(entry.CreationDate),
ETag: entry.Checksum,
Size: entry.Size,
ContentType: ContentTypeOrDefault(entry.ContentType),
}
Creating a gross calculation taking into account field limits:
Address - according to AWS guidelines does not exceed -- 1024 bytes
AddressType - int32 -- 4 bytes
Metadata - according to AWS limited to 2KB user data -- 2048 bytes
LastModified - int64 -- 8bytes
Etag - AWS limitation -- 1024 bytes
Size - int64 -- 8 bytes
ContentType - Lets use the worst case scenario -- 1024 bytes
Summing this up we get over 5000 bytes which is far from the given estimation, and this is without taking into consideration other data which is saved such as entry key and checksum
Am I missing something here?? (Keep in mind that these are general approximation - not trying to do exact math here but rather get a sense of the size)Ariel Shaqed (Scolnicov)
08/08/2022, 3:47 PMNiro
08/08/2022, 4:01 PM