You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case of a deployment with horizontal scalability, the cache will be different from one instance to another. To overcome this problem, we can use a Redis instance which will store the cache!
nick-rv
changed the title
Task - create a cache exploiting redis
Task - create a specific version of the cache shared between servers and based on a redis instance
Dec 7, 2022
nick-rv
changed the title
Task - create a specific version of the cache shared between servers and based on a redis instance
Task - create a version of the cache shared between servers and based on redis
Dec 7, 2022
Create a cache exploiting redis
In the case of a deployment with horizontal scalability, the cache will be different from one instance to another. To overcome this problem, we can use a Redis instance which will store the cache!
Useful links
https://github.com/gorilla/mux/tree/v1.8.0
https://github.com/alrf/go_redis_pg
https://github.com/DenChenn/shorturl-maker
Middleware :
Steps
Install a Redis server
Update configuration
Set up an implementation logic
👁️🗨️ Redis stores keys/values
👁️🗨️ where to add the redis instructions?
Implement the new
Cacher
interfaceRedisCache
ContainsWeakEtag
AddWeakEtag
RemoveWeakEtag
cf. comment: implementation examples
Add unit test
Benchmark
Set up a benchmark with/without Redis cache
Charge test
The text was updated successfully, but these errors were encountered: