Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [redis]

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

3
votes
1answer
95 views

How to think about queries in NoSQL

I'm writing a project for school - Tinder-like app. I thought of implementing database entirely in RDBMS (PostgreSQL). But now I think it's a good opportunity to get to know NoSQL systems a bit. I'm ...
0
votes
0answers
25 views

Using Redis with Multiple servers and databases

I am working on a project where I have two web servers both running a replicated version of MySQL. Without going into the technical details of the project, the basic idea is, the app will receive HTTP ...
0
votes
0answers
50 views

Storing self-expiring items in redis and getting all of them

I need to place some data into redis so that each element has a sliding expiration (say 60 seconds each). I also need to be able to get a list of all elements that are currently in Redis. Initially ...
0
votes
0answers
210 views

Update Redis Cache in real time in microservice

I have 2 microservices api in dotnet core microservice1 -------------Database1 ---------------------users_table (gets list of all users) microservice2 -------------Database2 ---------------------...
1
vote
1answer
492 views

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, ...
0
votes
0answers
99 views

How to scale Redis pub/sub within a Docker stack, or should I decouple it?

I'm creating a simple websocket server in nodejs that uses Redis pub/sub as a messaging backplane and Mongo for some data storage. I would like to deploy this as a Docker service so we can scale it ...
-3
votes
1answer
106 views

Design the cache and search feature like hotel booking?

I need to design the feature like in encommerce(consider hotel booking site) we can enter the keyword/partial-keyword and need to return the relevant results. For Example :- If site admin or hotel ...
1
vote
1answer
45 views

How to architect master/slave store/messages and de-duplication?

To clarify, as I'm not entirely sure how to summarise in the title. I have a redis cluster and a redis-backed scheduler (similar to sidekiq/resque, etc). My redis cluster has a master and a couple ...
0
votes
1answer
59 views

Architecture for distributed real time traffic capturing/viewer system

I have a scenario as following (you can think of it as a distributed Wireshark system): For a single capturing session, there are about 1 ~ 10 traffic capturing nodes distributed in a LAN network. ...
0
votes
1answer
54 views

Where should I store statistics about sent emails?

my application sends a batch of custom emails every day using mailgun (an email API service). I have a producer worker scheduled to run daily, and all does is query the database for the unique ...
0
votes
1answer
87 views

Removing Redis Entries from Multiple Redis Instances

