prefetch will keep previous data and append many ) self.__next_f.push
data at cluster env
#7874
Unanswered
wildfrontend
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i use prefetch in nextjs app router project, and when i update data and reload page, it will be get lastest data at dev env
but when i deploy to production , in production env we need Cluster so prefetch date would be store in different pod memory
so we found when update data it would be get different result and generate many repeat date at hyration stage so make
self.__next_f.push
get more data make html size large , example at pod 1 will get lastest data, and pod 2 would keep previous data , finally we setgctime
to 2 seconds to clean data from memory , it look fine nowi want to know, how does author think about that? should it keep short time gctime? or it need the other storage like redis?
i not found redis combine in react-query sample at recently version
Beta Was this translation helpful? Give feedback.
All reactions