Is there a recommended way to scale with ISR?
Unanswered
Chausie posted this in #help-forum
ChausieOP
I'm looking to use Next ISR with multiple pods, the CMS I'm using will trigger webhooks that can tell the app when to revalidate a page - I've saw other posts on using a shared Redis cache system, but the package used doesn't seem to be actively fixing issues, is there a recommended way to set this up?
10 Replies
@Chausie I'm looking to use Next ISR with multiple pods, the CMS I'm using will trigger webhooks that can tell the app when to revalidate a page - I've saw other posts on using a shared Redis cache system, but the package used doesn't seem to be actively fixing issues, is there a recommended way to set this up?
I've saw other posts on using a shared Redis cache systemWhy not use nextjs on demand revalidation for it
create cache tag, on update cms sends a req to revalidate
@Anay-208 > I've saw other posts on using a shared Redis cache system
Why not use nextjs on demand revalidation for it
ChausieOP
how will this look though if each pod isn't sharing the same cache system
didn't notice "pods", can I know which package are you referring to
, but the package used doesn't seem to be actively fixing issue
Also check this out
https://nextjs.org/docs/app/guides/self-hosting#configuring-caching
https://nextjs.org/docs/app/guides/self-hosting#configuring-caching
there is an example to integrate redis also: https://github.com/vercel/next.js/tree/canary/examples/cache-handler-redis
@Anay-208 didn't notice "pods", can I know which package are you referring to
ChausieOP
oh I mean deployment wise, I'm using k8s for deploying
@Anay-208 Also check this out
https://nextjs.org/docs/app/guides/self-hosting#configuring-caching
I think this should work if you're using a managed or shared redis
@Chausie updates?