I have an interesting problem that I'd like to solve. Let's say I have 2 deployments, US Data Center and Europe Data Center each containing Web Servers and a Redis Instance (replicated, but could ...
1
vote
1answer
1k views

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-...
3
votes
0answers
142 views

Redis set of sets - Is there a better Design?

I have a telegram bot that alerts whenever a price of certain asset reach a certain price. I have the following table in a DB: AlertId ChatId Price Asset So each Asset will have several ChatId (...
1
vote
1answer
188 views

Should I partition my messages with channels or with content?

I'm building a system using redis as a pub-sub system. I'm thinking about ways to represent multiple groups that clients can subscribe to. I could do this with one channel per group, but this could ...
3
votes
1answer
112 views

Is my use case for Redis appropriate?

I'm writing a web app that is basically facebook events, but more impromptu and real time. A user can create an event, and other online users in the area (30 mile radius) should immediately see the ...
-1
votes
2answers
148 views

Using NoSQL as MQ and for maintaining state

Currently we have an application that doesn't scale well because of multiple concurrent updates to a table which gets locked. The tech stack is ASP.NET and backend is in SQL Server. To avoid database ...
-1
votes
1answer
165 views

How to implement a scalable exists in large set query

I need to design a system where I need to check if a key exists or not. Currently I am already using aerospike for the cause but my use case is slightly different. I will have a key like this ( A ...
1
vote
1answer
236 views

Exploiting Apache Spark Data

and sorry if the question seems a bit naive. I'm currently reading tutorials about Kafka & Spark and there's something I can't figure out : how to exploit / expose the data Spark received. Here'...
3
votes
1answer
782 views

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 ...
0
votes
1answer
113 views

What is the meaning of sharing state between processes?

The author here states that: Share state between processes. Run a long running batch job in one Python interpreter (say loading a few million lines of CSV in to a Redis key/value lookup table) and ...
0
votes
2answers
343 views

Algorithm for searching a domain name in list of wildcard

I have a list of domain name that contains wildcard ('*' character) Example: *.google.com *.domain.com ... It contains nearly 1 million domains. The data will be stored on a mongodb or redis ...
1
vote
0answers
729 views

How should I store user activities in ElasticSearch and figure out popular searches?

I've got java logging user activities to Fluentd, Fluentd is then writing these activities into an elasticsearch index. Every user activity is recorded, some include: User1 follows user2 User1 likes ...
1
vote
3answers
1k views

Is it ok to wrap a singleton?

I'm using SignalR with StackExchange Redis. What I gather from the basic usage doc is the way to implement this is using a singleton. I've never used this patter before. My class looks like this: ...
0
votes
0answers
49 views

How should I implement a real-time endpoint server to handle new posts and events for a forum?

I am writing a forum component for a site and decided on using either nio or twisted for a real-time endpoint to accept users posts and notify other users who are in the same forum or page of new ...
1
vote
1answer
201 views

How to implement searchable persistent queues?

We will implement a system , which will receive quite a lot of requests through web service interface. We will have to queue the requests and process them asynchronously. Consequently we will have to ...
2
votes
2answers
246 views

Web App Authentication's Architecture Related Query

I have a web app that makes use of node.js in the backend and angulajs on the front end. Let's say I have a user who has the ability to login via multiple systems; I must allow multiple logins. I ...
3
votes
1answer
319 views

Distributing work between TCP Clients

I have an application (run by a Windows Service) which connects to a TCP server (let's call the service 'Listener' from here on). [It's important to note that the TCP server is out of my reach, and ...
0
votes
0answers
296 views

how to create messaging storage structure in redis?

I am developing Node.js, Redis based chat application in php. I had an idea about chat logger structure but I required suggestions that how and what to choose proper data structure to create Redis ...
2
votes
1answer
1k views

how to store online status

I'm developing realtime web chat using pubsub pattern. To be concrete I'm using python and tornado-redis on back end and websockets (WS) (tornado) on front end. I have WS connection open and close ...
1
vote
1answer
463 views

Redis for caching

I've heard a lot of positive about Redis but have not used it myself. Now I want to add a cache layer for my web app to reduce the DB load, and I suppose Redis is fine for this. But I don't clearly ...
1
vote
1answer
5k views

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

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) =&...
1
vote
1answer
421 views

What is the best way to store short-lived data? [closed]

I have to save some data about users with their location. This data will only be valid for like 5-10 minutes, then it will never be used again. So I am having a simple data structure like: { ...
3
votes
4answers
1k views

Are NoSQL databases the best choice for more efficiently querying large amounts of data?

We are planning to build a travel website in which we will be integrating multiple APIs (eg. DOTW, GTA, Expedia) for Hotels. I have initially tried to use MySQL but since there are huge amounts of ...
2
votes
0answers
258 views

Scoring algorithm implementation with Django and Redis

I use DjangoREST & MySQL as a backend for a mobiel app. I have two models, User and Feed and for any call to api/feeds/ returns all feeds for authenticated user ordered by created_at parameter of ...
2
votes
1answer
3k views

Redis strategy for cache item dependency

I'm implementing cache structure using Redis, my domain is like this: There are multiple categories (3000+ categories). Each category contains multiple questions (around 20-30 questions per category)....
0
votes
1answer
3k views

Knowing who is the user in every request (every action, every view, every time)

I have many model classes that are mapped from/to tables using EF. Two of them are User and UserCookie, which are stored in tables Users and UserCookies. public class User { public long UserId { ...
1
vote
2answers
102 views

Creating fast, realtime dialogue search for television scripts

We have a database of television scripts and we'd like to search it, getting results as we type. We often remember words or snippets of dialogue but can't remember exactly what was said or what ...
1
vote
1answer
895 views

What is a good practice to push notifications in a “near real-time” delay in this case?

I want to enable some real-time notifications about friend's activities (social network). Technical context is: Webapp calling backend (REST API's). Scenario is: Kevin follows Bob. When Bob ...
0
votes
1answer
1k views

Should I persist notification before or after publishing it through Redis pub/sub?

I'm implementing a mechanism to notify a group of users about newly inserted blog comments. The architecture uses the Redis Pub/Sub mechanism. By definition, the pub/sub mechanism aims to propagate ...
4
votes
1answer
444 views

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 ...
1
vote
1answer
1k views

Storing primary keys of objects in Redis and then querying them in Postgres through Django

This is probably my second time posting in programmers. I'm usually on stackoverflow but this question is more fit for the community here. All suggestions, advice and insight on this matter is ...
3
votes
0answers
1k views

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 ...
0
votes
1answer
629 views

Backing up messages in S3 within a Storm topology

In my project we are trying to build up a KIND-of-a-lambda storm based architecture. The component would be responsible for indexing the site usage events so we expect a quite massive random load. The ...
29
votes
3answers
20k views

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 ...
0
votes
1answer
579 views

Redis & MongoDB for Metrics Platform

I'm in the process of writing an app that will ultimately display analytics to the user. I've written a service that collects data from an API. This data will then be processed, stored, then when the ...
4
votes
2answers
3k views

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. ...
1
vote
1answer
470 views

2 Servers 1 Database - Can I use Redis?

Ok I have a couple of questions here. First let me give you some background information. I'm starting a project where I have a node.js server running my application and my website running on another ...
2
votes
1answer
246 views

In-memory DB to perform intersects on set slices

I have a specific programming need where I need to efficiently store large sorted sets in memory, query them for ranges, and intersect them against other sets that are also queried for ranged. I am ...
2
votes
1answer
1k views

How would you use Redis for Exception Handling?

I was reading this transcript of an interview with a GitHub developer and he was describing how they use Redis: Q: You mentioned using Redis. How do you use that? A: We use Redis for exception ...
3
votes
1answer
1k views

Querying key/value store

I don't know whether this question is reasonably answerable (and therefore will be closed), but I will take my chances: What are the possible problems (and solutions), one might encounter, when ...