Skip to content
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

On-Demand Revalidation #127

Open
Maniload opened this issue May 30, 2022 · 0 comments
Open

On-Demand Revalidation #127

Maniload opened this issue May 30, 2022 · 0 comments
Labels
enhancement New feature or request nextjs Heavy use of Next.js is needed for this issue

Comments

@Maniload
Copy link
Member

Make us of Next.js On-Demand Revalidation.

Currently we use interval based revalidation which means pages get rebuilt if a user visits a page and a fixed interval has passed since the last page rebuild. Because of this, pages often get rebuilt even if they haven't changed. This results in unnecessary API requests and CPU usage on the server.

To reduce this, we can make use of On-Demand Revalidation, an experimental feature of Next.js. This way pages only get rebuilt, if the back-end (our database editing tool, Nova) sends a request to the client. How this will work needs to be planned in detail. We need to be careful to not have any blind spots (pages that don't get rebuilt at all).

See also: AnimeThemes/animethemes-server#364

@Maniload Maniload added enhancement New feature or request nextjs Heavy use of Next.js is needed for this issue labels May 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request nextjs Heavy use of Next.js is needed for this issue
Projects
None yet
Development

No branches or pull requests

1 participant