erikras / erikras/react-redux-universal-hot-example
Suggestions on caching with Redis
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
We have used this boilerplate and deviated a bit where we don't use the API server on here but use external servers. We'd like to start caching with Redis - the challenge is that when on the client, the proxy is what is used and on the server ApiClient.js handles the requests. Ideally, it'd be great to have on the actions a key such as `cache: false` that would disable cache (for example, user data) and cache everything else.
Any suggestions where to and how to implement this? I don't want to repeat code between proxy (we have many proxies) and ApiClient, so probably something that's reusable or perhaps on the redux side of things might work great! (although might be a challenge on the client)
Contributor guide
Research direction
Start by comparing the client-side proxy flow with the server-side ApiClient.js request path, then inspect how actions initiate those requests. The issue does not define a specific implementation or test, so first establish where reusable caching and a per-action cache:false option should live; done requires an agreed design and documented cache behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, redis
- Domain
- api, backend, full-stack
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100