Why didn't anybody tell me about Redis hash slots?

(blog.verygoodsoftwarenotvirus.dev)

17 points | by badrequest 2 days ago

2 comments

  • lesam 53 minutes ago
    I'm confused how you find the data again in this cache? It seems like you're randomly salting your cache keys, so I don't understand how subsequent requests find cached data.
    • catlifeonmars 30 minutes ago
      Naively (and naive is often fine), you can query each node in parallel. The number of nodes is usually very small relative to the amount of data per node and reading is usually much faster than writing.
  • abofh 55 minutes ago
    Because you inherited it from someone who built it before that was a thing, and discovered it when you went serverless.

    How'd I guess on the article itself?