Next.js · Senior · Question 5 of 75

What do you need to consider when self-hosting Next.js on several Kubernetes pods?

Explanation

By default, generated pages and data are stored in each pod's memory and disk. Without shared storage, revalidateTag on one pod doesn't invalidate the cache on others, and users see different versions. You should also configure deploymentId to protect against version skew during rolling updates.

Further reading

Problem with a question

Next.js · Senior · question 5

Test yourself

Take the Next.js · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz