Re:Databases in 2024: A Year in Review
by sureglymop on Wednesday January 01, 2025 @02:02PM
(#42568263)
Maybe this is a weird question but, knowing only some math and not redis, what is a sorted set and how is it different than a list/tuple?
[ Parent
| on HN ]
Re:Databases in 2024: A Year in Review
by antirez on Wednesday January 01, 2025 @02:04PM
(#42568296)
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.
Re:Databases in 2024: A Year in Review
by sureglymop on Thursday January 02, 2025 @11:56AM
(#42576118)
Thank you for explaining it! I appreciate that.