educative.io

Educative

Index Servers vs Distributed cache

Can Hashtable of index (word, ) stored in redis/memcached?

Any idea why would a distributed cache not serve the purpose for accessing all tweets linked to a word.

I am not sure why and what kind of index servers we may need.

1 Like

Thank you for reaching out. The author’s of this course will reply to this as soon as possible.

1 Like

They serve different functionalites.
Redis/Memcache are responsible for serving “hot” tweets. The data stored in memory change a lot, and do not persist. We need our indexes to be relatively stable and persisitent.