java - Is it ok to use ScoredSortedSet from Redisson lib to get actual item rank within environment with extensive writes? -
i want use redis java redisson library. have task store items in sorted order, based on item's field. there 3 main constraints:
- sorting field of items updated quite often. there 25k updates per second whole collection.
- i need actual rank of each item in collection fast (up 5 ms).
- the collection size 25 millions items.
is ok use redissons scoredsortedset.rank method such constraints, or not suitable , there better solution?
yes possible scoredsortedset (it mapped redis sorted set), need convert field score scoredsortedset works. nikita suggests use rsortedset or priorityqueue, not have 'rank' command, needed.
Comments
Post a Comment