Can the Aerospike Large Ordered List match Redis sorted leader sets?

I'm considering replacing Redis with Aerospike, and I would like to know if Aerospey can provide the same features and performance as Redis sorted for Leaderboards in the app. I need to be able to quickly insert, read and update elements in a set. I also need to be able to query ranges on them and quickly get the rank of an element in a set.

+5
source share
1 answer

Aerospike does not currently have a built-in Leaderboard feature. However, this is one of many functions that anyone can create with user defined functions (UDF) and large data types (LDT).

How it works, you will have a UDF kit that uses two large-order LDTs. One LLIST will manage the primary collection, and the other LLIST will arrange the Leaderboard / Scoreboard (mainly used as an index in the primary collection).

UDFs will manage user interactions (read / write / delete primary value and read / scan table values) and pass the work to LDT functions.

We talked about building these examples to show the power of UDF and LDT. Perhaps with little incentive, we could raise the priority for these examples.

Another issue is performance. What are your latency and bandwidth requirements?

+6
source

Source: https://habr.com/ru/post/1206776/


All Articles