Questions tagged [Redis] (333)

1
answer

Rationally whether to use Redis in this case?

A shard of MySQL servers, and each server stores 200,000 users who consistently ~15 times a day can access your profile in one of the servers is a simple SELECT statement. Rationally whether to use Redis or can be limited to vertical scaling? It seems logical to first use the vertical scaling, and then, if necessary, connec...
Dandre_Yost20 asked April 16th 20 at 10:24
0
answer

How to make a render in Laravel when using Redis?

I send data from a function in Redis and the database to be notified about the status of the action that they did. In the database I sent to storage, and my redis is used as a conductor to send updates to the sockets. In principle, everything works almost exactly as intended. I need to do this: step 1 -> notification 1...
earnestine.Trantow asked April 16th 20 at 10:16
4
answers

Redis vs. Sphinx vs Elasticsearch for storage and search him?

Good day! What do you think is best suited to store data and search them, for example, a product catalog? To meet the following conditions: 1. Storing catalog data with fast access 2. The search for information, especially Russian names requests 3. Easy to use: query syntax documentation 4. The smallest load on the hardwa...
Ona_Bauch asked April 9th 20 at 10:47
1
answer

How to remove hMGet all the data?

Hello! Put the values in redis: $redis->hMGet("REDIS_BIG_KEY", ['1999'=>1,'2000'=>2]); How can delete all hash values REDIS_BIG_KEY? Try $redis->del('REDIS_BIG_KEY') He cleans me only the values and the keys leaves, they get: ['1999'=>false,'2000'=>false]
velda95 asked April 9th 20 at 10:19
1
answer

How to divide data in Redis?

So, I want to use Redis for data transfer between services and for caching. By default, Redis is available 16 bases, but I don't quite understand their practical application. I will try to explain in detail. I have some data (cities, countries, airports, articles, statistics, etc.). To store data in Redis, I can use data...
ryann.Padberg asked April 9th 20 at 09:51
1
answer

How to implement a backend realtime-game with "leading" the game process?

Need to do a realtime-application type of poker. There is a list of rooms, some pool rooms server keeps constantly created, any room you create for yourself(with password and individual settings). When in the room come a sufficient number of players, the game begins. The facilitator first gives all the players the cards, a...
rachel_T asked April 8th 20 at 18:16
1
answer

How to write a test for controller with Redis?

There is a controller in which the user of the system. // controllers/auth/signOut const redisModel = require('../../models/redis'); module.exports = async (req, res) => { const user = req.user; // check id in redis const checkInRedis = await redisModel.get(`id.${ user.id }`); // if exist, delete id if ( checkI...
chad.Adams asked April 8th 20 at 17:54
1
answer

How to run Postgres and Redis via docker-compose in Ruby on Rails?

Welcome. 6 a Rails app with Sidekiq and Redis to postgres database. Task: Postgres and Redis (for sidekiq need) to start using docker-compose to applications need to write `Procle`. It's all for the development environment. I understand first docker set up and then the sounds of the Procle to start out the team of Docker? C...
Pablo.Ho asked April 8th 20 at 17:25
2
answers

As architectural to organize search micro service to golang?

The idea arose to organize search by catalogue of digital products as a separate micro service based on Go and Redis. Go acts as an API, looking out through the reverse proxy and taking the data from Mongo, or redis from cache if it exists. Does it make sense from the point of view of architecture?
Hertha asked April 8th 20 at 02:43
2
answers

Is it possible to use 2 Redis servers on the same host?

There was a need for two servers radishes on one machine. Ports, pid and config were different. At first it was OK until it was occupied 90% of RAM and both servers have started to see some memory of each other. I would like to know from knowledgeable people, my idea is inherently flawed or all the same it was possible to i...
Ally_Hoppe asked April 8th 20 at 02:17