Skip to content

Upload Lua scripts to Valkey for quota management - #3215

Merged
gbrodman merged 1 commit into
google:masterfrom
gbrodman:uploadLuaScripts
Aug 20, 2026
Merged

Upload Lua scripts to Valkey for quota management#3215
gbrodman merged 1 commit into
google:masterfrom
gbrodman:uploadLuaScripts

Conversation

@gbrodman

@gbrodman gbrodman commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

We don't want to have to pass the entire script to Valkey every single
time. Instead, we compute the SHA-1 hash of the script and refer to it
by hash, significantly reducing the amount of bytes we need to send
to the server. If the script is not loaded in Valkey (NOSCRIPT error),
we reload it and retry.


This change is Reviewable

We don't want to have to pass the entire script to Valkey every single
time. Instead, we compute the SHA-1 hash of the script and refer to it
by hash, significantly reducing the amount of bytes we need to send
to the server. If the script is not loaded in Valkey (NOSCRIPT error),
we reload it and retry.
@gbrodman
gbrodman requested a review from weiminyu August 20, 2026 16:54
Comment thread core/src/main/java/google/registry/quota/ValkeyQuotaManager.java Dismissed
Comment thread core/src/main/java/google/registry/quota/ValkeyQuotaManager.java Dismissed

@weiminyu weiminyu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@weiminyu partially reviewed 3 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on gbrodman).

@gbrodman
gbrodman enabled auto-merge August 20, 2026 17:44
@gbrodman
gbrodman added this pull request to the merge queue Aug 20, 2026
Merged via the queue into google:master with commit 7825a92 Aug 20, 2026
16 checks passed
@gbrodman
gbrodman deleted the uploadLuaScripts branch August 20, 2026 18:39
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.

3 participants