I've encountered a problem with retrieving all keys from my Redis cache, storing them in an array, and sending that array to the user using Express. The issue arises when I receive an empty array as the response with no objects in it. I attempted to use fo ...
In our current project, we are experimenting with using Redis (HMSET) to store a CLOB extracted from Oracle. This CLOB essentially consists of a lengthy JSON string. Our attempt looks something like this: HMSET 279479 article_id 279479 HMSET 279479 old_art ...
Using a list of keys, I attempted to retrieve all their corresponding values from redis with the following code: async.mapSeries(['offer', 'find'], function(seed) { client.smembers(string); }, function(err, resultArr) { err && console.t ...
I have been struggling to delete keys in redis with the code below. While the console output works perfectly, it seems that the keys are not getting deleted in redis. Could someone please assist me in figuring out what I might be missing? import { RedisCli ...
Here's a question that is somewhat similar to mine, see this reference. In my case, my code involves multiple routes. The current code shown below does work for my requirements, but I'm wondering if there's a more efficient way to write it since I am stil ...
In the process of creating a wallet app, I have incorporated redis for storing the current wallet balance of each user. Recently, I was tasked with finding a method to retrieve the total sum of all users' balances within the application. Since this in ...
We are currently running an application server on nodejs and looking to switch out our existing MySQL persistence technology. Our main considerations for the replacement are various NoSQL options such as CouchDB, MongoDB, Redis, Riak, and more. The data si ...
From my perspective, in order for a server side application to track which clients are interacting with it, it needs to store a cookie on the client containing the session ID. This is confirmed by the documentation of express-session, a widely used packag ...
Currently implementing Redis as a caching system to store data and prevent unnecessary consumption on an API. My idea is to save the result from the API along with the coordinates as a key in Redis. Before making another API call, I plan to check if the ne ...
After successfully installing screepmod-mongo, an error occurred while running npx screeps start. The error message is as follows: gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, stat '/root/.npm/_npx/4679/lib/node_modules/scree ...
I am currently working on establishing a connection to my online redis database. const redis = require('redis'); const client = redis.createClient({ password: '<password>', socket: { host: <host> port: <port> } }); cli ...
I am curious about the communication process between the node redis wrapper and the RESP (REdis Serialization Protocol) database. Here is a simple example: const redis = function(uri) { this.client = '' // How do we establish a connection with the Redi ...
For my Django project, I needed to run long tasks so I decided to use Celery with Redis as the broker. After installing Redis, it runs smoothly: The server is now ready to accept connections on port 6379 Next, I installed django-celery and configured i ...
I am currently utilizing Bull in combination with NestJS to manage a jobs queue. Within the process handler, I aim to designate a job as failed instead of completed. However, it appears - after carefully reviewing the documentation as well - that the Job#m ...
I'm currently working on setting up an API with Node and my goal is to securely store the API key/access token in a Redis database. What is the most effective way to create a one-of-a-kind API key/access token that can be stored as the key in the Red ...
When Python writes to a database (mongo) every second in the setup, Meteor.js is expected to react immediately to the new record insertion. Issue: However, the use of cursor.observe() results in the console outputting only 4-5 seconds after the new record ...
Is there a way to make cookies never expire for express-session? If not, what is the maximum maxAge allowed? I came across some outdated information on setting cookie expiration on SO (over 10 years old) and here on express, which mentions a maxAge of 1 y ...
I am facing an issue while trying to establish a connection with Redis in my ExpressJs application. Interestingly, it works perfectly fine when running on localhost but fails to connect when using the Redis URL from AWS ElastiCache. Here is the code snipp ...
I am utilizing a Redis database along with express routing to create an API. My stack includes node.js and ioredis as well. The process involves connecting to Redis, fetching keys related to a specific date, and then retrieving the data associated with th ...
I recently set up a nestjs backend with redis for caching by following the instructions in the official documentation . To achieve this, I utilized the cache-manager-redis-store package and included the necessary code in my app.module.ts file as shown bel ...
Currently, I am faced with the following challenge: I have integrated Redis with NodeJS using mranney's driver. The NodeJS webserver interacts with Redis by retrieving data, performing operations on it, and then saving it back to Redis. However, one s ...
When attempting to connect to a Redis instance hosted on redislab, an error message is received indicating Redis ready ReplyError: NOAUTH Authentication required. const pubClient = createClient({ url: `${config.redisLabHost}:${config.redisLabPort}` }); pub ...
My code works fine when it's all in one file, but the caching stops working when I move it to a separate middleware file. Can someone help me understand why the caching isn't functioning properly in my middleware? Here is the working code: var e ...
Attempted to initiate redis-server but encountered the following error message: 26195:C 27 Aug 17:05:11.684 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 26195:M ...
Currently, I am setting up my development environment for a node app on Ubuntu using Docker. Below is the content of my docker-compose.yml: version: "2" services: redis: image: redis ports: - "6381:6379" volumes: - /var/lib/thinkl ...
I am encountering a major issue with sessions. I am working on developing an application using "Redis" in node.js along with various libraries such as express. However, I have run into a problem where the sessions are no longer functioning properly. Desp ...
My current task involves coding in Express.js, executed on an AWS Elastic Beanstalk instance, attempting to establish a connection with an AWS ElastiCache instance using Redis. However, I am encountering the following error message: web: Error connecting t ...
There are key metrics we aim to monitor in Prometheus for services that interact with Kafka/Redis topics: Tracking the speed of writes for each topic Determining the speed of reads for each topic In Kafka, it may be necessary to evaluate the reading spee ...
Currently in my node web server, I am utilizing the npm module known as redis. Upon executing my code... const client = redis.createClient(); client.on("error", function (err) { console.log("Error " + err); }); client.hmset(["key", "test keys 1", "t ...
Can Bull (used for job management) be implemented without utilizing Redis? Here is a segment of my code: @Injectable() export class MailService { private queue: Bull.Queue; private readonly queueName = 'mail'; constructor() { this.que ...
Attempting to configure the Redis client connection to the Redis server in Laravel 6.0 version, I encountered an error when trying to modify the REDIS_HOST in the database.php configuration file: Connection refused 127.0.0.1:6379 This snippet shows how ...
Currently, I am storing data in JSON format within a Redis ZSET with timestamps as scores. <timestamp_1> - [ { "key1" : 200 }, { "key2": 100 }, {"key3" : 5 }, .... {"key_n" : 1} ] <timestamp_2> - [ { "key50" : 500 }, { "key2": 300 }, {"k ...
Can a list of tasks be accessed by only using a group identifier? from celery import group def f1(): task_group = group(task1, task2) return task_group().id def f2(group_id): pass # TODO: retrieve task1.id and task2.id GroupResult(id=f1( ...
I am currently working on a pub-sub application using node.js, redis, and socket.io. Here is the code snippet I have for app.js on the server side: var express = require('express'); var app = express(); var redis = require('redis'); v ...
I am currently attempting to establish a connection with a Redis cloud database. The documentation provides the following code snippet: import { createClient } from 'redis' import { Client } from 'redis-om' (async function() { let r ...
Regarding Heroku: My app is built with Nodejs, Express, and WebSockets. I am currently testing the app on a small free Heroku instance. I have set up my own Redis database instances using OpenRedis and RedisToGo directly from the providers, rather than thr ...
I am seeking a solution to implement search caching in my node.js application using Redis, but I'm unsure of how to do so effectively. My goal is to place a hard limit on the number of searches cached due to limited RAM. For each search, I aim to sto ...
Currently, I am diving into the Fullstack React GraphQL TypeScript Tutorial I encountered an issue while trying to connect Redis with express-session... import connectRedis from "connect-redis"; import session from "express-session"; ...
My current setup involves a Redis server within AWS ElastiCache. I am publishing messages to a Redis channel and attempting to retrieve these messages through subscription using a JavaScript script as shown below: const redis = require("redis"); const sub ...
My latest project involves a portal running on PHP 7.2 with Laravel as the framework and using Redis as the Session Handler. I thought everything was working smoothly until I had someone test the login functionality. Upon successful login, a token is save ...
I'm attempting to find a method to unsubscribe from a Redis channel when the user navigates to another page within our website. I have attempted to detect a disconnect socket event when the user clicks on a link, but unfortunately, the event is never trigg ...
I am in the process of setting up Presto and Redis on my local machine using the instructions provided in the Presto-Redis Documentation. Problem Overview: When I set redis.key-prefix-schema-table=true and use the prefix dev:simple_table: for a Redis key ...
I am encountering an issue with posting/inserting data into my redis database using the POST method. I am using express js as a framework and here is the code snippet: app.post('/create/:id', function (req, res) { return client.set(req.params.id, req.pa ...
I am currently facing an issue with PassportJS while trying to authenticate users in my application. Once a user logs in, the session is created, but upon redirection, the session seems to become undefined again as it has not been saved properly. I read on ...
Currently, I am working on a web application that encounters an issue where every time fs.mkdir is called, all the current express sessions are deleted. This causes me to lose all session data and I need a solution to keep these sessions intact. I have att ...
In my application, I have a blog feature where I use Redis as the database and redis-om for managing it. The model for the blog in the app looks like this: const model_blog = new Schema(Blog,{ title : {type : "string"}, description : {t ...
Currently, in my express server setup, I am utilizing socket.io and Redis pubsub. The process involves the server subscribing to a Redis message channel and then forwarding any incoming Redis messages to a specific WebSocket client whenever a new message i ...
I am diving into the world of node.js for the first time and seeking some guidance: Here are the programs I have installed on my server: node.js v0.11.3-pre express v3.3.4 socket.io v0.9.14 connect-redis v1.4.5 Redis server v=2.6.14 redis-cli 2.6.14 To ...
Currently, I am in the process of parsing a DBF file. Here is an example snippet from the file: "{"srCode":"EUCRDCTN","accountCode":"","priceList":"EUCN","discount":null,"termDays":30}" "{"srCode":"","accountCode":"MEN006","priceL ...
Recently set up a Redis server for my backend using ioredis. I've discovered that if I want to store data in JSON format, I need to use the redisJSON module because hashes are only string typed and flat. However, since I'm only storing one objec ...
app.use(express.session({ store: new RedisStore({ host: 'localhost', port: 6379, db: 0, pass: 'RedisPASS' }), secret: '1234567890QWERTY' })); The code snippet above initia ...
When integrating SocketIO into an application running behind a node-balancer, the documentation recommends using SocketIO-Redis to facilitate event passing between nodes: const io = require('socket.io')(3000); const redis = require('socket.io-redis'); io.a ...
I have created a basic chatroom application using a node express server. This application relies on a redis database for storing the nicknames of all connected clients. Now, I am looking to implement a feature that clears the redis SET named members when ...
Is there a way to send messages from the client to the server using Laravel Echo and then save those messages in a database? I did some research and found out that the whisper method can be used to send messages to the Redis server. window.Echo.join('room' ...
I recently attempted to create an Express 4 Web App using Azure. I came across multiple articles that suggested using Azure Redis Cache for storing sessions. However, I am unsure about the proper way to connect my web app to the redis cache. var session = ...
My current computing process involves storing the results in the REDIS database before transferring them to the main database. At the moment, I handle operations in batches of 10k items per chunk using a separate GAE instance (single-threaded computing wi ...
I am currently in the process of setting up Redis as a session store, but for some reason it's not functioning properly. I have integrated passport.js and express-flash, however when I attempt to run the current Redis setup, it fails to work: var session ...
I have a RubyOnRails application that is integrated with a Node.js/Socket.io server to distribute trading updates to all connected clients. With the increasing frequency of trades, the continuous updates every second or more frequently can become bothersom ...
Currently, I am developing a NodeJS server that has an /events endpoint for sending events to clients using SSE. In addition to this endpoint, there are multiple routes for handling POST requests. I am faced with the challenge of setting up this system so ...
— I have successfully developed a basic application that retrieves data (50 items) from a Redis DB and displays it on localhost. After running an ApacheBench test with parameters c = 100, n = 50000, I am achieving around 150 requests/sec on my aging dual ...
As a newcomer to performance optimization, I understand that Node.js may not be the most beginner-friendly area to begin with, but it's the current task at hand for me. Upon observation, I have noticed that simple JSON API requests are taking hundred ...
Imagine a scenario where our website has important counters on every page, making it heavily loaded. These counters are stored in Redis keys that automatically expire in an hour. Within our code, we have a check to see if a key containing a counter exists ...
I have successfully installed Redis 2.4 on my Ubuntu Desktop 11.10, equipped with 8 cores and 8 GB of RAM. Upon using the redis-benchmark tool, I consistently achieve a performance of 100K SETS and GETS per second with a 4096 byte package. Comparatively, ...
Upon further reflection, the question that arises is how to connect to digitalocean's managed redis with node-redis using tls. Although I can establish a connection with the redisinsight GUI client using a username and password without any issues, I ...
When using the rpush method to store a list in Redis and lrange to retrieve the list elements in Node.js, I encountered an error stating that rpush and lrange are not functions. To address this issue, I followed the Redis Node documentation and used RPUSH ...
Context I am working on a publish/subscribe application where messages are sent from a publisher to a consumer. The publisher and consumer are located on separate machines, and there may be occasional breaks in the connection between them. Goal The obj ...
Attempting to save a list created from a dictionary into my redis database, I am running the following script: x = {'TLV-IST#2022-12-27~2023-01-04': '252', 'TLV-IST#2022-12-27~2023-01-17': '300'} for key, value in x.items(): client.lpush(key[:7], key[ ...
I'm struggling to integrate Redis with nodejs Encountering issues during execution Despite using the same code, I am facing this error: Here's my code snippet: import { createClient } from 'redis' export const client = createClient({ ...
I'm currently developing a web application using node.js and redis. The goal is to store each incoming request in a redis queue before saving it into a database. However, I keep encountering an error whenever the program executes the lpush command. Be ...
Currently, I am working with node.js using expressjs. My goal is to store an account in the session. To test this out, I decided to experiment with sessions by following the code provided on expressjs var RedisStore = require('connect-redis')(ex ...
In my application, I have implemented Redis as the caching store. Below is the configuration setup for Redis: @Configuration @EnableCaching public class SpringRedisConfig { @Bean public JedisConnectionFactory connectionFactory() { JedisConnectionFacto ...
Currently, I'm going through Ben Awad's 13-hour Fullstack React GraphQL TypeScript Tutorial and I hit a roadblock while trying to set the login cookie around the 1 hour and 50-minute mark. I believe I successfully established a connection with r ...
I am currently working on a project that involves using an Express.js backend in conjunction with a Next.js frontend. The backend utilizes the Redis and connect-redis packages for session management, while the server is deployed on Heroku with the Heroku-D ...