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:

  1. sorting field of items updated quite often. there 25k updates per second whole collection.
  2. i need actual rank of each item in collection fast (up 5 ms).
  3. 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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -