- We have more than 1M pages
- We tried using ISR but it doesnt persist over builds (we build multiple times daily) and the first request is still too slow. We barely change our product data so the cache could really have a long ttl.
- The Product pages are simply a bit too slow, many API requests etc.. But the data barely changes.
=> we want to fully cache these pages in a different database, ideally some key value lookup like redis or something.
Has anyone done this before?
In my perfect world we would do this:
- Request hits product/[handle]
- Check if key[handle] has a the cached page in remote redis. If yes return.
- Else, make fetches, return page and safe to cache
Doesnt sound super complicated but before we implement this I was wondering if this is the best approach? Thanks for any pointers! ✌️