All fields

“Sets & Sorted Sets in Redis” in Information Technology

28 questions across 1 technology.

Information Technology

28 questions in 1 technology

#QuestionTechnologyTopicLevel
1What internal memory encoding does Redis use for small sets and sorted sets, and how does this affect performance and memory usage as they grow? Redis › Sets & Sorted Sets in RedisRedisSets & Sorted Sets in RedisAdvanced
2How would you use sorted sets to implement a simple tag based content recommendation system, finding content similar to a given item? Redis › Sets & Sorted Sets in RedisRedisSets & Sorted Sets in RedisAdvanced
3How do you find the intersection, union, and difference between two or more Redis sets? Redis › Sets & Sorted Sets in RedisRedisSets & Sorted Sets in RedisIntermediate
4How do sorted sets differ from regular sets, and what additional capability does the associated score provide? Redis › Sets & Sorted Sets in RedisRedisSets & Sorted Sets in RedisIntermediate
5What is a Redis set, and what guarantee does it provide about the items you store in it? Redis › Sets & Sorted Sets in RedisRedisSets & Sorted Sets in RedisBeginner
6How do you check if a specific item exists in a Redis set, and how do you remove an item from it? Redis › Sets & Sorted Sets in RedisRedisSets & Sorted Sets in RedisBeginner
7How do you retrieve a random member, or several random members, from a Redis set without removing them? Redis › Sets & Sorted Sets in RedisRedisSets & Sorted Sets in RedisIntermediate
8Why are Redis sorted sets a natural fit for building a leaderboard feature? Redis › Leaderboards with Sorted SetsRedisLeaderboards with Sorted SetsBeginner
9What is the sliding window log algorithm for rate limiting, and how can it be implemented using a Redis sorted set? Redis › Rate Limiting with RedisRedisRate Limiting with RedisIntermediate
10How do you retrieve the top ten highest scoring players from a Redis leaderboard? Redis › Leaderboards with Sorted SetsRedisLeaderboards with Sorted SetsBeginner
11How do you find all stored locations within a certain radius of a specific point using Redis? Redis › Geospatial Data in RedisRedisGeospatial Data in RedisIntermediate
12What is the underlying geohash based encoding that Redis uses to store geospatial data, and how does it affect the accuracy of location queries? Redis › Geospatial Data in RedisRedisGeospatial Data in RedisAdvanced
13How would you design a leaderboard system that resets periodically, such as weekly, while still preserving historical rankings for past periods? Redis › Leaderboards with Sorted SetsRedisLeaderboards with Sorted SetsAdvanced
14How would you implement a leaderboard that supports multiple different ranking categories, such as by region or by game mode, efficiently in Redis? Redis › Leaderboards with Sorted SetsRedisLeaderboards with Sorted SetsAdvanced
15What geospatial capabilities does Redis provide, and what commands are used to add location data? Redis › Geospatial Data in RedisRedisGeospatial Data in RedisBeginner
16How do you remove a specific location from a Redis geospatial dataset once it is no longer needed? Redis › Geospatial Data in RedisRedisGeospatial Data in RedisIntermediate
17How do you find a specific player's current rank on a leaderboard, along with the players immediately above and below them? Redis › Leaderboards with Sorted SetsRedisLeaderboards with Sorted SetsIntermediate
18How do you atomically increase a player's score on a leaderboard, such as after they earn additional points during gameplay? Redis › Leaderboards with Sorted SetsRedisLeaderboards with Sorted SetsIntermediate
19How do you retrieve all players within a specific score range on a leaderboard, such as everyone between a thousand and two thousand points? Redis › Leaderboards with Sorted SetsRedisLeaderboards with Sorted SetsIntermediate
20What are the limitations of HyperLogLog that make it unsuitable for certain use cases, even though it is excellent for approximate unique counting? Redis › HyperLogLog in RedisRedisHyperLogLog in RedisAdvanced
21What is RedisTimeSeries, and what kind of data is it specifically designed to handle? Redis › RedisTimeSeriesRedisRedisTimeSeriesBeginner
22How do you add a new data point to a Redis time series, and how do you query a range of recent data? Redis › RedisTimeSeriesRedisRedisTimeSeriesBeginner
23How do you implement a priority queue pattern using Redis, where certain tasks should be processed before others? Redis › Redis as a Message QueueRedisRedis as a Message QueueIntermediate
24What features does Redis offer that have no direct equivalent in Memcached, and how might these influence a technology choice? Redis › Redis vs MemcachedRedisRedis vs MemcachedIntermediate
25How would you implement a delayed task queue in Redis, where a task should only become available for processing after a specific future time? Redis › Redis as a Message QueueRedisRedis as a Message QueueAdvanced
26What is the difference between a Redis set and a Redis sorted set, and when would you choose one over the other? Redis › Data TypesRedisData TypesIntermediate
27How would you model a many to many relationship, such as users following other users, using Redis's native data types? Redis › Data TypesRedisData TypesAdvanced
28How do you implement a feature that forcibly logs out a specific user across all of their active sessions and devices? Redis › Session Management with RedisRedisSession Management with RedisIntermediate