What's the best way to cache user profile data
Ariana Rizzo
·3769 views
hey folks, im working on a social media platform and were seeing a lot of reads for user profile information (name, bio, avatar URL). this data doesnt change very frequently, maybe only when the user updates their profile, which isnt constant. were discussing how to best cache this. should we go with a simple in-memory cache on the api servers? or is a distributed cache like Redis or Memcached a better bet for scalability and consistency across instances? what are your experiences with caching user profile data specifically? any gotchas to watch out for
35 comments