Skip to content

Conversation

@flub
Copy link
Contributor

@flub flub commented Dec 9, 2021

This puts the token inside an Arc'ed inner, making clones cheaper.
Because ServiceAccounts clone the token every time they give it out
this adds up when using enough tokes per second.

The tests were written before the changes to token to ensure
their (de)serialising behaviour stayed the same.

This puts the token inside an Arc'ed inner, making clones cheaper.
Because ServiceAccounts clone the token every time they give it out
this adds up when using enough tokes per minute.

The tests were written before the changes to token to ensure
their (de)serialising behaviour stayed the same.
Copy link
Owner

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes a lot of sense, thanks!

@djc djc merged commit 5e95161 into djc:master Dec 9, 2021
flub pushed a commit to getsentry/symbolicator that referenced this pull request Dec 10, 2021
This should only be temporary until upstream has made a release with
what we need.

In the mean time this allows us to benefit from a few improvements:

- Cheaper token
  clones (djc/gcp_auth#43 already on
  upstream master, not released)

- No thundering herds when refreshing the tokens:
  djc/gcp_auth#41
flub pushed a commit to getsentry/symbolicator that referenced this pull request Dec 13, 2021
This should only be temporary until upstream has made a release with
what we need.

In the mean time this allows us to benefit from a few improvements:

- Cheaper token
  clones (djc/gcp_auth#43 already on
  upstream master, not released)

- No thundering herds when refreshing the tokens:
  djc/gcp_auth#41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants