Skip to content

refactor(go-website): implement redis caching of ecosystem counts - #5840

Open
michaelkedar wants to merge 4 commits into
masterfrom
🇷🇪🇩🇮🇸

Hidden character warning

The head ref may contain hidden characters: "\ud83c\uddf7\ud83c\uddea\ud83c\udde9\ud83c\uddee\ud83c\uddf8"
Open

refactor(go-website): implement redis caching of ecosystem counts#5840
michaelkedar wants to merge 4 commits into
masterfrom
🇷🇪🇩🇮🇸

Conversation

@michaelkedar

Copy link
Copy Markdown
Member

Use the website redis to cache the ecosystem counts across Cloud Run instances.

  • Store the ecosystem counts (and the time last fetched) in a new redis key that doesn't collide with the old Python ones.
  • Added another key to track when the counts are being recomputed by any of the instances, to avoid every instance attempting to recompute the counts when it gets stale.
  • Did NOT re-implement the rate-limiting through Redis. We're running on GCLB now, we should configure it at that level (if we even want it at all)

Stack created with GitHub Stacks CLIGive Feedback 💬

@michaelkedar
michaelkedar force-pushed the 🕸️🚫🐍-💽2 branch 4 times, most recently from 31d27eb to 8bc1fd4 Compare August 24, 2026 05:53
Base automatically changed from 🕸️🚫🐍-💽2 to master August 25, 2026 03:10

@another-rex another-rex left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! No rate limits! just in gclb

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