Created a Redis app that connects to a TCP server to provide analytics, rate-limiting using the NodeJS and Redis
TCP Server & Redis Integration
Build a TCP server on port 9736 that uses a text-based, line-delimited protocol.
- Protocol: Commands are sent as \n, and responses are returned as \n.
Commands
- PING
- Request: PING\n
- Response: PONG\n
- STATS
- Request: STATS\n
- Response: TOTAL_KEYS:\n
- PATTERN
- Request: PATTERN \n
- Response: COUNT:\n
RateLimiter: Implemented different rate limiters