Skip to content

Change download link to not require storage.getMetadata() ? #524

Description

@jgeewax

Looks like we can auto-generate the download link without pulling all the metadata in a separate request:

https://<bucket>.storage.googleapis.com/<object>

Can we just make this a standard URL?

@robertdimarco says:

Remove the getMetadata() round-trip from the createReadStream() code path, in the interests of reducing overall request latency.

In comparison to the S3 implementation we were using, gcloud-node performs an additional call to the storage backend in series to get the metadata to obtain a download link. This download link, however, is able to be statically generated. Removing the extra round-trip to the server would halve the request latency for serving small files.

Activity

  1. added this to the Storage Stable milestone on May 4, 2015
  2. added 2 commits that reference this issue on May 4, 2015
    f79550b
    93d7a12
  3. added a commit that references this issue on May 4, 2015
    98a2153
  4. 4 remaining items

  5. added a commit that references this issue on Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: storageIssues related to the Cloud Storage API.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions