Posts

Showing posts from July, 2017

Indexing with Redis

If you follow my news on Twitter then you might have realized that I just started to work more with Redis.  Redis (=Remote Dictionary Server) is known as a Data Structure Store. This means that we can not just deal with Key-Value Pairs (called Strings in Redis) but in addition with data structures as Hashes (Hash-Maps), Lists, Sets or Sorted Sets. Further details about data structures can be found here: https://redis.io/topics/data-types-intro Indexing in Key-Value Stores With a pure Key-Value Store, you would typically maintain your index structures manually by applying some KV-Store patterns. Here some examples: Direct access via the primary key: The key itself is semantically meaningful and so you can access a value directly by knowing how the key is structured (by using key patterns). An example would be to access an user profile by knowing the user's id. The key looks like 'user::<uid>'. Exact match by a secondary key: The KV-Store itself ca