Is there a recommended way to scale with ISR?
Unanswered
Kurilian Bobtail posted this in #help-forum
Kurilian BobtailOP
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
@Kurilian Bobtail 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 | Ping in replies > I've saw other posts on using a shared Redis cache system
Why not use nextjs on demand revalidation for it
Kurilian BobtailOP
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 | Ping in replies didn't notice "pods", can I know which package are you referring to
Kurilian BobtailOP
oh I mean deployment wise, I'm using k8s for deploying
@Anay-208 | Ping in replies 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
@Kurilian Bobtail updates?