Skip to content

Sharded tag cache #470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 20, 2025
Merged

Sharded tag cache #470

merged 8 commits into from
Mar 20, 2025

Conversation

conico974
Copy link
Collaborator

@conico974 conico974 commented Mar 17, 2025

This PR is another implementation of the nextMode for the Tag Cache.
It uses Durable Object with SQLite storage to store the Tag revalidations. It allows to apply sharding and use multiple SQLite DB at the same time for better scalability.
It also includes an optional cache layer to further improve performance and reduce the load on the durable objects.

It depends on both #459 and #460 (For some reason GitButler decided to give up on this, i had to do it manually)

Copy link

changeset-bot bot commented Mar 17, 2025

🦋 Changeset detected

Latest commit: b5bcc7f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Mar 17, 2025

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@470

commit: b5bcc7f

@conico974 conico974 marked this pull request as ready for review March 18, 2025 12:07
@conico974 conico974 force-pushed the conico/do-eventual-consistency branch from 569f69d to 7a80a48 Compare March 18, 2025 20:58
@conico974 conico974 force-pushed the conico/sharded-d1-tag branch from 3e2c0a5 to 664c6d7 Compare March 18, 2025 21:16
@conico974 conico974 force-pushed the conico/do-eventual-consistency branch 2 times, most recently from 3dc71be to c37eb82 Compare March 19, 2025 10:01
@conico974 conico974 force-pushed the conico/sharded-d1-tag branch from 664c6d7 to e75e4f2 Compare March 19, 2025 10:02
Base automatically changed from conico/do-eventual-consistency to main March 19, 2025 11:35
@conico974 conico974 force-pushed the conico/sharded-d1-tag branch from e75e4f2 to 6d32376 Compare March 19, 2025 11:37
@conico974 conico974 merged commit 2650043 into main Mar 20, 2025
7 checks passed
@conico974 conico974 deleted the conico/sharded-d1-tag branch March 20, 2025 07:09
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.

None yet

2 participants