node-redis-connection-pool | A node.js connection manager for Redis | Runtime Evironment library
kandi X-RAY | node-redis-connection-pool Summary
kandi X-RAY | node-redis-connection-pool Summary
A node.js connection pool for Redis.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-redis-connection-pool
node-redis-connection-pool Key Features
node-redis-connection-pool Examples and Code Snippets
Community Discussions
Trending Discussions on node-redis-connection-pool
QUESTION
I have a requirement to connect to Redis and PostgreSQL databases. For performance reasons, I need to be able to connect to these databases with a connection pool. There are some packages for connection pool e.g. Redis redis-connection-pool, node-redis-connection-pool and Postgresnode-postgres. These work well individually.
How do I make them work across a Node-RED instance? Can I set-up a script that runs at Node-RED start-up which then 'exports' the pool object to any node that could 'require' it?
...ANSWER
Answered 2018-Apr-21 at 06:05No, you would have to look at how the available node-red nodes for Redis and Postgres were written and then modify them if needed.
A lot of nodes already have the concept of shared config nodes which hold a connection so they may already have a point to anchor a pool.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-redis-connection-pool
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page