#Redis
5 notas · última:
Design a Rate Limiter
Hello Interview's breakdown walks a system-design rate limiter from placement decisions through four limiting algorithms, landing on Token Bucket over Redis with a Lua script to close the race condition.
Node.js Best Practices — Caching and REST
The page recommends Redis caching for Express apps, monitoring and logging at the server level, setting NODE_ENV to production for caching and template performance, and using REST-style HTTP routes and methods.
Problems dealing with Enumerable protocol
The thread says Enum.take and Enum.at still reduce the whole collection, so a Redis-backed API should expose explicit limit and offset. José Valim distinguishes database and in-memory behavior and suggests count and member? stay explicit too.
Sharing micro-service authentication using Nginx, Passport and Redis
The post explains how Nginx, Passport and Redis can make authentication shared across micro-services by keeping the browser on one domain, sharing the session cookie, and moving session data into Redis.
Criando seu próprio encurtador de URLs
O texto mostra como montar um encurtador de URLs com Ruby, Sinatra e Redis, usando base 36 para o id, MD5 para identificar a URL e uma gem chamada Dogo para simplificar a execução em produção.
