Post

Extremely Fast AWS Elastic Cache Redis with Lua

Debugging a Node.js application running inside a container within an ECS cluster can be daunting. The challenge becomes especially significant in restricted environments like AWS ECS, where you lack direct control over the running workloads. Traditional debugging methods, such as SSH or exposing ports, are often not viable in these setups.

AWS provides a secure and efficient solution through AWS Systems Manager (SSM). By leveraging SSM documents and port forwarding, you can securely establish connections to your Node.js containers and expose the debugger port without compromising the security of your infrastructure.

In this post, we will walk through the steps to set up and perform remote debugging of a Node.js container using an SSM.

Elastic Cache and redis versions

Elastic common use cases

Lua what for

How Redis executed lua

cross nodes Add screenshot of metrics

Common Pitfalls

generate key outside of lua

Micro optimisations

REM, ADD in a single command

This post is licensed under CC BY 4.0 by the author.