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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top