3 ms·
Sorted sets are abstract data structures were you insert elements into a set, but every element is associated with a floating point score. Elements are taken or
by antirez 2y ago
Sorted sets are abstract data structures were you insert elements into a set, but every element is associated with a floating point score. Elements are taken ordered inside the sorted sets, so you can ask for ranges, or a specific element rank (position), and so forth. It sounds like the (many) cases where Redis is the best idea to get started and deliver (see for instance the Instagram case, that used Redis for years while becoming bigger and bigger). Then as you understand you are at scale and need just XYZ, you may choose to implement XYZ inside your system in other ways and that's it.
- sureglymop 2y agoThank you for explaining it! I appreciate that.