Questions tagged [redis]

open-source, networked, in-memory, key-value data store

87 questions
33
votes
3 answers

How to implement a message queue over Redis?

Why Redis for queuing? I'm under the impression that Redis can make a good candidate for implementing a queueing system. Up until this point we've been using our MySQL database with polling, or RabbitMQ. With RabbitMQ we've had many problems - the…
djechlin
  • 2,212
  • 1
  • 15
  • 26
29
votes
1 answer

Redis vs Zookeeper

It seems silly to compare these two servers considering that they're meant for very different things. But if you think about it, they can do lots of similar things: store configuration data, distributed locking, queueing, etc. I've got an instance…
Jason Baker
  • 9,625
  • 8
  • 44
  • 67
18
votes
2 answers

Why is Redis called an in memory database when it provides persistence?

I would like to understand why is redis called an in memory database when it provides persistence similar to databases like MySQL or Postgres: http://oldblog.antirez.com/post/redis-persistence-demystified.html https://redis.io/topics/persistence
morpheus
  • 343
  • 1
  • 2
  • 9
7
votes
3 answers

Best way to reduce database writes?

I couldn't find a similar enough thread, so i'm making a new one. My question is about reducing database writes. Context is that I have an application which increments a number in a database every time a user sends a message (which is more than…
Epic Speedy
  • 251
  • 1
  • 4
7
votes
3 answers

Different Redis instances for different microservices?

Say that we have Kubernetes running with n pods, each being a separate microservice. Now, some of those services need a caching layer. When we take into consideration: the fact that Redis was tested to hundred of millions of keys and that it was…
Milan Velebit
  • 507
  • 3
  • 13
7
votes
1 answer

How is caching used within messaging apps?

I'm actually studying about web development. I was just asking why a lot of web apps and chats(Whatsapp, Telegram, Discord, and a lot, a lot more!) are using cache. I mean, after learning cache systems like Redis and Memcached, I was asking how…
DanielVip3
  • 83
  • 1
  • 5
5
votes
1 answer

Using Redis as a cache in a Multi-Tenant application

I'm working on building a multi tenant application which relies on redis as a cache. I'm currently researching a feasible way to achieve multi tenancy with redis. I see that redis enterprise offers multi tenant support, however I'm looking to take…
Brad
  • 425
  • 6
  • 11
5
votes
1 answer

Microservices - sharing data through distributed in-memory cache?

I'm fairly new to both microservices and shared in-memory databases like Redis. I'm wondering though if it would be a good idea to combine the two to address the challenges of data duplication, sharing and ownership in a microservice oriented…
TommyF
  • 169
  • 1
  • 4
5
votes
1 answer

How does Redis (or any typical distributed cache) handle replication conflicts?

Suppose you set up a Redis cluster with one master and two slaves. Two clients are connected to each of the slaves. Both clients make conflicting changes at the same time: What happens if these changes are replicated to Master at around the same…
Joey Adams
  • 5,535
  • 3
  • 30
  • 34
5
votes
1 answer

Best strategy for storing static data : json file vs DB (mongo) vs redis

I'm currently designing a set of webservices related to travel industry. one of this service need to be take in input a airport code and a locale, and return the localized city name. fn(cityCode) => localizedCityName fn(airportCode) => cityCode,…
syroz
  • 53
  • 1
  • 3
4
votes
2 answers

Using distributed locks in microservice environment

I'm developing distributed system and trying to use best practices of microservice architecture. I was faced with a situation when I think I need something like distributed locks. Since I have not so many experience in microservices and still not…
4
votes
1 answer

Managing setTimeouts and setInterval in a distributed environment

I am building a turnbased game on nodejs using socket.io and redis as the datastore. I am planning on hosting the game on AWS opsworks with the ability to scale by adding more nodes. How should I structure the application so that I can have …
Subra
  • 41
  • 1
4
votes
0 answers

How to tell SignalR Notifications Hub that there is a new notification without having SignalR poll on that table

I'm developing a push-notifications system for my ASP.NET MVC app. The idea is to use Redis for queueing, ServiceStack for queue processing and SignalR for push-notifications to implement a system that's able to distribute different types of…
Sergei
  • 141
  • 5
4
votes
2 answers

Redis strategy for activity log data

Our application requires an activity log of actions that a user has done. For example: 3/19/2013 ------------- 9:37 AM Chuck Norris scrapped 3 robots. 9:15 AM Chuck Norris fought 3 robots. Currently this is done with a gigantic query that compiles…
Jarrod Nettles
  • 6,125
  • 2
  • 41
  • 45
3
votes
1 answer

Best way to store quite large JSON objects?

I'm building an app where I need access to quite large reports about different publicly accessible URLs, JSON objects about 200kb to 500kB in size. Each user would generate hundreds of these reports per month and I would need to store them for some…
any_h
  • 131
  • 3
1
2 3 4 5 6