linhvuquach / system-design-practical

MIT License
0 stars 0 forks source link

[Caching] Redis (+2) #37

Open linhvuquach opened 1 month ago

linhvuquach commented 1 month ago

TODO

References

linhvuquach commented 1 month ago

Notes

Implementation typically involves:

Choosing appropriate data structures (strings, hashes, lists, sets, sorted sets) Setting proper expiration policies to manage memory usage Implementing serialization/deserialization of complex objects Handling cache invalidation to ensure data consistency

A key challenge is maintaining consistency between the cache and the primary data store. We addressed this by implementing cache update strategies like 'write-through' or 'cache-aside' depending on the use case, and by using cache invalidation techniques when data changes."