Questions tagged [redis]
open-source, networked, in-memory, key-value data store
93 questions
1vote
1answer
57views
Effectively invalidating multiple entries from one composed key
Context I m building a dashboard application gathering data from a Rest API This Rest API can be requested by client applications others than the dashboard to get data That data is then aggregated ...
-1votes
2answers
92views
Long running process with shared and synced status between multiple browser windows?
is it practical to store the status of a long running process in a redis key to sync the status of process across multiple browser windows of the same page? ( including new browser windows opened when ...
0votes
2answers
211views
Fault tolerance in aggregated distributed state
I have a scheduling system that is horizontally scaled, and stores shared state in a redis key. The purpose of the system is to implement something similar to classic rate limiting, but a bit ...
1vote
1answer
128views
Non blocking algorithm for invalidating and reloading cache in concurrent environment using Redis (with Redisson)
I'm trying to come up with a peace of code that would fetch centralised cache shared across multiple threads/app instances. Callers might come in swarms. The data is a large set, reads during ...
-2votes
1answer
156views
Rate limiting design
I am designing rate limiting in my application in which the rules can be dynamic. I have a basic design in which every request is validated against the rate limiting quota, which is stored in redis. ...
2votes
3answers
861views
How to synchronize cache writes in a distributed system?
I am looking for a complete pattern implementing cache-aside when used in a distributed system across multiple nodes read/writing from/to cache. Specificly how to avoid making multiple requests to db ...
1vote
2answers
229views
Designing a microservice architecture
I am looking to enhance my skills in back-end technologies and would need your help in setting up a scalable microservices architecture. Here's my project. I have N sensors that send me data (Pressure,...
1vote
1answer
178views
Design considerations for data shared across multiple users: is Redis a good candidate?
I have an app that has an assets table like the following: user_id code current_price 1 ALUP11 12.5 2 ALUP11 11.9 user_id and code are unique together and current_price is updated if the user triggers ...
1vote
4answers
1kviews
Microservices distributed lock mechanism
I am using spring boot with mongo db (azure cosmos db) in my microservices. Currently I have an Orders collection that stores Orders. These documents have a field userId that is null when the document ...
7votes
1answer
9kviews
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 ...
0votes
1answer
131views
Sending and receiving results from microservices
I welcome everyone. I'm trying to understand microservice architecture. The task such: is 2 services. The first - for example, books rooms in a hotel. The second is something like a console interface ...
-1votes
1answer
358views
When does a REST API stops being one in terms of state management?
As far as I understand, there is no certain boundaries for the RESTness of an API. However, I would like your help to understand how large and long (in terms of running time) a caching or state ...
0votes
2answers
5kviews
Simple Java Spring Boot Cache for multi-container system
I have a requirement to cache some static data as it is being consumed by our system. There is a static API that gives a map of records and we are fetching the corresponding record based on request. ...
0votes
1answer
1kviews
Scheduling asynchronous jobs with efficient round-robin algorithm using Redis
We are trying to redesign our microservice architecture-based application to support multiple tenants. We have a simple queue service that will be utilized by other services to queue any asynchronous ...
-1votes
2answers
394views
Should I make all my business logic depend on the data that comes from the cache?
One of my web services hits a few hundred thousand visits per day where most of the operations are CRUD and we are thinking to get a cache sitting in front of our SQL database. I have had implemented ...