Combatibility with redis api for testing mockups
I am just getting started with Golang and ElastiCache and wish to be able to use https://github.com/elliotchance/redismock. I realize that the full cluster capabilities differ significantly, but would I be able to do testing of my code using a mock redis client and have that code work when deployed against an Elasticache cluster?
Hi imarsman2,
ElastiCache Redis is fully compatible with the Redis APIs and as you can see in this documentation [1] self-managed Redis applications can be migrated seamlessly to ElastiCache for Redis without any code changes. The only modification you need to apply when migrating your code to ElastiCache is to enter the endpoint of the cluster, see "Finding Connection Endpoints" [2] for more details about the endpoints. For your particular use case, if redismock is deigned to be compatible with Redis (with or without the cluster protocol), your code should not have problems to interact with redismock and ElastiCache.
Please also note that in order to deliver a managed service experience, a few commands requiring advanced privileges are restricted in ElastiCache [3].
I hope this will help!
[1] https://aws.amazon.com/elasticache/redis/
[2] https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Endpoints.html
[3] https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/RestrictedCommands.html
Relevant questions
Plans for more allowing more than 2 other regions for secondary clusters in Elasticache for Redis Global Datastore?
asked 4 months agoUnable to access ElastiCache and Internet VIA VPN
asked 4 months agoInvalid VpcLink id {xxxxxx} referenced in integration
asked 3 months agoLightsail container - connect to ElastiCache
asked 3 months agoConnecting to elastiCache cluster with node.js
asked a month agoUnable to connect to redis cluster with node client, what am I doing wrong?
asked 4 months agoAmazon Aurora Postgresql views be loaded to ElastiCache for Redis
asked 4 months agoLex Internal Server Error (deployed from Terraform)
asked 5 months agoProblem upgrading AWS ElastiCache Redis cluster
asked 2 months agoCombatibility with redis api for testing mockups
asked a year ago