Redis use cases

Viewed 572

I've done some projects with Redis and MongoDB but I'm not comfortable at all. I'm currently using MongoDB for storing player datas and Redis for temporary and sorted datas. I'd want to use Redis more to my projects.

My questions

  1. Should I use Redis more for persistent datas? I'd like to know a question about this case; if I make a project that ban players from the game server, is Redis good option to use for this case?
  2. What are the best use cases for Redis?
  3. As I mention it above, I use MongoDB for storing player datas and map for cache their information when they're online. From what I know redis is one of the best NoSQL database for caching. Should I use Redis for caching player datas?

If you have any other idea about the topic, I'd like to know that with details.

1 Answers

Should I use Redis more for persistent datas?

Redis is way more than Cache and is acting as Main database in many enterprises, and also supports few methods persistency like RDB and AOF.

if I make a project that ban players from the game server, is Redis good option to use for this case?

Redis support a nice set of plugins (Modules), one of them is RedisBloom, especially suited for quick filtering.

Related