Skip to content

High ListObjectsV2 cost when only accessing existing objects/files #1354

Open
@nguyenminhdzung

Description

@nguyenminhdzung

Tell us more about this new feature.

I have 2 systems:

  • one allows users to upload files and it saves files to a S3 bucket, with folder structure of yyyy/MM/dd (only added, no deleted or modified)
  • one uses mountpoint-s3 to mount the bucket to a folder and uses nginx to serve uploaded files from the mounted folder. Path of url is like 2025/03/10/file1.dat

The problem is I use mountpoint-s3 to serve existing files (100% guarantee existing) but ListObjectsV2 charging me a huge bill because the traffics are very high.
Why don't you just simply use only Head and Get reqs for files reading? Currently List reqs cost me ten times of Head and Get reqs for a very simple thing: reading files.
I am very disappointed. The finished line is just 1 meters from me but now millions kilometers far far away.

Image
See, LIST req costs about 10 times of HEAD or GET req. Why didn't you consider this money-impact when sending 2 reqs at the same time for just one purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions