Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node Redis with AWS

Tags:

AWS has Redis support via the ElastiCache Service. My question is, can I connect to Redis on AWS Elasticache from node, using the following:

var client = require('redis').createClient(6379, 'elastichache endpoint string', {no_ready_check: true}); 

Or do I have to use the NodeJS AWS SDK?

I realize I could set up my own Redis Server on an EC2 instance, but I want to use ElastiCache. Is this possible?

like image 346
user602525 Avatar asked Mar 16 '14 04:03

user602525


People also ask

How connect AWS to Redis?

Sign in to the AWS Management Console and open the ElastiCache console at https://console.aws.amazon.com/elasticache/ . From the navigation pane, choose Redis clusters. The clusters screen will appear with a list of Redis (cluster mode disabled) and Redis (cluster mode enabled) clusters.

What is a node in AWS ElastiCache?

A node is the smallest building block of an Amazon ElastiCache deployment. It is a fixed-size chunk of secure, network-attached RAM. Each node runs the engine that was chosen when the cluster or replication group was created or last modified. Each node has its own Domain Name Service (DNS) name and port.

What is Redis equivalent in AWS?

Using Redis on AWS AWS offers two fully managed services compatible with Redis: Amazon MemoryDB for Redis and Amazon ElastiCache for Redis.

Is ElastiCache same as Redis?

AWS ElastiCache is a managed caching service compatible with both Redis and Memcached. When it comes to Redis, ElastiCache offers a fully managed platform that makes it easy to deploy, manage, and scale a high performance distributed in-memory data store cluster.


1 Answers

Yes, this is a common use case. You can connect directly to redis without using the SDK. Just make sure you have configured the security group correctly to allow access from your app server.

like image 138
Ben Whaley Avatar answered Oct 21 '22 00:10

Ben Whaley