GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Caching of auth client regressed by #705 · Issue #822 · googleapis/google-cloud-node

Caching of auth client regressed by #705 #822

New issue
Copy link
New issue
Copy link
Closed
Closed
Caching of auth client regressed by #705#822
Copy link
Assignees
stephenplusplus

Description

@ofrobots
ofrobots
opened on Aug 26, 2015
Issue body actions

I believe that PR #705 regressed the earlier fix to cache the auth client I contributed in #661. This means that a new cache client is created on each API request we make, adding an unnecessary performance overhead. Here's some Cloud Trace output I get:

image

Note the extra 141ms added to this request, and every other request.

The cause is that the function makeAuthorizedRequest now passes a brand new object to util.makeRequest each time. We cache the authClient on that object, which is temporary and not available the next time through.

Would it be possible add a test for this to make sure this doesn't get regressed?

Activity

  1. stephenplusplus commented on Aug 26, 2015

    @stephenplusplus
    stephenplusplus
    on Aug 26, 2015
    Contributor
    More actions

    Good catch, sorry to introduce the regression. This is a good time to incorporate https://github.com/stephenplusplus/google-auto-auth into gcloud, which will cache the client for us.

  2. stephenplusplus
    self-assigned this
    on Aug 26, 2015
  3. ofrobots commented on Aug 26, 2015

    @ofrobots
    ofrobots
    on Aug 26, 2015
    ContributorAuthor
    More actions

    Ooh, google-auto-auth looks interesting. Let me see if we can use it in @google/cloud-trace.

  4. callmehiphop
    closed this as completedin #823on Aug 26, 2015
  5. sofisl
    added a commit that references this issue on Nov 11, 2022

    meta: multiple commits (#823)

    This issue will close once commit 2ef30fa is merged into the 'main' branch.
    2ef30fa
  6. sofisl
    added 9 commits that reference this issue on Jan 27, 2026

    build(node): update client library version in samples metadata (#1356) (

    f092c83

    build(node): update client library version in samples metadata (#1356) (

    1507a02

    build(node): update client library version in samples metadata (#1356) (

    94ff7e2

    build(node): update client library version in samples metadata (#1356) (

    d7ebae8

    build(node): update client library version in samples metadata (#1356) (

    b943971

    build(node): update client library version in samples metadata (#1356) (

    55dce23

    build(node): update client library version in samples metadata (#1356) (

    5061b31

    build(node): update client library version in samples metadata (#1356) (

    9cfc220

    chore: add config files for cloud-rad for node.js, delete Node 8 temp…

    cb9f19a
  7. GautamSharda
    added 2 commits that reference this issue on Mar 5, 2026

    fix(deps): update dependency @opencensus/propagation-stackdriver to v…

    e8d6499

    chore: release 1.1.6 (#822)

    93c1983
  8. feywind
    added a commit that references this issue on Mar 27, 2026

    chore: release 1.1.6 (#822)

    7f5a849
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.