Skip to content

Move KV put to background with waitUntil#145

Merged
MattIPv4 merged 1 commit intomasterfrom
MattIPv4/background-put-kv
Feb 6, 2026
Merged

Move KV put to background with waitUntil#145
MattIPv4 merged 1 commit intomasterfrom
MattIPv4/background-put-kv

Conversation

@MattIPv4
Copy link
Member

@MattIPv4 MattIPv4 commented Feb 6, 2026

Type of Change

  • Routes: /libraries

What issue does this relate to?

N/A

What should this PR do?

With tracing enabled in #144, it quickly became apparent that a large part of the slowdown when requesting /libraries is the KV put call that we wait for before returning results:

image

This can instead be moved to the background via waitUntil, as to avoid not slowing down the request as much.

What are the acceptance criteria?

/libraries continues work, KV caching continues to work.

@MattIPv4 MattIPv4 merged commit e0682ff into master Feb 6, 2026
4 checks passed
@MattIPv4 MattIPv4 deleted the MattIPv4/background-put-kv branch February 6, 2026 22:45
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.

1 participant