Skip to content

feat: regional replication for sharded tag cache #500

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

conico974
Copy link
Collaborator

This PR adds yet another layer of replication for the sharded tag cache, this time aiming at reducing the latency worldwide by replicating the data tag in multiple regions

Copy link

changeset-bot bot commented Mar 25, 2025

🦋 Changeset detected

Latest commit: 02b441f

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 25, 2025

Open in Stackblitz

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

commit: 02b441f

return regionalReplicasInAllRegions;
}

getClosestRegion() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We could get better accuracy on this one by using country or colo if needed

@conico974 conico974 force-pushed the feat/regional-replication branch from 5c14d74 to 02b441f Compare March 28, 2025 17:22
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